1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 06:22:51 +01:00
llvm-mirror/test/Regression/Jello/test-fp.ll
Chris Lattner 14e00852c5 Initial fp test
llvm-svn: 5155
2002-12-25 05:14:29 +00:00

18 lines
304 B
LLVM

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
}