mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user