Skip to content

Commit a4a8f15

Browse files
StuartDBradysvenvh
authored andcommitted
Add fneg and fcmp transcoding tests
1 parent 4a4e0ae commit a4a8f15

File tree

4 files changed

+454
-54
lines changed

4 files changed

+454
-54
lines changed

test/FPFastMathModeNotNaNFast.spvasm

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
OpName %r3 "r3"
1414
OpName %r4 "r4"
1515
OpName %r5 "r5"
16+
OpName %r6 "r6"
1617
OpDecorate %dec FPFastMathMode NotNaN|Fast
1718
%dec = OpDecorationGroup
18-
OpGroupDecorate %dec %r1 %r2 %r3 %r4 %r5
19+
OpGroupDecorate %dec %r1 %r2 %r3 %r4 %r5 %r6
1920
%void = OpTypeVoid
2021
%float = OpTypeFloat 32
2122
%5 = OpTypeFunction %void %float %float
@@ -28,6 +29,7 @@
2829
%r3 = OpFMul %float %a %b
2930
%r4 = OpFDiv %float %a %b
3031
%r5 = OpFRem %float %a %b
32+
%r6 = OpFNegate %float %a
3133
OpReturn
3234
OpFunctionEnd
3335

@@ -36,3 +38,4 @@
3638
; CHECK: %r3 = fmul fast float %a, %b
3739
; CHECK: %r4 = fdiv fast float %a, %b
3840
; CHECK: %r5 = frem fast float %a, %b
41+
; CHECK: %r6 = fneg fast float %a

test/OpFNegate.spvasm

-53
This file was deleted.

0 commit comments

Comments
 (0)