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:
Chris Lattner 2002-12-25 05:14:29 +00:00
parent 94af414b71
commit 3b24559df0

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
}