[LLVMbugs] [Bug 2453] New: Testcase (and/or cbe) generates uncompilable C code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jun 13 09:45:10 PDT 2008


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

           Summary: Testcase (and/or cbe) generates uncompilable C code
           Product: Test Suite
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DejaGNU
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matthijs at stdin.nl
                CC: llvmbugs at cs.uiuc.edu


THe misopt-basictest.ll bugpoint test generates failing C code through CBE.
This
cause compilation to fail and bugpoint never gets around to finding the actual
bug. It seems this is caused or at least related to the lack of a datalayout in
the .ll file. If i add:
  target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" 
  target triple = "i386-pc-linux-gnu"          

Things compile as expected on my x86-32 linux system. The error in question
concern the typedef for an 128 bit integer type, which isn't even used in the
code.

I've XFAIL'd the test for now.



FAIL: /home/kooijman/src/llvm-trunk/test/BugPoint/misopt-basictest.ll
Failed with unknown error (or has stderr output) at line 1
while running: bugpoint
/home/kooijman/src/llvm-trunk/test/BugPoint/misopt-basictest.ll -dce
-bugpoint-deletecalls -simplifycfg -silence-passes
Read input file      :
'/home/kooijman/src/llvm-trunk/test/BugPoint/misopt-basictest.ll'
*** All input ok
Running selected passes on program to test for crash: Success!
Initializing execution environment: Found gcc: /usr/bin/gcc
Running the code generator to test for a crash: <cbe>
Generating reference output from raw program: <cbe><cbe><gcc>
Checking to see if we can delete global inits: <cbe>  - Removing all global
inits hides problem!
Checking for crash with only these blocks: : <cbe>
*** Attempting to reduce testcase by deleting instructions: Simplification
Level #1
Checking instruction '': <cbe>
*** Attempting to reduce testcase by deleting instructions: Simplification
Level #0
Checking instruction '': <cbe>
*** Attempting to perform final cleanups: <cbe>Emitted bitcode to
'bugpoint-reduced-simplified.bc'

*** You can reproduce the problem with: opt bugpoint-reduced-simplified.bc -dce
-bugpoint-deletecalls -simplifycfg

Error running tool:
  /usr/bin/gcc -x c -fno-strict-aliasing bugpoint-test-program.bc.cbe.c-BXIQYJ
-x none -o bugpoint-test-program.bc.cbe.c-BXIQYJ.gcc.exe -lm -O2 -Wl,-R.
bugpoint-test-program.bc.cbe.c-BXIQYJ:83: error: unable to emulate ‘TI’
bugpoint-test-program.bc.cbe.c-BXIQYJ:84: error: unable to emulate ‘TI’
bugpoint-test-program.bc.cbe.c-BXIQYJ:127: warning: conflicting types for
built-in function ‘malloc’
bugpoint-test-program.bc.cbe.c-BXIQYJ: In function ‘main’:
bugpoint-test-program.bc.cbe.c-BXIQYJ:156: warning: return type of ‘main’
is not ‘int’
*** Debugging code generator crash!


-- 
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