From caceaafadacd551932ce98e09eb89b8b408a805c Mon Sep 17 00:00:00 2001 From: John Criswell Date: Mon, 2 Aug 2004 22:31:58 +0000 Subject: [PATCH] Use the new prcontext script. llvm-svn: 15427 --- .../ConstantMerge/2003-10-28-MergeExternalConstants.ll | 2 +- .../Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll | 2 +- llvm/test/Regression/Transforms/Inline/alloca_test.ll | 2 +- .../Regression/Transforms/LICM/2003-08-04-TrappingInstHoist.ll | 2 +- .../Transforms/LICM/2003-08-04-TrappingInstOkHoist.ll | 2 +- .../Regression/Transforms/LICM/2003-12-13-VolatilePromote.ll | 2 +- .../test/Regression/Transforms/LICM/call_sink_const_function.ll | 2 +- llvm/test/Regression/Transforms/LICM/call_sink_pure_function.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_inst.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_load.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_multiple.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_multiple_exits.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_only_some_exits.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_phi_node_use.ll | 2 +- llvm/test/Regression/Transforms/LICM/sink_trapping_inst.ll | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/llvm/test/Regression/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll b/llvm/test/Regression/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll index 482b0760d765..8cad0019b0ba 100644 --- a/llvm/test/Regression/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll +++ b/llvm/test/Regression/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep -C2 foo | grep bar +; RUN: llvm-as < %s | opt -constmerge | llvm-dis | %prcontext foo 2 | grep bar %foo = constant int 6 %bar = constant int 6 diff --git a/llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll b/llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll index 637a094359d1..ccb578737226 100644 --- a/llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll +++ b/llvm/test/Regression/Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep -C1 Loop: | grep %indvar +; RUN: llvm-as < %s | opt -indvars | llvm-dis | %prcontext Loop: 1 | grep %indvar ; The indvar simplification code should ensure that the first PHI in the block ; is the canonical one! diff --git a/llvm/test/Regression/Transforms/Inline/alloca_test.ll b/llvm/test/Regression/Transforms/Inline/alloca_test.ll index cb90b8ca834e..46c4848b9556 100644 --- a/llvm/test/Regression/Transforms/Inline/alloca_test.ll +++ b/llvm/test/Regression/Transforms/Inline/alloca_test.ll @@ -1,7 +1,7 @@ ; This test ensures that alloca instructions in the entry block for an inlined ; function are moved to the top of the function they are inlined into. ; -; RUN: llvm-as < %s | opt -inline | llvm-dis | grep -C1 alloca | grep Entry: +; RUN: llvm-as < %s | opt -inline | llvm-dis | %prcontext alloca 1 | grep Entry: int %func(int %i) { %X = alloca int diff --git a/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstHoist.ll b/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstHoist.ll index e757ba2660c3..2173b76d5ba5 100644 --- a/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstHoist.ll +++ b/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstHoist.ll @@ -1,7 +1,7 @@ ; This testcase tests for a problem where LICM hoists ; potentially trapping instructions when they are not guaranteed to execute. ; -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "IfUnEqual" | grep div +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext "IfUnEqual" 2 | grep div %X = global int 0 declare void %foo() diff --git a/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstOkHoist.ll b/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstOkHoist.ll index bfe6efef6aa0..7e2f233a43fd 100644 --- a/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstOkHoist.ll +++ b/llvm/test/Regression/Transforms/LICM/2003-08-04-TrappingInstOkHoist.ll @@ -1,7 +1,7 @@ ; This testcase tests to make sure a trapping instruction is hoisted when ; it is guaranteed to execute. ; -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "test" | grep div +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext "test" 2 | grep div %X = global int 0 declare void %foo(int) diff --git a/llvm/test/Regression/Transforms/LICM/2003-12-13-VolatilePromote.ll b/llvm/test/Regression/Transforms/LICM/2003-12-13-VolatilePromote.ll index fad03bf75e0f..66102992a2eb 100644 --- a/llvm/test/Regression/Transforms/LICM/2003-12-13-VolatilePromote.ll +++ b/llvm/test/Regression/Transforms/LICM/2003-12-13-VolatilePromote.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 volatile | grep Loop +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext volatile 1 | grep Loop %X = global int 7 diff --git a/llvm/test/Regression/Transforms/LICM/call_sink_const_function.ll b/llvm/test/Regression/Transforms/LICM/call_sink_const_function.ll index 92e9244be6b1..a81e7c399fc2 100644 --- a/llvm/test/Regression/Transforms/LICM/call_sink_const_function.ll +++ b/llvm/test/Regression/Transforms/LICM/call_sink_const_function.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | grep -C1 sin | grep Out: +; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | %prcontext sin 1 | grep Out: declare double %sin(double) declare void %foo() diff --git a/llvm/test/Regression/Transforms/LICM/call_sink_pure_function.ll b/llvm/test/Regression/Transforms/LICM/call_sink_pure_function.ll index d67436948bd0..80ad8e18fd0f 100644 --- a/llvm/test/Regression/Transforms/LICM/call_sink_pure_function.ll +++ b/llvm/test/Regression/Transforms/LICM/call_sink_pure_function.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | grep -C1 strlen | grep Out: +; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | %prcontext strlen 1 | grep Out: declare int %strlen(sbyte*) declare void %foo() diff --git a/llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll b/llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll index 6cd081887b03..1ed66523d2ba 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_critical_edge.ll @@ -1,7 +1,7 @@ ; This testcase checks to make sure the sinker does not cause problems with ; critical edges. -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep Exit +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep Exit implementation ; Functions: diff --git a/llvm/test/Regression/Transforms/LICM/sink_inst.ll b/llvm/test/Regression/Transforms/LICM/sink_inst.ll index a4d5c3de21de..0cb2c25d7d68 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_inst.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_inst.ll @@ -2,7 +2,7 @@ ; the instruction to the exit blocks instead of executing it on every ; iteration of the loop. ; -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 mul | grep Out: +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext mul 1 | grep Out: int %test(int %N) { Entry: diff --git a/llvm/test/Regression/Transforms/LICM/sink_load.ll b/llvm/test/Regression/Transforms/LICM/sink_load.ll index b4c0f2e21ed9..a0bfc7f9f71b 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_load.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_load.ll @@ -2,7 +2,7 @@ ; result of the load is only used outside of the loop, sink the load instead of ; hoisting it! ; -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 load | grep Out: +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext load 1 | grep Out: %X = global int 5 diff --git a/llvm/test/Regression/Transforms/LICM/sink_multiple.ll b/llvm/test/Regression/Transforms/LICM/sink_multiple.ll index 888dfbe3a522..22ab9f9c1353 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_multiple.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_multiple.ll @@ -3,7 +3,7 @@ ; instructions from the loop. Instead they got hoisted, which is better than ; leaving them in the loop, but increases register pressure pointlessly. -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 getelementptr | grep Out: +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext getelementptr 1 | grep Out: %Ty = type { int, int } %X = external global %Ty diff --git a/llvm/test/Regression/Transforms/LICM/sink_multiple_exits.ll b/llvm/test/Regression/Transforms/LICM/sink_multiple_exits.ll index 1a0f824d5c4c..d7f1514a4e9f 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_multiple_exits.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_multiple_exits.ll @@ -1,7 +1,7 @@ ; This testcase ensures that we can sink instructions from loops with ; multiple exits. ; -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 mul | grep 'Out[12]:' +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext mul 1 | grep 'Out[12]:' int %test(int %N, bool %C) { Entry: diff --git a/llvm/test/Regression/Transforms/LICM/sink_only_some_exits.ll b/llvm/test/Regression/Transforms/LICM/sink_only_some_exits.ll index e672e5854325..6415c8a1f0dd 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_only_some_exits.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_only_some_exits.ll @@ -2,7 +2,7 @@ ; some exits out of the loop, and that we can do so without breaking dominator ; info. ; -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep exit2: +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep exit2: implementation ; Functions: diff --git a/llvm/test/Regression/Transforms/LICM/sink_phi_node_use.ll b/llvm/test/Regression/Transforms/LICM/sink_phi_node_use.ll index 6335469ea24e..c1d5844e7ecb 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_phi_node_use.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_phi_node_use.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep preheader.loopexit: +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep preheader.loopexit: implementation diff --git a/llvm/test/Regression/Transforms/LICM/sink_trapping_inst.ll b/llvm/test/Regression/Transforms/LICM/sink_trapping_inst.ll index a35c48c4b726..4842331d23b4 100644 --- a/llvm/test/Regression/Transforms/LICM/sink_trapping_inst.ll +++ b/llvm/test/Regression/Transforms/LICM/sink_trapping_inst.ll @@ -1,7 +1,7 @@ ; Potentially trapping instructions may be sunk as long as they are guaranteed ; to be executed. ; -; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 div | grep Out: +; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext div 1 | grep Out: int %test(int %N) { Entry: