1
0
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:
Evgeniy Stepanov 2016-01-27 21:53:08 +00:00
parent 8ba74b75fe
commit e376478941
2 changed files with 3 additions and 3 deletions

View File

@ -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>";
}

View File

@ -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) {