mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Initial fp test
llvm-svn: 5155
This commit is contained in:
parent
53e9d39bc2
commit
14e00852c5
17
test/Regression/Jello/test-fp.ll
Normal file
17
test/Regression/Jello/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