X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FARM%2F2007-08-15-ReuseBug.ll;h=76b6221d022290d2786d68a5d145bd17dd3fe448;hb=7d46df36264e7f81f59135c7847fb8dce5642242;hp=3cfcdef48f4b4b335b65be2e5f0ab86cc3fc8552;hpb=287b7b7ed7fc2acc9b06908fb3ca89b715dab29f;p=oota-llvm.git diff --git a/test/CodeGen/ARM/2007-08-15-ReuseBug.ll b/test/CodeGen/ARM/2007-08-15-ReuseBug.ll index 3cfcdef48f4..76b6221d022 100644 --- a/test/CodeGen/ARM/2007-08-15-ReuseBug.ll +++ b/test/CodeGen/ARM/2007-08-15-ReuseBug.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic -mattr=+v6 +; RUN: llc < %s -mtriple=arm-apple-darwin -relocation-model=pic -mattr=+v6 ; PR1609 %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 } @@ -44,13 +44,13 @@ bb102.i: ; preds = %cond_next212.i br i1 false, label %cond_true110.i, label %cond_next123.i cond_true110.i: ; preds = %bb102.i - %tmp116.i = getelementptr i8** %argv_addr.2321.0.i, i32 2 ; [#uses=1] - %tmp117.i = load i8** %tmp116.i ; [#uses=1] - %tmp126425.i = call %struct.FILE* @fopen( i8* %tmp117.i, i8* getelementptr ([2 x i8]* @.str44, i32 0, i32 0) ) ; <%struct.FILE*> [#uses=0] + %tmp116.i = getelementptr i8*, i8** %argv_addr.2321.0.i, i32 2 ; [#uses=1] + %tmp117.i = load i8*, i8** %tmp116.i ; [#uses=1] + %tmp126425.i = call %struct.FILE* @fopen( i8* %tmp117.i, i8* getelementptr ([2 x i8], [2 x i8]* @.str44, i32 0, i32 0) ) ; <%struct.FILE*> [#uses=0] ret i32 0 cond_next123.i: ; preds = %bb102.i - %tmp122.i = getelementptr i8* %tmp215.i, i32 2 ; [#uses=0] + %tmp122.i = getelementptr i8, i8* %tmp215.i, i32 2 ; [#uses=0] ret i32 0 bb162.i: ; preds = %cond_next212.i @@ -58,12 +58,12 @@ bb162.i: ; preds = %cond_next212.i C_addcmd.exit120.i: ; preds = %cond_next212.i %tmp3.i.i.i.i105.i = call i8* @calloc( i32 15, i32 1 ) ; [#uses=1] - %tmp1.i108.i = getelementptr [100 x i8*]* @_C_cmds, i32 0, i32 0 ; [#uses=1] + %tmp1.i108.i = getelementptr [100 x i8*], [100 x i8*]* @_C_cmds, i32 0, i32 0 ; [#uses=1] store i8* %tmp3.i.i.i.i105.i, i8** %tmp1.i108.i, align 4 - %tmp.i91.i = load i32* @_C_nextcmd, align 4 ; [#uses=1] + %tmp.i91.i = load i32, i32* @_C_nextcmd, align 4 ; [#uses=1] store i32 0, i32* @_C_nextcmd, align 4 %tmp3.i.i.i.i95.i = call i8* @calloc( i32 15, i32 1 ) ; [#uses=1] - %tmp1.i98.i = getelementptr [100 x i8*]* @_C_cmds, i32 0, i32 %tmp.i91.i ; [#uses=1] + %tmp1.i98.i = getelementptr [100 x i8*], [100 x i8*]* @_C_cmds, i32 0, i32 %tmp.i91.i ; [#uses=1] store i8* %tmp3.i.i.i.i95.i, i8** %tmp1.i98.i, align 4 br label %cond_next212.i @@ -77,8 +77,8 @@ cond_next212.i: ; preds = %cond_next212.i, %cond_next212.i, %cond_next212.i, %c %max_d.3 = phi i32 [ -1, %entry ], [ %max_d.3, %bb30.i ], [ %max_d.3, %bb21.i ], [ %max_d.3, %C_addcmd.exit120.i ], [ 0, %bb192.i ], [ %max_d.3, %cond_next212.i ], [ %max_d.3, %cond_next212.i ], [ %max_d.3, %cond_next212.i ], [ %max_d.3, %cond_next212.i ] ; [#uses=7] %argv_addr.2321.0.i = phi i8** [ %argv, %entry ], [ %tmp214.i, %bb192.i ], [ %tmp214.i, %C_addcmd.exit120.i ], [ %tmp214.i, %bb30.i ], [ %tmp214.i, %bb21.i ], [ %tmp214.i, %cond_next212.i ], [ %tmp214.i, %cond_next212.i ], [ %tmp214.i, %cond_next212.i ], [ %tmp214.i, %cond_next212.i ] ; [#uses=2] %argc_addr.2358.0.i = phi i32 [ %argc, %entry ], [ %tmp205399.i, %bb30.i ], [ 0, %bb21.i ], [ 0, %C_addcmd.exit120.i ], [ 0, %bb192.i ], [ 0, %cond_next212.i ], [ 0, %cond_next212.i ], [ 0, %cond_next212.i ], [ 0, %cond_next212.i ] ; [#uses=1] - %tmp214.i = getelementptr i8** %argv_addr.2321.0.i, i32 1 ; [#uses=9] - %tmp215.i = load i8** %tmp214.i ; [#uses=1] + %tmp214.i = getelementptr i8*, i8** %argv_addr.2321.0.i, i32 1 ; [#uses=9] + %tmp215.i = load i8*, i8** %tmp214.i ; [#uses=1] %tmp1314.i = sext i8 0 to i32 ; [#uses=1] switch i32 %tmp1314.i, label %bb192.i [ i32 76, label %C_addcmd.exit120.i