http://llvm.org/bugs/show_bug.cgi?id=20917
Bug ID: 20917
Summary: Bug in lowering of llvm.ctlz with vector arguments
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 13025
--> http://llvm.org/bugs/attachment.cgi?id=13025&action=edit
Resulting assembler
For the following test case llc -mattr=+sse2 produces wrong code.
define <2 x i32> @test(<2 x i32> %x) {
%1 = call <2 x i32> @llvm.ctlz.v2i32(<2 x i32> %x, i1 false)
ret <2 x i32> %1
}
declare <2 x i32> @llvm.ctlz.v2i32(<2 x i32>, i1)
I attached resulting assembler.
The problem is in psubq instruction:
.LCPI0_1:
.long 64 # 0x40 <-- expected 32
.long 0 # 0x0
.long 64 # 0x40
.long 0 # 0x0
....
psubq .LCPI0_1, %xmm1
--
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