1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3 ; CHECK-SPIRV: OpName %[[#r1:]] "r1"
4 ; CHECK-SPIRV: OpName %[[#r2:]] "r2"
5 ; CHECK-SPIRV: OpName %[[#r3:]] "r3"
6 ; CHECK-SPIRV: OpName %[[#r4:]] "r4"
7 ; CHECK-SPIRV: OpName %[[#r5:]] "r5"
8 ; CHECK-SPIRV: OpName %[[#r6:]] "r6"
9 ; CHECK-SPIRV: OpName %[[#r7:]] "r7"
10 ; CHECK-SPIRV-NOT: OpDecorate %{{.*}} FPFastMathMode
11 ; CHECK-SPIRV: %[[#float:]] = OpTypeFloat 32
12 ; CHECK-SPIRV: %[[#r1]] = OpFNegate %[[#float]]
13 ; CHECK-SPIRV: %[[#r2]] = OpFNegate %[[#float]]
14 ; CHECK-SPIRV: %[[#r3]] = OpFNegate %[[#float]]
15 ; CHECK-SPIRV: %[[#r4]] = OpFNegate %[[#float]]
16 ; CHECK-SPIRV: %[[#r5]] = OpFNegate %[[#float]]
17 ; CHECK-SPIRV: %[[#r6]] = OpFNegate %[[#float]]
18 ; CHECK-SPIRV: %[[#r7]] = OpFNegate %[[#float]]
20 define spir_kernel void @testFNeg(float %a) local_unnamed_addr {
23 %r2 = fneg nnan float %a
24 %r3 = fneg ninf float %a
25 %r4 = fneg nsz float %a
26 %r5 = fneg arcp float %a
27 %r6 = fneg fast float %a
28 %r7 = fneg nnan ninf float %a