[LLVMbugs] [Bug 2799] New: LLC fails to emit MIPS assembly code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Sep 16 05:16:56 PDT 2008


           Summary: LLC fails to emit MIPS assembly code
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ihusar at fit.vutbr.cz
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=2019)
 --> (http://llvm.org/bugs/attachment.cgi?id=2019)
failing bc file

I compiled a simple "Hello world" example i C language to LLVM IR. Now when I
use the LLC to emit assembly for MIPS architecture, the LLC fails.

1) $cat test.c

#include <stdio.h>
int main()
  return 0;

2) $llvm-gcc test.c -emit-llvm -c -o test.bc

3) $llc -march=mips test.bc

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

All the other supported architectures (x86, x86-4, alpha, sparc, ppc32, ppc64,
arm, thumb, cellspu) work fine and a correct assembly file is generated.


Here are listed versions of tools/OS I used:

$llvm-gcc --version
llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5555) (LLVM build 2.3)

$llc --version
Low Level Virtual Machine (http://llvm.org/):
  llvm version 2.3
  Optimized build with assertions.

$cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 65
model name      : Dual-Core AMD Opteron(tm) Processor 2216

$cat /etc/issue
CentOS release 5 (Final)

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