[llvm-commits] CVS: llvm/test/Regression/Jello/2002-12-16-ArgTest.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Dec 17 20:08:01 PST 2002
Changes in directory llvm/test/Regression/Jello:
2002-12-16-ArgTest.ll updated: 1.2 -> 1.3
---
Log message:
Print argc as well as argv
---
Diffs of the changes:
Index: llvm/test/Regression/Jello/2002-12-16-ArgTest.ll
diff -u llvm/test/Regression/Jello/2002-12-16-ArgTest.ll:1.2 llvm/test/Regression/Jello/2002-12-16-ArgTest.ll:1.3
--- llvm/test/Regression/Jello/2002-12-16-ArgTest.ll:1.2 Mon Dec 16 17:31:48 2002
+++ llvm/test/Regression/Jello/2002-12-16-ArgTest.ll Tue Dec 17 20:07:21 2002
@@ -1,9 +1,7 @@
-%.LC0 = internal global [14 x sbyte] c"in getoptions\00" ; <[14 x sbyte]*> [#uses=1]
+%.LC0 = internal global [10 x sbyte] c"argc: %d\0A\00"
implementation ; Functions:
-void %__main() { ret void }
-
declare int %puts(sbyte*)
void %getoptions(int* %argc) {
@@ -11,12 +9,14 @@
ret void
}
+declare int %printf(sbyte*, ...)
+
int %main(int %argc, sbyte** %argv) {
bb0: ; No predecessors!
+ call int (sbyte*, ...)* %printf( sbyte* getelementptr ([10 x sbyte]* %.LC0, long 0, long 0), int %argc)
%cast224 = cast sbyte** %argv to sbyte* ; <sbyte*> [#uses=1]
%local = alloca sbyte* ; <sbyte**> [#uses=3]
store sbyte* %cast224, sbyte** %local
- call void %__main( )
%cond226 = setle int %argc, 0 ; <bool> [#uses=1]
br bool %cond226, label %bb3, label %bb2
More information about the llvm-commits
mailing list