1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X32
3 ; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X64
5 ; widen extract subvector
7 define void @convert(<2 x double>* %dst.addr, <3 x double> %src) {
9 ; X32: # %bb.0: # %entry
10 ; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
11 ; X32-NEXT: movups {{[0-9]+}}(%esp), %xmm0
12 ; X32-NEXT: movaps %xmm0, (%eax)
16 ; X64: # %bb.0: # %entry
17 ; X64-NEXT: movlhps {{.*#+}} xmm0 = xmm0[0],xmm1[0]
18 ; X64-NEXT: movaps %xmm0, (%rdi)
21 %val = shufflevector <3 x double> %src, <3 x double> undef, <2 x i32> <i32 0, i32 1>
22 store <2 x double> %val, <2 x double>* %dst.addr