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

           Summary: [AVX] incorrect code generated for <8 x i8> vector
                    shuffle
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=7297)
 --> (http://llvm.org/bugs/attachment.cgi?id=7297)
test case, part 1

The attached test case loads a vector of i8 values from memory
(0,1,2,3,4,5,6,7) and does a shuffle of them with shuffle indices
(2,3,4,5,6,7,0,1) (such that the result should be the same as the shuffle
indices).  If I compile with a regular SSE target, I get the expected result:

% llc bug.ll -o bug.s && clang bug.c bug.s && ./a.out
2 3 4 5 6 7 0 1

But with avx, all of the values are wrong.

% llc -mattr=+avx bug.ll -o bug.s && clang bug.c bug.s && ./a.out
0 2 3 4 5 6 7 0

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to