Issue 55392
Summary '#pragma float_control' is not supported on this target (AArch64)
Labels new issue
Assignees
Reporter rygorous
    `#pragma float_control` is documented in the Clang extensions manual but doesn't seem to be supported on AArch64.

https://godbolt.org/z/ejYc1nYjd

I think that's the check at the top of `PragmaFloatControlHandler::HandlePragma`. I think that logic is checking for the wrong thing there.

I'm assuming the issue is that the AArch64 target doesn't have `hasStrictFP()` because it doesn't have exception trap support (or at least makes it an optional feature). This affects `#pragma float_control(except, ...)` but I don't see why `precise` should be excluded as well. As-is there seems to be no way on AArch64 to turn off fast-math like behavior via pragmas at all.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to