• 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-apple-darwin9.2.2 -mattr=+sse2,-sse4.1 | FileCheck %s --check-prefix=X32
3; RUN: llc < %s -mtriple=x86_64-apple-darwin9.2.2 -mattr=+sse2,-sse4.1 | FileCheck %s --check-prefix=X64
4
5define <8 x float> @f(<8 x float> %a, i32 %b) nounwind  {
6; X32-LABEL: f:
7; X32:       ## %bb.0: ## %entry
8; X32-NEXT:    subl $44, %esp
9; X32-NEXT:    movl {{[0-9]+}}(%esp), %eax
10; X32-NEXT:    andl $7, %eax
11; X32-NEXT:    movaps %xmm1, {{[0-9]+}}(%esp)
12; X32-NEXT:    movaps %xmm0, (%esp)
13; X32-NEXT:    movl $1084227584, (%esp,%eax,4) ## imm = 0x40A00000
14; X32-NEXT:    movaps (%esp), %xmm0
15; X32-NEXT:    movaps {{[0-9]+}}(%esp), %xmm1
16; X32-NEXT:    addl $44, %esp
17; X32-NEXT:    retl
18;
19; X64-LABEL: f:
20; X64:       ## %bb.0: ## %entry
21; X64-NEXT:    ## kill: def $edi killed $edi def $rdi
22; X64-NEXT:    movaps %xmm1, -{{[0-9]+}}(%rsp)
23; X64-NEXT:    movaps %xmm0, -{{[0-9]+}}(%rsp)
24; X64-NEXT:    andl $7, %edi
25; X64-NEXT:    movl $1084227584, -40(%rsp,%rdi,4) ## imm = 0x40A00000
26; X64-NEXT:    movaps -{{[0-9]+}}(%rsp), %xmm0
27; X64-NEXT:    movaps -{{[0-9]+}}(%rsp), %xmm1
28; X64-NEXT:    retq
29entry:
30  %vecins = insertelement <8 x float> %a, float 5.000000e+00, i32 %b
31  ret <8 x float> %vecins
32}
33