• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
4
5; widen extract subvector
6
7define void @convert(<2 x double>* %dst.addr, <3 x double> %src)  {
8; X32-LABEL: convert:
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)
13; X32-NEXT:    retl
14;
15; X64-LABEL: convert:
16; X64:       # %bb.0: # %entry
17; X64-NEXT:    movlhps {{.*#+}} xmm0 = xmm0[0],xmm1[0]
18; X64-NEXT:    movaps %xmm0, (%rdi)
19; X64-NEXT:    retq
20entry:
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
23  ret void
24}
25