https://bugs.llvm.org/show_bug.cgi?id=41539

Sanjay Patel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |[email protected]

--- Comment #2 from Sanjay Patel <[email protected]> ---
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to