Upgrade tests to not use llvm-upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tanya Lattner
2008-03-19 04:36:04 +00:00
parent f396cc8730
commit 7f40dea2f1
23 changed files with 286 additions and 271 deletions

View File

@@ -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
}