mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
2f17d0facf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189198 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
819 B
LLVM
28 lines
819 B
LLVM
; RUN: llc < %s -march=sparc -mattr=hard-quad-float | FileCheck %s
|
|
|
|
; CHECK-LABEL: f128_ops
|
|
; CHECK: ldd
|
|
; CHECK: ldd
|
|
; CHECK: ldd
|
|
; CHECK: ldd
|
|
; CHECK: faddq [[R0:.+]], [[R1:.+]], [[R2:.+]]
|
|
; CHECK: fsubq [[R2]], [[R3:.+]], [[R4:.+]]
|
|
; CHECK: fmulq [[R4]], [[R5:.+]], [[R6:.+]]
|
|
; CHECK: fdivq [[R6]], [[R2]]
|
|
; CHECK: std
|
|
; CHECK: std
|
|
|
|
define void @f128_ops(fp128* noalias sret %scalar.result, fp128* byval %a, fp128* byval %b, fp128* byval %c, fp128* byval %d) {
|
|
entry:
|
|
%0 = load fp128* %a, align 8
|
|
%1 = load fp128* %b, align 8
|
|
%2 = load fp128* %c, align 8
|
|
%3 = load fp128* %d, align 8
|
|
%4 = fadd fp128 %0, %1
|
|
%5 = fsub fp128 %4, %2
|
|
%6 = fmul fp128 %5, %3
|
|
%7 = fdiv fp128 %6, %4
|
|
store fp128 %7, fp128* %scalar.result, align 8
|
|
ret void
|
|
}
|