[llvm-dev] [FPEnv] FNEG instruction

Sanjay Patel via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 2 14:12:45 PDT 2018


On Tue, Oct 2, 2018 at 10:09 AM Kevin Neal <Kevin.Neal at sas.com> wrote:

> If we don’t have constrained intrinsics for some of the fp math
> instructions then aren’t we risking non-strict optimizations?
>

As I said in my last reply, I haven't followed the constrained work, so I
don't know...but I'm curious.
What is the optimized LLVM IR for this C source assuming the frontend
recognizes/respects the pragma:

#pragma STDC FENV_ACCESS ON

float negneg(float x, float y) {
  return (-x) * (-y);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181002/6203f51e/attachment.html>


More information about the llvm-dev mailing list