<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Vector widening code gen error"
href="http://llvm.org/bugs/show_bug.cgi?id=22774">22774</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Vector widening code gen error
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Wolfgang_Pieb@playstation.sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>@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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>