1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3 ; CHECK-SPIRV-NOT: OpCapability FPFastMathModeINTEL
4 ; CHECK-SPIRV: OpName %[[#mu:]] "mul"
5 ; CHECK-SPIRV: OpName %[[#su:]] "sub"
6 ; CHECK-SPIRV-NOT: OpDecorate %[[#mu]] FPFastMathMode AllowContractFastINTEL
7 ; CHECK-SPIRV-NOT: OpDecorate %[[#su]] FPFastMathMode AllowReassocINTEL
9 define spir_kernel void @test(float %a, float %b) {
11 %a.addr = alloca float, align 4
12 %b.addr = alloca float, align 4
13 store float %a, float* %a.addr, align 4
14 store float %b, float* %b.addr, align 4
15 %0 = load float, float* %a.addr, align 4
16 %1 = load float, float* %a.addr, align 4
17 %mul = fmul contract float %0, %1
18 store float %mul, float* %b.addr, align 4
19 %2 = load float, float* %b.addr, align 4
20 %3 = load float, float* %b.addr, align 4
21 %sub = fsub reassoc float %2, %3
22 store float %sub, float* %b.addr, align 4