diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-01 09:15:35 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-01 09:15:35 +0000 |
commit | ec9a35a6f9143cfa325e0413cc297c48f627973a (patch) | |
tree | c1b0621415acc20f94152c51174d53fae3dbc8cc /test/Transforms/InstCombine/sink_instruction.ll | |
parent | ab3b77834c9232e4c13acb29afe1920b97c5a20b (diff) | |
download | llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.gz llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.bz2 llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.xz |
Remove llvm-upgrade and update test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/sink_instruction.ll')
-rw-r--r-- | test/Transforms/InstCombine/sink_instruction.ll | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/Transforms/InstCombine/sink_instruction.ll b/test/Transforms/InstCombine/sink_instruction.ll index 93519ffdc0..cb8a090e5a 100644 --- a/test/Transforms/InstCombine/sink_instruction.ll +++ b/test/Transforms/InstCombine/sink_instruction.ll @@ -1,18 +1,19 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \ ; RUN: %prcontext div 1 | grep ret ;; This tests that the instructions in the entry blocks are sunk into each ;; arm of the 'if'. -int %foo(bool %C, int %A, int %B) { +define i32 @foo(i1 %C, i32 %A, i32 %B) { entry: - %tmp.2 = div int %A, %B - %tmp.9 = add int %B, %A - br bool %C, label %then, label %endif + %tmp.2 = sdiv i32 %A, %B ; <i32> [#uses=1] + %tmp.9 = add i32 %B, %A ; <i32> [#uses=1] + br i1 %C, label %then, label %endif -then: - ret int %tmp.9 +then: ; preds = %entry + ret i32 %tmp.9 -endif: - ret int %tmp.2 +endif: ; preds = %entry + ret i32 %tmp.2 } + |