1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/Transforms/LCSSA/basictest.ll
Reid Spencer 6a31ec1259 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.

llvm-svn: 33533
2007-01-26 08:25:06 +00:00

29 lines
601 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
}