mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Tweak unnamed label syntax in textual IR for easier matching in tests.
Change the unnamed label comments like ; <label>:8 ; preds = %1 to ; <label>:8: ; preds = %1 This way lit tests can match [[LABEL]]: in both asserts and no-asserts builds. llvm-svn: 258993
This commit is contained in:
parent
8ba74b75fe
commit
e376478941
@ -2676,7 +2676,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
||||
Out << "\n; <label>:";
|
||||
int Slot = Machine.getLocalSlot(BB);
|
||||
if (Slot != -1)
|
||||
Out << Slot;
|
||||
Out << Slot << ":";
|
||||
else
|
||||
Out << "<badref>";
|
||||
}
|
||||
|
@ -27,10 +27,10 @@ target triple = "armv7--linux-gnueabihf"
|
||||
; CHECK: select
|
||||
; CHECK-NOT: select
|
||||
; CHECK: br i1 {{.*}}, label %[[L:.*]], label %[[R:.*]]
|
||||
; CHECK: [[L]] ; preds =
|
||||
; CHECK: [[L]]: ; preds =
|
||||
; CHECK-NEXT: store
|
||||
; CHECK-NEXT: br label %[[R]]
|
||||
; CHECK: [[R]] ; preds =
|
||||
; CHECK: [[R]]: ; preds =
|
||||
; CHECK-NEXT: ret i32 0
|
||||
|
||||
define i32 @f(i32* %b) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user