summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll')
-rw-r--r--llvm/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll b/llvm/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
index a7b0df1e8be..5465418d00d 100644
--- a/llvm/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
+++ b/llvm/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
}
+
OpenPOWER on IntegriCloud