[LLVMbugs] [Bug 1236] NEW: vector of ints not supported

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Mar 1 23:56:46 PST 2007


           Summary: vector of ints not supported
           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

$ llvm-gcc -S -mmmx -O2 t.c
Assertion failed: (0 && "This action is not supported yet!"), function LegalizeOp, file /Volumes/Gir/
devel/llvm/llvm.src/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp, line 1510.
t.c:9: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.
$ cat t.c
#include <mmintrin.h>

typedef int V __attribute__ ((__vector_size__ (8)));

void foo(V *A, V *B)
  *A = *B;

GCC generates this:

$ gcc -S -mmmx -O2 t.c
$ more t.s
        .align 4,0x90
.globl _foo
        pushl   %ebp
        movl    %esp, %ebp
        subl    $8, %esp
        movl    12(%ebp), %eax
        movl    (%eax), %edx
        movl    4(%eax), %ecx
        movl    8(%ebp), %eax
        movl    %edx, (%eax)
        movl    %ecx, 4(%eax)

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