diff options
| author | Melanie Blower <melanie.blower@intel.com> | 2020-05-15 07:30:49 -0700 |
|---|---|---|
| committer | Melanie Blower <melanie.blower@intel.com> | 2020-05-20 06:19:10 -0700 |
| commit | 827be690dce158924924a70fda79b35a9d7ad1cc (patch) | |
| tree | 8517e15b2a1027dd6140be6b20a839ff0ae98c53 /clang/test/CodeGen/fp-floatcontrol-class.cpp | |
| parent | eab4a199d16851fd8ad8308364d7b1b87bdbb430 (diff) | |
[clang] FastMathFlags.allowContract should be initialized only from FPFeatures.allowFPContractAcrossStatement
Summary: Fix bug introduced in D72841 adding support for pragma float_control
Reviewers: rjmccall, Anastasia
Differential Revision: https://reviews.llvm.org/D79903
Diffstat (limited to 'clang/test/CodeGen/fp-floatcontrol-class.cpp')
| -rw-r--r-- | clang/test/CodeGen/fp-floatcontrol-class.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/fp-floatcontrol-class.cpp b/clang/test/CodeGen/fp-floatcontrol-class.cpp index 324c3cc14f6f..db600eee6a08 100644 --- a/clang/test/CodeGen/fp-floatcontrol-class.cpp +++ b/clang/test/CodeGen/fp-floatcontrol-class.cpp @@ -8,13 +8,13 @@ float z(); class ON { float w = 2 + y() * z(); // CHECK-LABEL: define {{.*}} @_ZN2ONC2Ev{{.*}} - //CHECK: call contract float {{.*}}llvm.fmuladd + //CHECK: call float {{.*}}llvm.fmuladd }; ON on; #pragma float_control(except, off) class OFF { float w = 2 + y() * z(); // CHECK-LABEL: define {{.*}} @_ZN3OFFC2Ev{{.*}} - //CHECK: call contract float {{.*}}llvm.fmuladd + //CHECK: call float {{.*}}llvm.fmuladd }; OFF off; |
