1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mattr=+sse2 | FileCheck %s --check-prefix=SSE --check-prefix=SSE2
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mattr=+ssse3 | FileCheck %s --check-prefix=SSE --check-prefix=SSSE3
3 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mattr=+sse4.1 | FileCheck %s --check-prefix=SSE --check-prefix=SSE41
4 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mattr=+avx | FileCheck %s --check-prefix=AVX --check-prefix=AVX1
5 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mattr=+avx2 | FileCheck %s --check-prefix=AVX --check-prefix=AVX2
7 define <4 x i32> @load_zmov_4i32_to_0zzz(<4 x i32> *%ptr) {
8 ; SSE-LABEL: load_zmov_4i32_to_0zzz:
9 ; SSE: # BB#0: # %entry
10 ; SSE-NEXT: movd (%rdi), %xmm0
13 ; AVX-LABEL: load_zmov_4i32_to_0zzz:
14 ; AVX: # BB#0: # %entry
15 ; AVX-NEXT: vmovd (%rdi), %xmm0
18 %X = load <4 x i32>, <4 x i32>* %ptr
19 %Y = shufflevector <4 x i32> %X, <4 x i32> zeroinitializer, <4 x i32> <i32 0, i32 4, i32 4, i32 4>
23 define <2 x i64> @load_zmov_2i64_to_0z(<2 x i64> *%ptr) {
24 ; SSE-LABEL: load_zmov_2i64_to_0z:
25 ; SSE: # BB#0: # %entry
26 ; SSE-NEXT: movq (%rdi), %xmm0
29 ; AVX-LABEL: load_zmov_2i64_to_0z:
30 ; AVX: # BB#0: # %entry
31 ; AVX-NEXT: vmovq (%rdi), %xmm0
34 %X = load <2 x i64>, <2 x i64>* %ptr
35 %Y = shufflevector <2 x i64> %X, <2 x i64> zeroinitializer, <2 x i32> <i32 0, i32 2>