https://bugs.llvm.org/show_bug.cgi?id=41594
Bug ID: 41594
Summary: [x86] miscompile extract of bool vec
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedb...@nondot.org
Reporter: spatel+l...@rotateright.com
CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
llvm-...@redking.me.uk, spatel+l...@rotateright.com
define i16 @bitcast_extract(<32 x i8> %x, <32 x i8> %y) {
%t1 = icmp slt <32 x i8> %x, %y
%t2 = bitcast <32 x i1> %t1 to <2 x i16>
%t3 = extractelement <2 x i16> %t2, i32 1
ret i16 %t3
}
For a pre-AVX target, this gets reduced wrongly to an undef, so:
$ ./llc -o - ext.ll
retq
The problem appears during legalization, but I have not stepped through all of
the debug spew to see exactly what happened.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs