<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm currently working on AArch64 strict fp support (which is what's needed to enable -ftrapping-math).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
There's a few patches currently in review:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://reviews.llvm.org/D114946" id="LPlnk116018">https://reviews.llvm.org/D114946</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://reviews.llvm.org/D115352" id="LPlnk412553" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">https://reviews.llvm.org/D115352</a> (though I need to rebase this)<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://reviews.llvm.org/D115620" id="LPlnk336844">https://reviews.llvm.org/D115620</a> (needs some extra work to enable a currently xfailed test)<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
And I'm working on some other patches:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Miscellaneous fixes for vector instruction lowering</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Model FPCR use in AArch64 instructions</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Fixes related to GlobalISel (not strictly needed as GlobalISel falls back to default isel when it can't handle things)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
John</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<hr tabindex="-1" style="display: inline-block; width: 98%; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> cfe-dev <cfe-dev-bounces@lists.llvm.org> on behalf of Florian Hahn via cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Sent:</b> 12 January 2022 15:16<br>
<b>To:</b> Umesh Kalappa <umesh.kalappa0@gmail.com>; cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Cc:</b> Kaylor, Andrew via llvm-dev <llvm-dev@lists.llvm.org>; Blower, Melanie I via cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Subject:</b> Re: [cfe-dev] [llvm-dev] Speculative FP operation.</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hi,<br>
<br>
> On Jan 12, 2022, at 04:50, Umesh Kalappa via llvm-dev <llvm-dev@lists.llvm.org> wrote:<br>
> <br>
> Hi All,<br>
> <br>
> Did someone tried enabling the trapping math for the aarch64 arch ?<br>
> So that we can surpass the transformation  like below.<br>
> <br>
<br>
As far as I know, initial trapping math support only existing for X86 at the moment.<br>
<br>
> If not ,we would like to take it up for ARM arch.<br>
<br>
<br>
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.<br>
<br>
Cheers,<br>
Florian<br>
_______________________________________________<br>
cfe-dev mailing list<br>
cfe-dev@lists.llvm.org<br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</div>
</span></font></div>
</div>
</body>
</html>