summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/v2f32.ll
blob: 509d528e84c61a2cb298f2589ffcda64a9d06818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llc < %s -march=x86-64 -asm-verbose=0 -o - | FileCheck %s

; PR7518
define void @test1(<2 x float> %Q, float *%P2) nounwind {
  %a = extractelement <2 x float> %Q, i32 0
  %b = extractelement <2 x float> %Q, i32 1
  %c = fadd float %a, %b

  store float %c, float* %P2
  ret void
; CHECK: test1:
; CHECK-NEXT: addss	%xmm1, %xmm0
; CHECK-NEXT: movss	%xmm0, (%rdi)
; CHECK-NEXT: ret
}