[LLVMbugs] [Bug 1630] New: LHSCst != RHSCst && "Compares not folded above?" assertion in optimizer when compiling arm-apple-darwin ncurses

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 30 06:58:31 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1630

           Summary: LHSCst != RHSCst && "Compares not folded above?"
                    assertion in optimizer when compiling arm-apple-darwin
                    ncurses
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nightwatch41 at gmail.com
                CC: llvmbugs at cs.uiuc.edu


When trying to build an arm-apple-darwin version of ncurses using LLVM 2.0, we
get the following error during the test phase of compilation:

/usr/local/arm-apple-darwin/bin/gcc -I../test -I. -DHAVE_CONFIG_H -I.
-I../include  -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -DNDEBUG
-I/usr/local/arm-apple-darwin//include/ncurses -O2  -no-cpp-precomp
-no-cpp-precomp -c ../test/ncurses.c -o ../objects/ncurses.o
InstructionCombining.cpp:3939: failed assertion `LHSCst != RHSCst && "Compares
not folded above?"'
../test/ncurses.c:6307: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.
make[1]: *** [../objects/ncurses.o] Error 1
make: *** [all] Error 2

The issue is in the optimizer in LLVM 2.0. The bugpoint output has been
attached; "opt bugpoint-reduced-simplified.bc -instcombine" reproduces it for
me.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list