[llvm-bugs] [Bug 41539] Problem with 'fadd' two constant operands.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 19 10:16:04 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41539
Sanjay Patel <spatel+llvm at rotateright.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
CC| |spatel+llvm at rotateright.com
--- Comment #2 from Sanjay Patel <spatel+llvm at rotateright.com> ---
Look closer at the exact location of the error message:
$ opt -instcombine fadd.ll -S
opt: fadd.ll:2:31: error: floating point constant invalid for type
%r = fadd float 4.500000e0, 3.200000e0
^
$ opt -instcombine fadd.ll -S
opt: fadd.ll:2:19: error: floating point constant invalid for type
%r = fadd float 3.200000e0, 3.200000e0
^
The problem is not that both operands are constant. The problem is that the 3.2
constant is not representable exactly as a 'float' type; 4.5 is.
--
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/20190419/fadfae6f/attachment.html>
More information about the llvm-bugs
mailing list