mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
add some tests for floating point arithmetic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2bdcb3187
commit
ff7e63cf7a
29
test/CodeGen/ARM/fparith.ll
Normal file
29
test/CodeGen/ARM/fparith.ll
Normal file
@ -0,0 +1,29 @@
|
||||
; 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 %f(float %a, float %b) {
|
||||
entry:
|
||||
%tmp = add float %a, %b
|
||||
ret float %tmp
|
||||
}
|
||||
|
||||
double %g(double %a, double %b) {
|
||||
entry:
|
||||
%tmp = add double %a, %b
|
||||
ret double %tmp
|
||||
}
|
||||
|
||||
float %h(float %a, float %b) {
|
||||
entry:
|
||||
%tmp = mul float %a, %b
|
||||
ret float %tmp
|
||||
}
|
||||
|
||||
double %i(double %a, double %b) {
|
||||
entry:
|
||||
%tmp = mul double %a, %b
|
||||
ret double %tmp
|
||||
}
|
Loading…
Reference in New Issue
Block a user