33 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -mcpu=corei7 | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-- -mcpu=corei7 | FileCheck %s --check-prefix=X644 5define float @test(ptr %A) nounwind {6; X86-LABEL: test:7; X86: # %bb.0: # %entry8; X86-NEXT: pushl %eax9; X86-NEXT: movl {{[0-9]+}}(%esp), %eax10; X86-NEXT: movaps (%eax), %xmm011; X86-NEXT: shufps {{.*#+}} xmm0 = xmm0[3,3,3,3]12; X86-NEXT: xorps %xmm1, %xmm113; X86-NEXT: movaps %xmm1, (%eax)14; X86-NEXT: movss %xmm0, (%esp)15; X86-NEXT: flds (%esp)16; X86-NEXT: popl %eax17; X86-NEXT: retl18;19; X64-LABEL: test:20; X64: # %bb.0: # %entry21; X64-NEXT: movaps (%rdi), %xmm022; X64-NEXT: shufps {{.*#+}} xmm0 = xmm0[3,3,3,3]23; X64-NEXT: xorps %xmm1, %xmm124; X64-NEXT: movaps %xmm1, (%rdi)25; X64-NEXT: retq26entry:27 %T = load <4 x float>, ptr %A28 %R = extractelement <4 x float> %T, i32 329 store <4 x float><float 0.0, float 0.0, float 0.0, float 0.0>, ptr %A30 ret float %R31}32 33