Hi,> On Jan 12, 2022, at 04:50, Umesh Kalappa via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi All, > > Did someone tried enabling the trapping math for the aarch64 arch ? > So that we can surpass the transformation like below. >As far as I know, initial trapping math support only existing for X86 at the moment.> If not ,we would like to take it up for ARM arch.I am not aware of anybody working on trapping math for AArch64, so any work in this area could be very valuable. I am CC’ing a couple of people who might know more about the current state of trapping math in Clang. Cheers, Florian
John Brawn via llvm-dev
2022-Jan-12 16:23 UTC
[llvm-dev] [cfe-dev] Speculative FP operation.
I'm currently working on AArch64 strict fp support (which is what's needed to enable -ftrapping-math). There's a few patches currently in review: https://reviews.llvm.org/D114946 https://reviews.llvm.org/D115352 (though I need to rebase this) https://reviews.llvm.org/D115620 (needs some extra work to enable a currently xfailed test) And I'm working on some other patches: Miscellaneous fixes for vector instruction lowering Model FPCR use in AArch64 instructions Fixes related to GlobalISel (not strictly needed as GlobalISel falls back to default isel when it can't handle things) Once all of the above is done I think that I can then mark AArch64 as supporting strict fp in clang, so that -ftrapping-math isn't ignored. John ________________________________ From: cfe-dev <cfe-dev-bounces at lists.llvm.org> on behalf of Florian Hahn via cfe-dev <cfe-dev at lists.llvm.org> Sent: 12 January 2022 15:16 To: Umesh Kalappa <umesh.kalappa0 at gmail.com>; cfe-dev <cfe-dev at lists.llvm.org> Cc: Kaylor, Andrew via llvm-dev <llvm-dev at lists.llvm.org>; Blower, Melanie I via cfe-dev <cfe-dev at lists.llvm.org> Subject: Re: [cfe-dev] [llvm-dev] Speculative FP operation. Hi,> On Jan 12, 2022, at 04:50, Umesh Kalappa via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi All, > > Did someone tried enabling the trapping math for the aarch64 arch ? > So that we can surpass the transformation like below. >As far as I know, initial trapping math support only existing for X86 at the moment.> If not ,we would like to take it up for ARM arch.I am not aware of anybody working on trapping math for AArch64, so any work in this area could be very valuable. I am CC’ing a couple of people who might know more about the current state of trapping math in Clang. Cheers, Florian _______________________________________________ cfe-dev mailing list cfe-dev at lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20220112/3af59d75/attachment.html>
On Wed, Jan 12, 2022 at 03:16:54PM +0000, Florian Hahn via llvm-dev wrote:> Hi, > > > On Jan 12, 2022, at 04:50, Umesh Kalappa via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > > Hi All, > > > > Did someone tried enabling the trapping math for the aarch64 arch ? > > So that we can surpass the transformation like below. > > > > As far as I know, initial trapping math support only existing for X86 at the moment.X86, PowerPC, SystemZ. I believe PowerPC is the only target that properly handles dynamic rounding mode, where instructions don't get moved past a call instruction since we don't know if the rounding mode will be changed. I might have missed the fix for the other targets, though. -- Kevin P. Neal http://www.pobox.com/~kpn/ Seen on bottom of IBM part number 1887724: DO NOT EXPOSE MOUSE PAD TO DIRECT SUNLIGHT FOR EXTENDED PERIODS OF TIME.