1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-pc-linux-gnu -mattr=+avx < %s | FileCheck %s
4 @in = global <4 x i64> <i64 -1, i64 -1, i64 -1, i64 -1>, align 32
5 @out = global <2 x i64> zeroinitializer, align 16
7 define i32 @_Z3foov() {
8 ; CHECK-LABEL: _Z3foov:
9 ; CHECK: # %bb.0: # %entry
10 ; CHECK-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
11 ; CHECK-NEXT: vmovaps %xmm0, {{.*}}(%rip)
12 ; CHECK-NEXT: xorl %eax, %eax
15 %0 = load <4 x i64>, <4 x i64>* @in, align 32
16 %vecext = extractelement <4 x i64> %0, i32 0
17 %vecinit = insertelement <2 x i64> undef, i64 %vecext, i32 0
18 %vecinit1 = insertelement <2 x i64> %vecinit, i64 0, i32 1
19 store <2 x i64> %vecinit1, <2 x i64>* @out, align 16