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=X86
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 ; X86: ## %bb.0: ## %entry
8 ; X86-NEXT: subl $44, %esp
9 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
10 ; X86-NEXT: andl $7, %eax
11 ; X86-NEXT: movaps %xmm1, {{[0-9]+}}(%esp)
12 ; X86-NEXT: movaps %xmm0, (%esp)
13 ; X86-NEXT: movl $1084227584, (%esp,%eax,4) ## imm = 0x40A00000
14 ; X86-NEXT: movaps (%esp), %xmm0
15 ; X86-NEXT: movaps {{[0-9]+}}(%esp), %xmm1
16 ; X86-NEXT: addl $44, %esp
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
30 %vecins = insertelement <8 x float> %a, float 5.000000e+00, i32 %b
31 ret <8 x float> %vecins