[llvm-bugs] [Bug 51044] New: FPE environment flags are not supported on ARM backend

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 9 17:43:29 PDT 2021


            Bug ID: 51044
           Summary: FPE environment flags are not supported on ARM backend
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kbalke at waymo.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

I have come across the same issue documented in
https://bugs.llvm.org/show_bug.cgi?id=45155 when targeting an ARM Cortex-M
architecture. The suggested fix does not work, however, as it appears that the
-ffp-* flags are not supported for the ARM code generator.

Minimum reproducing example for our use-case: https://godbolt.org/z/7e11MKq7o

In the clang case, the conversion is reordered across the branch, thus causing
the FPE (which results in a jump to a handler if the FPE trap handler is
configured on the target, which ours is).

Would it be possible to have the strict floating-point-environment behavior
controls re-enabled for the ARM backend?

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210710/51b11e90/attachment.html>

More information about the llvm-bugs mailing list