1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

add div test as well

llvm-svn: 5245
This commit is contained in:
Chris Lattner 2003-01-13 00:56:54 +00:00
parent 4c8e84bb60
commit d7ba363bed

View File

@ -6,13 +6,15 @@ double %test(double* %DP, double %Arg) {
%X = mul double %W, %W
%Y = div double %X, %X
%Z = rem double %Y, %Y
%Z = div double %Z, %W
%Q = add double %Z, %Arg
store double %Q, double* %DP
%R = cast double %Q to double
store double %R, double* %DP
ret double %Z
}
int %main() {
%X = alloca double
call double %test(double* %X, double 1.0)
call double %test(double* %X, double 2.0)
ret int 0
}