[LLVMbugs] [Bug 11129] New: llc 2.9 is failing failing to compile following example for ARM Cortex-A9

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 14 07:13:35 PDT 2011


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

           Summary: llc 2.9 is failing failing to compile following
                    example for ARM Cortex-A9
           Product: new-bugs
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: babslachem at gmail.com
                CC: llvmbugs at cs.uiuc.edu


On following code:

define arm_aapcscc void @test_convert_ushort2_ulong2(<2 x i64>* nocapture %src,
<2 x i16>* nocapture %dest) nounwind {
L.entry:
  %0 = load <2 x i64>* %src, align 16
  %1 = trunc <2 x i64> %0 to <2 x i16>
  store <2 x i16> %1, <2 x i16>* %dest, align 4
  ret void
}

When compiling for arm cortex-a9 target using following command line:

llc -march=arm -mcpu=cortex-a9 conv.ll -s conv.s 

I've got following internal error message:

LLVM ERROR: Cannot select: 0x812dab0: v4i16 = extract_subvector 0x812de68,
0x812d780 [ID=10]
  0x812de68: v4i32 = bit_convert 0x812d9a0 [ID=9]
    0x812d9a0: v2f64,ch = load 0x811a404, 0x812d5e8, 0x812d808<LD16[%src]>
[ID=8]
      0x812d5e8: i32,ch = CopyFromReg 0x811a404, 0x812d560 [ORD=1] [ID=6]
        0x812d560: i32 = Register %vreg0 [ORD=1] [ID=1]
      0x812d808: i32 = undef [ORD=1] [ID=3]
  0x812d780: i32 = Constant<0> [ID=4]

If I remove -mcpu=cortex-a9 from command line, it compiles successfully

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