mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Initial fp test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94af414b71
commit
3b24559df0
17
test/ExecutionEngine/test-fp.ll
Normal file
17
test/ExecutionEngine/test-fp.ll
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
double %test(double* %DP) {
|
||||
%D = load double* %DP
|
||||
%V = add double %D, 1.0
|
||||
%W = sub double %V, %V
|
||||
%X = mul double %W, %W
|
||||
%Y = div double %X, %X
|
||||
%Z = rem double %Y, %Y
|
||||
store double %Z, double* %DP
|
||||
ret double %Z
|
||||
}
|
||||
|
||||
int %main() {
|
||||
%X = alloca double
|
||||
call double %test(double* %X)
|
||||
ret int 0
|
||||
}
|
Loading…
Reference in New Issue
Block a user