llvm-project
llvm-project copied to clipboard
Sign extend from <4 x i1> to <4 x i64> - wrong code generated
| Bugzilla Link | 15267 |
| Resolution | FIXED |
| Resolved on | Sep 12, 2015 10:39 |
| Version | trunk |
| OS | All |
| CC | @RKSimon,@darkbuck |
Extended Description
The generated code for this testcase is wrong.
define <4 x i64> @test3(<4 x i1>* %in) nounwind { %wide.load35 = load <4 x i1>* %in, align 1 %sext = sext <4 x i1> %wide.load35 to <4 x i64> ret <4 x i64> %sext }
movzbl (%rcx), %eax
shlq $63, %rax
sarq $63, %rax
vmovd %rax, %xmm0
vbroadcastsd %xmm0, %ymm0
ret
This has been fixed for some time. Added vector i1 sextload tests at rL247509.
patch is submitted for review at http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130218/166183.html