Bug reported by @uabelho against reviews.llvm.org/D72841
pragma STDC FENV_ACCESS ON is ignored, but the floating point state maintained in Sema.CurFPFeatures was modified to show that
fenv_access was enabled, this caused llvm constrained intrinsics to be created which is erroneous. This is a small patch to avoid modifying the state.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/Parse/ParsePragma.cpp | ||
|---|---|---|
| 111 | Modified this to return instead of making changes which will ultimately modify the floating point state | |
| clang/test/CodeGen/fp-floatcontrol-pragma.cpp | ||
| 61 | I used a modified version of @uabelho 's test. I verified that before this bug fix a constrained intrinsic was being created for this multiply. | |
Modified this to return instead of making changes which will ultimately modify the floating point state