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 5 define <8 x float> @f(<8 x float> %a, i32 %b) nounwind { 6 ; X32-LABEL: f: 7 ; X32: ## BB#0: ## %entry 8 ; X32-NEXT: pushl %ebp 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: movaps %xmm1, {{[0-9]+}}(%esp) 14 ; X32-NEXT: movaps %xmm0, (%esp) 15 ; X32-NEXT: movl $1084227584, (%esp,%eax,4) ## imm = 0x40A00000 16 ; X32-NEXT: movaps (%esp), %xmm0 17 ; X32-NEXT: movaps {{[0-9]+}}(%esp), %xmm1 18 ; X32-NEXT: movl %ebp, %esp 19 ; X32-NEXT: popl %ebp 20 ; X32-NEXT: retl 21 ; 22 ; X64-LABEL: f: 23 ; X64: ## BB#0: ## %entry 24 ; X64-NEXT: pushq %rbp 25 ; X64-NEXT: movq %rsp, %rbp 26 ; X64-NEXT: andq $-32, %rsp 27 ; X64-NEXT: subq $64, %rsp 28 ; X64-NEXT: movaps %xmm1, {{[0-9]+}}(%rsp) 29 ; X64-NEXT: movaps %xmm0, (%rsp) 30 ; X64-NEXT: movslq %edi, %rax 31 ; X64-NEXT: movl $1084227584, (%rsp,%rax,4) ## imm = 0x40A00000 32 ; X64-NEXT: movaps (%rsp), %xmm0 33 ; X64-NEXT: movaps {{[0-9]+}}(%rsp), %xmm1 34 ; X64-NEXT: movq %rbp, %rsp 35 ; X64-NEXT: popq %rbp 36 ; X64-NEXT: retq 37 entry: 38 %vecins = insertelement <8 x float> %a, float 5.000000e+00, i32 %b 39 ret <8 x float> %vecins 40 } 41