llvm-6502/test/Transforms/LCSSA/basictest.ll
Reid Spencer 7e6b4f7a6d For PR1070:
Tweak the RUN: lines of these tests to accommodate the renaming of
variables done by llvm-upgrade. The renaming occurs as a result of avoiding
name collisons for collapsed type planes. Conflicting names have a .u
(unsigned) or .s (signed) suffix added. This patch updates the grep
expression to accommodate the new names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32815 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:55:05 +00:00

29 lines
608 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
; RUN: grep "X3.s.lcssa = phi i32" &&
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
; RUN: grep "%X4.s = add i32 3, %X3.s.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
}