mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
df17fa8ef9
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. llvm-svn: 36142
31 lines
608 B
LLVM
31 lines
608 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
|
; RUN: grep {%X.1.lcssa}
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
|
; RUN: not grep {%X.1.lcssa1}
|
|
|
|
declare bool %c1()
|
|
declare bool %c2()
|
|
|
|
int %foo() {
|
|
entry:
|
|
br label %loop_begin
|
|
|
|
loop_begin:
|
|
br bool true, label %loop_body.1, label %loop_exit2
|
|
|
|
loop_body.1:
|
|
%X.1 = add int 0, 1
|
|
%rel.1 = call bool %c1()
|
|
br bool %rel.1, label %loop_exit, label %loop_body.2
|
|
|
|
loop_body.2:
|
|
%rel.2 = call bool %c2()
|
|
br bool %rel.2, label %loop_exit, label %loop_begin
|
|
|
|
loop_exit:
|
|
ret int %X.1
|
|
|
|
loop_exit2:
|
|
ret int 1
|
|
}
|