From 22f339010c2ef36ecf794b02a5bb5252272d4af0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 8 Sep 2009 22:57:49 +0000 Subject: [PATCH] Use "opt < %s" instead of "opt %s" so that opt doesn't print the test filename in the output, which interferes with the tests' grep lines. llvm-svn: 81263 --- llvm/test/Feature/weak_constant.ll | 2 +- llvm/test/Transforms/IndVarSimplify/masked-iv.ll | 2 +- llvm/test/Transforms/InstCombine/or-to-xor.ll | 4 ++-- llvm/test/Transforms/Reassociate/inverses.ll | 2 +- llvm/test/Transforms/SCCP/apint-basictest4.ll | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/llvm/test/Feature/weak_constant.ll b/llvm/test/Feature/weak_constant.ll index fde155175ade..9025aaac797f 100644 --- a/llvm/test/Feature/weak_constant.ll +++ b/llvm/test/Feature/weak_constant.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -std-compile-opts -S > %t +; RUN: opt < %s -std-compile-opts -S > %t ; RUN: grep undef %t | count 1 ; RUN: grep 5 %t | count 1 ; RUN: grep 7 %t | count 1 diff --git a/llvm/test/Transforms/IndVarSimplify/masked-iv.ll b/llvm/test/Transforms/IndVarSimplify/masked-iv.ll index 013885222439..f1f5af96eb96 100644 --- a/llvm/test/Transforms/IndVarSimplify/masked-iv.ll +++ b/llvm/test/Transforms/IndVarSimplify/masked-iv.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: not grep trunc %t ; RUN: grep and %t | count 1 diff --git a/llvm/test/Transforms/InstCombine/or-to-xor.ll b/llvm/test/Transforms/InstCombine/or-to-xor.ll index 7cab5430d688..1495ee49709f 100644 --- a/llvm/test/Transforms/InstCombine/or-to-xor.ll +++ b/llvm/test/Transforms/InstCombine/or-to-xor.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {xor i32 %a, %b} | count 4 -; RUN: opt %s -instcombine -S | not grep {and} +; RUN: opt < %s -instcombine -S | grep {xor i32 %a, %b} | count 4 +; RUN: opt < %s -instcombine -S | not grep {and} define i32 @func1(i32 %a, i32 %b) nounwind readnone { entry: diff --git a/llvm/test/Transforms/Reassociate/inverses.ll b/llvm/test/Transforms/Reassociate/inverses.ll index fecab3d22df6..fa1a4bd1d01e 100644 --- a/llvm/test/Transforms/Reassociate/inverses.ll +++ b/llvm/test/Transforms/Reassociate/inverses.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -reassociate -dce -S | \ +; RUN: opt < %s -reassociate -dce -S | \ ; RUN: not grep {\\(and\\|sub\\)} define i32 @test1(i32 %a, i32 %b) { diff --git a/llvm/test/Transforms/SCCP/apint-basictest4.ll b/llvm/test/Transforms/SCCP/apint-basictest4.ll index 97a33f4b87db..41036ea002d2 100644 --- a/llvm/test/Transforms/SCCP/apint-basictest4.ll +++ b/llvm/test/Transforms/SCCP/apint-basictest4.ll @@ -2,9 +2,9 @@ ; logic operations. -; RUN: opt %s -sccp -S | not grep and -; RUN: opt %s -sccp -S | not grep trunc -; RUN: opt %s -sccp -S | grep {ret i100 -1} +; RUN: opt < %s -sccp -S | not grep and +; RUN: opt < %s -sccp -S | not grep trunc +; RUN: opt < %s -sccp -S | grep {ret i100 -1} define i100 @test(i133 %A) { %B = and i133 0, %A