Skip to content

Commit a4bbeda

Browse files
committed
Capture fast-math flags in D3DCOLORtoUBYTE4 codegen test
1 parent 62d5978 commit a4bbeda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGenHLSL/builtins/D3DCOLORtoUBYTE4.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// CHECK-LABEL: D3DCOLORtoUBYTE4
66
int4 test_D3DCOLORtoUBYTE4(float4 p1) {
7-
// CHECK: %[[SCALED:.*]] = fmul <4 x float> %{{.*}}, splat (float 0x406FE01000000000)
7+
// CHECK: %[[SCALED:.*]] = fmul [[FMFLAGS:.*]]<4 x float> %{{.*}}, splat (float 0x406FE01000000000)
88
// CHECK: %[[CONVERTED:.*]] = fptoui <4 x float> %[[SCALED]] to <4 x i32>
99
// CHECK: %[[SHUFFLED:.*]] = shufflevector <4 x i32> %{{.*}}, <4 x i32> poison, <4 x i32> <i32 2, i32 1, i32 0, i32 3>
1010
// CHECK: ret <4 x i32> %[[SHUFFLED]]

0 commit comments

Comments
 (0)