1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- -mcpu=corei7 | FileCheck %s --check-prefixes=CHECK,X86
3 ; RUN: llc < %s -mtriple=x86_64-- -mcpu=corei7 | FileCheck %s --check-prefixes=CHECK,X64
5 define float @test(<4 x float>* %A) nounwind {
7 ; X86: # %bb.0: # %entry
8 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
9 ; X86-NEXT: xorps %xmm0, %xmm0
10 ; X86-NEXT: flds 12(%eax)
11 ; X86-NEXT: movaps %xmm0, (%eax)
15 ; X64: # %bb.0: # %entry
16 ; X64-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
17 ; X64-NEXT: xorps %xmm1, %xmm1
18 ; X64-NEXT: movaps %xmm1, (%rdi)
21 %T = load <4 x float>, <4 x float>* %A
22 %R = extractelement <4 x float> %T, i32 3
23 store <4 x float><float 0.0, float 0.0, float 0.0, float 0.0>, <4 x float>* %A