Chris Lattner | e35d984 | 2010-07-04 22:57:10 +0000 | [diff] [blame^] | 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 |