[llvm-commits] CVS: llvm/test/Regression/Jello/test-fp.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 28 14:01:07 PST 2002


Changes in directory llvm/test/Regression/Jello:

test-fp.ll updated: 1.1 -> 1.2

---
Log message:

Test argument passing


---
Diffs of the changes:

Index: llvm/test/Regression/Jello/test-fp.ll
diff -u llvm/test/Regression/Jello/test-fp.ll:1.1 llvm/test/Regression/Jello/test-fp.ll:1.2
--- llvm/test/Regression/Jello/test-fp.ll:1.1	Tue Dec 24 23:14:29 2002
+++ llvm/test/Regression/Jello/test-fp.ll	Sat Dec 28 14:00:47 2002
@@ -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 
 }





More information about the llvm-commits mailing list