[llvm-dev] fp-contract=fast and pragmas
Steve (Numerics) Canon via llvm-dev
llvm-dev at lists.llvm.org
Wed Jun 30 10:20:15 PDT 2021
It sounds to me like this test is simply incompatible with fp-contract=fast and should not be used in that mode.
> On Jun 30, 2021, at 11:14 AM, Kaylor, Andrew <andrew.kaylor at intel.com> wrote:
> Hi John,
> Let me be clarify that ICC-compatibility isn’t my goal here. We can do that out-of-tree for Intel compilers based on LLVM.
> My motivation is a problem I’m working on with the LLVM test suite. The Polybench benchmarks in the test are currently attempting to use ‘#pragma STDC FP_CONTRACT OFF’ to create a value-safe kernel whose results can be compared against an otherwise identical kernel that is compiled with whatever options the test suite is configured to use. This strategy fails if the test suite is configured to compile with ‘-ffp-contract=fast’. That’s the problem I’m trying to solve by having clang respect the pragma.
> See https://reviews.llvm.org/D25346 <https://reviews.llvm.org/D25346>, https://reviews.llvm.org/D102861 <https://reviews.llvm.org/D102861>, and https://reviews.llvm.org/D104935 <https://reviews.llvm.org/D104935>.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev