diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-08 16:50:01 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-08 16:50:01 +0000 |
commit | b1e1e82c54c060ea5dae09dae043234826ca2539 (patch) | |
tree | 97db9bdf6b44f9fd60eb81fa17ea54281587f89d /test/Transforms/IPConstantProp | |
parent | ee7110f0478cc90ffa419759e21557ed8d669562 (diff) | |
download | external_llvm-b1e1e82c54c060ea5dae09dae043234826ca2539.zip external_llvm-b1e1e82c54c060ea5dae09dae043234826ca2539.tar.gz external_llvm-b1e1e82c54c060ea5dae09dae043234826ca2539.tar.bz2 |
Change these tests to feed the assembly files to opt directly, instead
of using llvm-as, now that opt supports this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81226 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 fc7e3bb..4b91f86 100644 --- a/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll +++ b/test/Transforms/IPConstantProp/2008-06-09-WeakProp.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -ipconstprop | llvm-dis | grep {ret i32 %r} +; RUN: opt %s -ipconstprop | llvm-dis | 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 18b8f7d..32810bd 100644 --- a/test/Transforms/IPConstantProp/deadarg.ll +++ b/test/Transforms/IPConstantProp/deadarg.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -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 27c381a..7aa8101 100644 --- a/test/Transforms/IPConstantProp/recursion.ll +++ b/test/Transforms/IPConstantProp/recursion.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -ipconstprop -deadargelim | llvm-dis | not grep %X +; RUN: opt %s -ipconstprop -deadargelim | llvm-dis | 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 f8605107..ad0e5fb 100644 --- a/test/Transforms/IPConstantProp/return-argument.ll +++ b/test/Transforms/IPConstantProp/return-argument.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -ipconstprop | llvm-dis > %t +; RUN: opt %s -ipconstprop | llvm-dis > %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 381ef63..72cb796 100644 --- a/test/Transforms/IPConstantProp/return-constant.ll +++ b/test/Transforms/IPConstantProp/return-constant.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -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 7205c28..7a4c8c5 100644 --- a/test/Transforms/IPConstantProp/return-constants.ll +++ b/test/Transforms/IPConstantProp/return-constants.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -ipconstprop | llvm-dis > %t +; RUN: opt %s -ipconstprop | llvm-dis > %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 |