fix PR7518 - terrible codegen of <2 x float>, by only marking
[oota-llvm.git] / test / CodeGen / X86 / v2f32.ll
1 ; RUN: llc < %s -march=x86-64 -asm-verbose=0 -o - | FileCheck %s
2
3 ; PR7518
4 define void @test1(<2 x float> %Q, float *%P2) nounwind {
5   %a = extractelement <2 x float> %Q, i32 0
6   %b = extractelement <2 x float> %Q, i32 1
7   %c = fadd float %a, %b
8
9   store float %c, float* %P2
10   ret void
11 ; CHECK: test1:
12 ; CHECK-NEXT: addss     %xmm1, %xmm0
13 ; CHECK-NEXT: movss     %xmm0, (%rdi)
14 ; CHECK-NEXT: ret
15 }
16