1 // RUN: %clang_cc1 -ffp-contract=on -triple x86_64-linux-gnu -emit-llvm -o - %s | FileCheck %s
2 // Verify that float_control does not pertain to initializer expressions
6 #pragma float_control(except, on)
8 float w
= 2 + y() * z();
9 // CHECK-LABEL: define {{.*}} @_ZN2ONC2Ev{{.*}}
10 // CHECK: llvm.experimental.constrained.fmul{{.*}}tonearest{{.*}}strict
13 #pragma float_control(except, off)
15 float w
= 2 + y() * z();
16 // CHECK-LABEL: define {{.*}} @_ZN3OFFC2Ev{{.*}}
17 // CHECK-NOT: llvm.experimental.constrained.fmul{{.*}}tonearest{{.*}}strict