mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
7e6b4f7a6d
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
31 lines
615 B
LLVM
31 lines
615 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
|
; RUN: grep "%X.1.s.lcssa" &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
|
; RUN: not grep "%X.1.s.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
|
|
}
|