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 | 7f40dea2f1bcb54121f84a479756fb319427e059 (patch) | |
tree | f305fb747a30dbbf154961adc0fc8cd6ce871f80 /test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll | |
parent | f396cc87302d9a69b3680c339d219c49262f5bf3 (diff) | |
download | llvm-7f40dea2f1bcb54121f84a479756fb319427e059.tar.gz llvm-7f40dea2f1bcb54121f84a479756fb319427e059.tar.bz2 llvm-7f40dea2f1bcb54121f84a479756fb319427e059.tar.xz |
Upgrade tests to not use llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48530 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll')
-rw-r--r-- | test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll b/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll index a7b0df1e8b..5465418d00 100644 --- a/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll +++ b/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll @@ -1,8 +1,9 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -dce | llvm-dis | not grep add +; RUN: llvm-as < %s | opt -reassociate -instcombine -constprop -dce | llvm-dis | not grep add -int %test(int %A) { - %X = add int %A, 1 - %Y = add int %A, 1 - %r = sub int %X, %Y - ret int %r ; Should be equal to 0! +define i32 @test(i32 %A) { + %X = add i32 %A, 1 ; <i32> [#uses=1] + %Y = add i32 %A, 1 ; <i32> [#uses=1] + %r = sub i32 %X, %Y ; <i32> [#uses=1] + ret i32 %r } + |