[LLVMbugs] [Bug 22774] New: Vector widening code gen error
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 3 10:48:15 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22774
Bug ID: 22774
Summary: Vector widening code gen error
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: Wolfgang_Pieb at playstation.sony.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
@id9883 = global <4 x i64> <i64 -1, i64 -1, i64 -1, i64 -1>, align 32
@id9881 = global <2 x i64> zeroinitializer, align 16
define i32 @_Z3foov() #0 {
entry:
%0 = load <4 x i64>, <4 x i64>* @id9883, align 32
%vecext = extractelement <4 x i64> %0, i32 0
%vecinit = insertelement <2 x i64> undef, i64 %vecext, i32 0
%vecinit1 = insertelement <2 x i64> %vecinit, i64 0, i32 1
store <2 x i64> %vecinit1, <2 x i64>* @id9881, align 16
ret i32 0
}
; llc -march=x86-64 -mattr=avx
;
; does not zero out the upper bits of the result despite
; %vecinit1 = insertelement <2 x i64> %vecinit, i64 0, i32 1
;
; generating the following code:
;
; vmovaps id9883(%rip), %ymm0
; vextractf128 $1, %ymm0, %xmm1
; vpblendw $240, %xmm1, %xmm0, %xmm0 # xmm0 =
xmm0[0,1,2,3],xmm1[4,5,6,7]
; vmovdqa %xmm0, id9881(%rip)
;
; Seems to have started with r224429.
;
; The test case is a simplification from a use of the builtin
; _mm_cvtsi64_si128.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150303/ed5e78ea/attachment.html>
More information about the llvm-bugs
mailing list