http://llvm.org/bugs/show_bug.cgi?id=6347
Summary: [X86] : wrong code generated for shufflevector
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Reproduce as follows:
------------------------
% tar -xvzf vshuffle.tarz
% llvm-gcc l_test.c -c
% llvm-as l_k2.ll
% opt -O2 l_k2.bc -o optim.bc
% cp l_k2.bc nonopt.bc
% llc optim.bc
% llc nonopt.bc
% gcc l_test.o optim.s -o optim
% gcc l_test.o nonopt.s -o nonopt
% ./nonopt
Pass
%/optim
Fail
The failed one went through opt. However, the optim.bc looks correct. And
optim.bc has shufflevector and nonopt.bc does not, and I think shufflevector
causes the problem.
l_k2.ll is equivalent to k2.c (in the tarball), so it is easy for you to see
what it is doing.
-----------------------
llvm: llvm version 2.7svn (DEBUG build, 2/18/2010, i386-pc-linux-gnu)
revision 96603
llvm-gcc: gcc vesion 4.2.1 (Based on Apple Inc. build 5658)
My system is ubuntu 9.10 32bit, running on intel pc.
--
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