From a6baac4966bed52e7f39eb0904f74f37cf2315c9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 21 Aug 2003 21:33:19 +0000 Subject: [PATCH] Simplify test llvm-svn: 8025 --- .../Jello/2003-08-21-EnvironmentTest.ll | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/test/Regression/Jello/2003-08-21-EnvironmentTest.ll b/test/Regression/Jello/2003-08-21-EnvironmentTest.ll index c880221a0be..82d4d460b95 100644 --- a/test/Regression/Jello/2003-08-21-EnvironmentTest.ll +++ b/test/Regression/Jello/2003-08-21-EnvironmentTest.ll @@ -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 ; [#uses=2] %tmp.3 = call uint %strlen( sbyte* %tmp.2 ) ; [#uses=1] - %tmp.0 = call int %write( int 1, sbyte* %tmp.2, uint %tmp.3 ) ; [#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)