llvm.org GIT mirror llvm / 5ac5ac2
[X86][SSE] Regenerate subvector extraction widening test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279388 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 3 years ago
1 changed file(s) with 17 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -march=x86-64 -mcpu=nehalem -mattr=+sse4.2 | FileCheck %s
0 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
1 ; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X32
2 ; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X64
3
14 ; widen extract subvector
25
36 define void @convert(<2 x double>* %dst.addr, <3 x double> %src) {
7 ; X32-LABEL: convert:
8 ; X32: # BB#0: # %entry
9 ; X32-NEXT: movups {{[0-9]+}}(%esp), %xmm0
10 ; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
11 ; X32-NEXT: movaps %xmm0, (%eax)
12 ; X32-NEXT: retl
13 ;
14 ; X64-LABEL: convert:
15 ; X64: # BB#0: # %entry
16 ; X64-NEXT: unpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
17 ; X64-NEXT: movapd %xmm0, (%rdi)
18 ; X64-NEXT: retq
419 entry:
5 ; CHECK-LABEL: convert:
6 ; CHECK: unpcklpd {{%xmm[0-7]}}, {{%xmm[0-7]}}
7 ; CHECK-NEXT: movapd
8 %val = shufflevector <3 x double> %src, <3 x double> undef, <2 x i32> < i32 0, i32 1>
20 %val = shufflevector <3 x double> %src, <3 x double> undef, <2 x i32> <i32 0, i32 1>
921 store <2 x double> %val, <2 x double>* %dst.addr
1022 ret void
1123 }