[LLVMbugs] [Bug 11881] New: error in backend: Cannot select

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 29 09:10:31 PST 2012


             Bug #: 11881
           Summary: error in backend: Cannot select
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

[regehr at gamow tmp]$ clang -v

clang version 3.1 (trunk 149185)
Target: x86_64-unknown-linux-gnu
Thread model: posix

[regehr at gamow tmp]$ clang -c -O2 small.c 

fatal error: error in backend: Cannot select: 0x2b7ebb0: i32 = shl 0x2b7f0b0,
      0x2b9cea0 [ID=13]
  0x2b7f0b0: i32 = add 0x2b9caa0, 0x2b9cca0 [ID=12]
    0x2b9caa0: i32,ch = load 0x2b445b0, 0x2b9cba0, 0x2b7e5b0<LD2[@a], zext from
i16> [ID=11]
      0x2b9cba0: i64 = X86ISD::Wrapper 0x2b7ecb0 [ID=10]
        0x2b7ecb0: i64 = TargetGlobalAddress<i16* @a> 0 [ID=6]
      0x2b7e5b0: i64 = undef [ORD=3] [ID=1]
    0x2b9cca0: i32 = Constant<-1> [ID=7]
  0x2b9cea0: i32 = Constant<16> [ID=8]

[regehr at gamow tmp]$ cat small.c

int func_0 ( si1 )
  return 0;

short a;

short func_2 (  )
  int b = a - 1;
  return b;

int g_117;

void func_47 (  )
  int c = func_2 (  ) | func_0 ( 0 );
  g_117 = -1L < c;

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