[LLVMbugs] [Bug 2976] New: Mips backend problem

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 29 04:51:27 PDT 2008


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

           Summary: Mips backend problem
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ben.swire at tandberg.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2152)
 --> (http://llvm.org/bugs/attachment.cgi?id=2152)
disassembled bugpoint output

Using llvm 2.3, and llvm-gcc 4.2-2.3-x86-linux-RHEL4, I get a problem with the
Mips backend. I am basing my own backend on this one, so tried a test with it
first. A simple program outputs "Hello world", creates a variable and counts to
5. 

Running through instructions in example at the bottom of
http://www.llvm.org/docs/GettingStarted.html I run into trouble at step 6,
running llc with the argument -march=mips.

I have run bugpoint to reduce and llvm-dis on the output, and the problem seems
to be in returning an i32. (assuming I understand the system correctly!)

When running llc normally, I get the following error:

[bens at BenSCentOS llvm]$ llc hello.bc -f -o hello.s -march=mips
terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc
llc[0x88409bf]
/lib/libc.so.6(abort+0x101)[0xc7a631]
/usr/lib/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x150)[0x7cbec60]
/usr/lib/libstdc++.so.6[0x7cbc6c5]
/usr/lib/libstdc++.so.6[0x7cbc702]
/usr/lib/libstdc++.so.6[0x7cbc83a]
/usr/lib/libstdc++.so.6(_Znwj+0x7e)[0x7cbccbe]
llc(_ZNSt6vectorISt4pairIPKN4llvm5SUnitEjESaIS5_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS5_S7_EERKS5_+0xb8)[0x8503708]
[0x77f56008]
Aborted

Any ideas?


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