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
5 define <8 x float> @f(<8 x float> %a, i32 %b) nounwind {
7 ; X32: ## %bb.0: ## %entry
9 ; X32-NEXT: movl %esp, %ebp
10 ; X32-NEXT: andl $-32, %esp
11 ; X32-NEXT: subl $64, %esp
12 ; X32-NEXT: movl 8(%ebp), %eax
13 ; X32-NEXT: andl $7, %eax
14 ; X32-NEXT: movaps %xmm1, {{[0-9]+}}(%esp)
15 ; X32-NEXT: movaps %xmm0, (%esp)
16 ; X32-NEXT: movl $1084227584, (%esp,%eax,4) ## imm = 0x40A00000
17 ; X32-NEXT: movaps (%esp), %xmm0
18 ; X32-NEXT: movaps {{[0-9]+}}(%esp), %xmm1
19 ; X32-NEXT: movl %ebp, %esp
24 ; X64: ## %bb.0: ## %entry
25 ; X64-NEXT: pushq %rbp
26 ; X64-NEXT: movq %rsp, %rbp
27 ; X64-NEXT: andq $-32, %rsp
28 ; X64-NEXT: subq $64, %rsp
29 ; X64-NEXT: ## kill: def $edi killed $edi def $rdi
30 ; X64-NEXT: movaps %xmm1, {{[0-9]+}}(%rsp)
31 ; X64-NEXT: movaps %xmm0, (%rsp)
32 ; X64-NEXT: andl $7, %edi
33 ; X64-NEXT: movl $1084227584, (%rsp,%rdi,4) ## imm = 0x40A00000
34 ; X64-NEXT: movaps (%rsp), %xmm0
35 ; X64-NEXT: movaps {{[0-9]+}}(%rsp), %xmm1
36 ; X64-NEXT: movq %rbp, %rsp
40 %vecins = insertelement <8 x float> %a, float 5.000000e+00, i32 %b
41 ret <8 x float> %vecins