[LLVMbugs] [Bug 1303] NEW: "extractelement" doesn't work for X86

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 4 00:28:26 PDT 2007


           Summary: "extractelement" doesn't work for X86
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: isanbard at gmail.com

For this simple code:

define i8 @bork(<16 x i8> %a) {
  %tmp = extractelement <16 x i8> %a, i32 0
  ret i8 %tmp

I get this:

$ llvm-as -f b.ll
$ opt -std-compile-opts -o a.bc -f b.bc
$ llc -o - a.bc -march=x86
/Users/wendling/llvm/llvm.src/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:3292: failed assertion 
`0 && "Don't support illegal by-val vector arguments yet!"'
Abort trap

This doesn't abort in PPC:

$ llc -o - a.bc
        .machine ppc7400
.section __TEXT,__textcoal_nt,coalesced,pure_instructions
.section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16

        .globl  _bork
        .align  4
        addi r3, r1, -16
        stvx v2, 0, r3
        lbz r3, -16(r1)


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list