diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-11 18:01:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-11 18:01:28 +0000 |
commit | f2f6ce65b79df6ec4ee427d51a18355a170f199b (patch) | |
tree | 10febdb90407974203f9d08ab1180f7073ae459a /test/Transforms/IPConstantProp | |
parent | 597f9797fd12bfede377de73ab89620842278105 (diff) | |
download | external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.zip external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.tar.gz external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.tar.bz2 |
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IPConstantProp')
6 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll b/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll index 87f6375..6640336 100644 --- a/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll +++ b/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -ipconstprop -S | grep {ret i32 %r} +; RUN: opt < %s -ipconstprop -S | grep {ret i32 %r} ; Should not propagate the result of a weak function. ; PR2411 diff --git a/test/Transforms/IPConstantProp/deadarg.ll b/test/Transforms/IPConstantProp/deadarg.ll index 32810bd..4b9938e 100644 --- a/test/Transforms/IPConstantProp/deadarg.ll +++ b/test/Transforms/IPConstantProp/deadarg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -ipconstprop -disable-output +; RUN: opt < %s -ipconstprop -disable-output define internal void @foo(i32 %X) { call void @foo( i32 %X ) ret void diff --git a/test/Transforms/IPConstantProp/recursion.ll b/test/Transforms/IPConstantProp/recursion.ll index d6ccac7..b25a6c0 100644 --- a/test/Transforms/IPConstantProp/recursion.ll +++ b/test/Transforms/IPConstantProp/recursion.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -ipconstprop -deadargelim -S | not grep %X +; RUN: opt < %s -ipconstprop -deadargelim -S | not grep %X define internal i32 @foo(i32 %X) { %Y = call i32 @foo( i32 %X ) ; <i32> [#uses=1] %Z = add i32 %Y, 1 ; <i32> [#uses=1] diff --git a/test/Transforms/IPConstantProp/return-argument.ll b/test/Transforms/IPConstantProp/return-argument.ll index 93071cc..0223453 100644 --- a/test/Transforms/IPConstantProp/return-argument.ll +++ b/test/Transforms/IPConstantProp/return-argument.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -ipconstprop -S > %t +; RUN: opt < %s -ipconstprop -S > %t ; RUN: cat %t | grep {store i32 %Z, i32\\* %Q} ; RUN: cat %t | grep {add i32 1, 3} diff --git a/test/Transforms/IPConstantProp/return-constant.ll b/test/Transforms/IPConstantProp/return-constant.ll index 72cb796..b255859 100644 --- a/test/Transforms/IPConstantProp/return-constant.ll +++ b/test/Transforms/IPConstantProp/return-constant.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -ipconstprop -instcombine | \ +; RUN: opt < %s -ipconstprop -instcombine | \ ; RUN: llvm-dis | grep {ret i1 true} | count 2 define internal i32 @foo(i1 %C) { br i1 %C, label %T, label %F diff --git a/test/Transforms/IPConstantProp/return-constants.ll b/test/Transforms/IPConstantProp/return-constants.ll index f83440d..79220dd 100644 --- a/test/Transforms/IPConstantProp/return-constants.ll +++ b/test/Transforms/IPConstantProp/return-constants.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -ipconstprop -S > %t +; RUN: opt < %s -ipconstprop -S > %t ;; Check that the 21 constants got propagated properly ; RUN: cat %t | grep {%M = add i32 21, 21} ;; Check that the second return values didn't get propagated |