mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30859 91177308-0d34-0410-b5e6-96231b3b80d8
42 lines
762 B
LLVM
42 lines
762 B
LLVM
; RUN: llvm-as < %s | llc -march=arm &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fadds &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep faddd &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fmuls &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fmuld
|
|
|
|
float %f1(float %a, float %b) {
|
|
entry:
|
|
%tmp = add float %a, %b
|
|
ret float %tmp
|
|
}
|
|
|
|
double %f2(double %a, double %b) {
|
|
entry:
|
|
%tmp = add double %a, %b
|
|
ret double %tmp
|
|
}
|
|
|
|
float %f3(float %a, float %b) {
|
|
entry:
|
|
%tmp = mul float %a, %b
|
|
ret float %tmp
|
|
}
|
|
|
|
double %f4(double %a, double %b) {
|
|
entry:
|
|
%tmp = mul double %a, %b
|
|
ret double %tmp
|
|
}
|
|
|
|
float %f5(float %a, float %b) {
|
|
entry:
|
|
%tmp = sub float %a, %b
|
|
ret float %tmp
|
|
}
|
|
|
|
double %f6(double %a, double %b) {
|
|
entry:
|
|
%tmp = sub double %a, %b
|
|
ret double %tmp
|
|
}
|