Test argument passing

llvm-svn: 5159
This commit is contained in:
Chris Lattner 2002-12-28 20:00:47 +00:00
parent 1c2ddafa2e
commit c513cbfa46

View File

@ -1,17 +1,18 @@
double %test(double* %DP) {
double %test(double* %DP, double %Arg) {
%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
%Q = add double %Z, %Arg
store double %Q, double* %DP
ret double %Z
}
int %main() {
%X = alloca double
call double %test(double* %X)
call double %test(double* %X, double 1.0)
ret int 0
}