diff options
| author | Tanya Lattner <tonic@nondot.org> | 2008-03-19 04:36:04 +0000 |
|---|---|---|
| committer | Tanya Lattner <tonic@nondot.org> | 2008-03-19 04:36:04 +0000 |
| commit | 0ea4c8d706dd0ebc086a500a08d1cefc26836341 (patch) | |
| tree | ede0db04abeac6a428bffcdf5c3b17c6908f6d36 /llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll | |
| parent | 1d526b90aa9d317d5fcd9d8a180f8f551ec96da2 (diff) | |
| download | bcm5719-llvm-0ea4c8d706dd0ebc086a500a08d1cefc26836341.tar.gz bcm5719-llvm-0ea4c8d706dd0ebc086a500a08d1cefc26836341.zip | |
Upgrade tests to not use llvm-upgrade.
llvm-svn: 48530
Diffstat (limited to 'llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll')
| -rw-r--r-- | llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll b/llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll index 176948a7f9b..79afb6e64c1 100644 --- a/llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll +++ b/llvm/test/Transforms/Reassociate/2002-05-15-MissedTree.ll @@ -1,8 +1,9 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5 +; RUN: llvm-as < %s | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5 -int %test(int %A, int %B) { - %W = add int %B, -5 - %Y = add int %A, 5 - %Z = add int %W, %Y - ret int %Z +define i32 @test(i32 %A, i32 %B) { + %W = add i32 %B, -5 ; <i32> [#uses=1] + %Y = add i32 %A, 5 ; <i32> [#uses=1] + %Z = add i32 %W, %Y ; <i32> [#uses=1] + ret i32 %Z } + |

