mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Remove llvm-upgrade and update test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47793 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -adce -simplifycfg | llvm-dis
|
||||
; RUN: llvm-as < %s | opt -adce -simplifycfg | llvm-dis
|
||||
|
||||
int "Test"(int %A, int %B) {
|
||||
define i32 @Test(i32 %A, i32 %B) {
|
||||
BB1:
|
||||
br label %BB4
|
||||
BB2:
|
||||
br label %BB3
|
||||
BB3:
|
||||
%ret = phi int [%X, %BB4], [%B, %BB2]
|
||||
ret int %ret
|
||||
BB4:
|
||||
%X = phi int [%A, %BB1]
|
||||
br label %BB3
|
||||
br label %BB4
|
||||
|
||||
BB2: ; No predecessors!
|
||||
br label %BB3
|
||||
|
||||
BB3: ; preds = %BB4, %BB2
|
||||
%ret = phi i32 [ %X, %BB4 ], [ %B, %BB2 ] ; <i32> [#uses=1]
|
||||
ret i32 %ret
|
||||
|
||||
BB4: ; preds = %BB1
|
||||
%X = phi i32 [ %A, %BB1 ] ; <i32> [#uses=1]
|
||||
br label %BB3
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user