[LLVMbugs] [Bug 216] [llvmgcc] floating-point unary minus is incorrect for +0.0

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 3 16:44:36 PST 2004


mkahl at apple.com changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

------- Additional Comments From mkahl at apple.com  2004-02-03 18:44 -------
The proposed patch does NOT fix the bug.  Specifically, the test case still fails with argument "0.0".

It looks like the front end is now getting it right:

        % llvm-gcc -S minus.c
        % fgrep 'sub double' minus.s
                %tmp.1 = sub double -0.0, %tmp.0                 ; ty=double

So far, so good.  But:

        % llvm-gcc -c -Wa,-disable-opt minus.c
        % llvm-dis -o - minus.o | fgrep 'sub double'
                %tmp.1 = sub double 0x0, %tmp.0         ; <double> [#uses=1]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list