[LLVMbugs] [Bug 11662] New: vector select with i8s seems to be broken
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 27 13:48:02 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11662
Bug #: 11662
Summary: vector select with i8s seems to be broken
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matt at pharr.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7809
--> http://llvm.org/bugs/attachment.cgi?id=7809
bitcode
See the attached test case, which does a vector select with compile-time
constant values for all operands. It should produce the result <100, 2, 100,
4, 100, 6, 100 8>, and does so if the select operands are i16, i32, or i64
types. However, if it is a vector of i8s, then the result returned is <100,
100, 100, 100, 100, 100, 100, 100>
% llc bug.ll -o bug.s && clang bug.s bug.cpp && ./a.out
0: x8 = 100.0 x16 = 100.0 x32 = 100.0 x64 = 100.0
1: x8 = 100.0 x16 = 2.0 x32 = 2.0 x64 = 2.0
2: x8 = 100.0 x16 = 100.0 x32 = 100.0 x64 = 100.0
3: x8 = 100.0 x16 = 4.0 x32 = 4.0 x64 = 4.0
4: x8 = 100.0 x16 = 100.0 x32 = 100.0 x64 = 100.0
5: x8 = 100.0 x16 = 6.0 x32 = 6.0 x64 = 6.0
6: x8 = 100.0 x16 = 100.0 x32 = 100.0 x64 = 100.0
7: x8 = 100.0 x16 = 8.0 x32 = 8.0 x64 = 8.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.
More information about the llvm-bugs
mailing list