Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
      2 
      3 ; CHECK: vmovddup %ymm
      4 define <4 x i64> @A(<4 x i64> %a) {
      5   %c = shufflevector <4 x i64> %a, <4 x i64> undef, <4 x i32> <i32 0, i32 0, i32 2, i32 2>
      6   ret <4 x i64> %c
      7 }
      8 
      9 ; CHECK: vmovddup (%
     10 define <4 x i64> @B(<4 x i64>* %ptr) {
     11   %a = load <4 x i64>* %ptr
     12   %c = shufflevector <4 x i64> %a, <4 x i64> undef, <4 x i32> <i32 0, i32 0, i32 2, i32 2>
     13   ret <4 x i64> %c
     14 }
     15