1
0
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:
Chris Lattner 2002-12-25 05:14:29 +00:00
parent 53e9d39bc2
commit 14e00852c5

View 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
}