Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -mtriple=x86_64-pc-linux-gnu -mattr=+avx < %s | FileCheck %s
      2 
      3 @in = global <4 x i64> <i64 -1, i64 -1, i64 -1, i64 -1>, align 32
      4 @out = global <2 x i64> zeroinitializer, align 16
      5 
      6 define i32 @_Z3foov() {
      7 entry:
      8 ; CHECK: vmovdqa in(%rip), %ymm0
      9 ; CHECK-NEXT: vmovq %xmm0, %xmm0
     10 ; CHECK-NEXT: vmovdqa %xmm0, out(%rip)
     11   %0 = load <4 x i64>, <4 x i64>* @in, align 32
     12   %vecext = extractelement <4 x i64> %0, i32 0
     13   %vecinit = insertelement <2 x i64> undef, i64 %vecext, i32 0
     14   %vecinit1 = insertelement <2 x i64> %vecinit, i64 0, i32 1
     15   store <2 x i64> %vecinit1, <2 x i64>* @out, align 16
     16   ret i32 0
     17 }
     18