Skip to content

Commit 1e78354

Browse files
committed
fix test case
1 parent 06a751a commit 1e78354

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/test/CodeGenHLSL/builtins/D3DCOLORtoUBYTE4.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// CHECK-LABEL: D3DCOLORtoUBYTE4
66
int4 test_D3DCOLORtoUBYTE4(float4 p1) {
77
// CHECK: %[[SCALED:.*]] = fmul [[FMFLAGS:.*]][[FLOAT_TYPE:<4 x float>]] %{{.*}}, splat (float 0x406FE01000000000)
8-
// CHECK: %[[CONVERTED:.*]] = fptoui [[FLOAT_TYPE]] %[[SCALED]] to [[INT_TYPE:<4 x i32>]]
8+
// CHECK: %[[CONVERTED:.*]] = fptosi [[FLOAT_TYPE]] %[[SCALED]] to [[INT_TYPE:<4 x i32>]]
99
// CHECK: %[[SHUFFLED:.*]] = shufflevector [[INT_TYPE]] %[[CONVERTED]], [[INT_TYPE]] poison, <4 x i32> <i32 2, i32 1, i32 0, i32 3>
1010
// CHECK: ret [[INT_TYPE]] %[[SHUFFLED]]
1111
return D3DCOLORtoUBYTE4(p1);

clang/test/SemaHLSL/BuiltIns/D3DCOLORtoUBYTE4-errors.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ struct S {
2525
int4 struct_arg(S v) {
2626
return D3DCOLORtoUBYTE4(v);
2727
// expected-error@-1 {{no matching function for call to 'D3DCOLORtoUBYTE4'}}
28-
// expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function not viable: no known conversion from 'S' to 'vector<float, 4>' (vector of 4 'float' values) for 1st argument}}
28+
// expected-note@hlsl/hlsl_intrinsics.h:* {{candidate function not viable: no known conversion from 'S' to 'float4' (aka 'vector<float, 4>') for 1st argument}}
2929
}

0 commit comments

Comments
 (0)