mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107608 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
654 B
LLVM
25 lines
654 B
LLVM
; RUN: llc < %s -march=x86-64 -asm-verbose=0 -o - | FileCheck %s -check-prefix=X64
|
|
; RUN: llc < %s -mcpu=yonah -march=x86 -asm-verbose=0 -o - | FileCheck %s -check-prefix=X32
|
|
|
|
; 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
|
|
; X64: test1:
|
|
; X64-NEXT: addss %xmm1, %xmm0
|
|
; X64-NEXT: movss %xmm0, (%rdi)
|
|
; X64-NEXT: ret
|
|
|
|
; X32: test1:
|
|
; X32-NEXT: movss 4(%esp), %xmm0
|
|
; X32-NEXT: addss 8(%esp), %xmm0
|
|
; X32-NEXT: movl 12(%esp), %eax
|
|
; X32-NEXT: movss %xmm0, (%eax)
|
|
; X32-NEXT: ret
|
|
}
|
|
|