llvm-6502/test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll
Reid Spencer e3ff5ada8a For PR761:
Remove "target endian/pointersize" or add "target datalayout" to make
the test parse properly or set the datalayout because defaults changes.

For PR645:
Make global names use the @ prefix.

For llvm-upgrade changes:
Fix test cases or completely remove use of llvm-upgrade for test cases
that cannot survive the new renaming or upgrade capabilities.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33533 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-26 08:25:06 +00:00

31 lines
611 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
}