[llvm-commits] CVS: llvm/test/Regression/Jello/2003-08-21-EnvironmentTest.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 21 16:34:03 PDT 2003
Changes in directory llvm/test/Regression/Jello:
2003-08-21-EnvironmentTest.ll updated: 1.1 -> 1.2
---
Log message:
Simplify test
---
Diffs of the changes:
Index: llvm/test/Regression/Jello/2003-08-21-EnvironmentTest.ll
diff -u llvm/test/Regression/Jello/2003-08-21-EnvironmentTest.ll:1.1 llvm/test/Regression/Jello/2003-08-21-EnvironmentTest.ll:1.2
--- llvm/test/Regression/Jello/2003-08-21-EnvironmentTest.ll:1.1 Thu Aug 21 16:18:21 2003
+++ llvm/test/Regression/Jello/2003-08-21-EnvironmentTest.ll Thu Aug 21 16:33:19 2003
@@ -8,27 +8,16 @@
target endian = little
target pointersize = 32
- %struct..TorRec = type { int, void ()* }
-implementation ; Functions:
+implementation
declare uint %strlen(sbyte*)
-declare void %exit(int)
-
-internal void %__main() {
-entry: ; No predecessors!
- ret void
-}
-
int %main(int %argc.1, sbyte** %argv.1, sbyte** %envp.1) {
-entry: ; No predecessors!
- call void %__main( )
%tmp.2 = load sbyte** %envp.1 ; <sbyte*> [#uses=2]
%tmp.3 = call uint %strlen( sbyte* %tmp.2 ) ; <uint> [#uses=1]
- %tmp.0 = call int %write( int 1, sbyte* %tmp.2, uint %tmp.3 ) ; <int> [#uses=0]
- call void %exit( int 0 )
- ret int 0
+ %T = seteq uint %tmp.3, 0
+ %R = cast bool %T to int
+ ret int %R
}
-declare int %write(int, sbyte*, uint)
More information about the llvm-commits
mailing list