mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-08 19:06:39 +00:00
eb1d74e0c8
Remove && from the end of the lines to prevent tests from throwing run lines into the background. Also, clean up places where the same command is run multiple times by using a temporary file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36142 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
598 B
LLVM
29 lines
598 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
|
; RUN: grep {X3.lcssa = phi i32}
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
|
; RUN: grep {X4 = add i32 3, %X3.lcssa}
|
|
|
|
void %lcssa(bool %S2) {
|
|
entry:
|
|
br label %loop.interior
|
|
|
|
loop.interior: ; preds = %entry
|
|
br bool %S2, label %if.true, label %if.false
|
|
|
|
if.true:
|
|
%X1 = add int 0, 0
|
|
br label %post.if
|
|
|
|
if.false:
|
|
%X2 = add int 0, 1
|
|
br label %post.if
|
|
|
|
post.if:
|
|
%X3 = phi int [%X1, %if.true], [%X2, %if.false]
|
|
br bool %S2, label %loop.exit, label %loop.interior
|
|
|
|
loop.exit:
|
|
%X4 = add int 3, %X3
|
|
ret void
|
|
}
|