[llvm] r307300 - Add @LINE to checks in a test.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 6 12:09:36 PDT 2017
Author: rafael
Date: Thu Jul 6 12:09:35 2017
New Revision: 307300
URL: http://llvm.org/viewvc/llvm-project?rev=307300&view=rev
Log:
Add @LINE to checks in a test.
This makes it a lot easier to see which error failed a check.
Modified:
llvm/trunk/test/MC/AArch64/label-arithmetic-diags-elf.s
Modified: llvm/trunk/test/MC/AArch64/label-arithmetic-diags-elf.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AArch64/label-arithmetic-diags-elf.s?rev=307300&r1=307299&r2=307300&view=diff
==============================================================================
--- llvm/trunk/test/MC/AArch64/label-arithmetic-diags-elf.s (original)
+++ llvm/trunk/test/MC/AArch64/label-arithmetic-diags-elf.s Thu Jul 6 12:09:35 2017
@@ -5,7 +5,7 @@ b:
.fill 300
e:
.byte e - b
- // CHECK: error: value evaluated as 300 is out of range.
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: value evaluated as 300 is out of range.
// CHECK-NEXT: .byte e - b
// CHECK-NEXT: ^
@@ -14,67 +14,74 @@ start:
.space 5000
end:
add w0, w1, #(end - start)
- cmp w0, #(end - start)
- // CHECK: error: fixup value out of range
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: add w0, w1, #(end - start)
// CHECK-NEXT: ^
- // CHECK: error: fixup value out of range
+
+ cmp w0, #(end - start)
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: cmp w0, #(end - start)
// CHECK-NEXT: ^
negative:
add w0, w1, #(end - negative)
- cmp w0, #(end - negative)
- // CHECK: error: fixup value out of range
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: add w0, w1, #(end - negative)
// CHECK-NEXT: ^
- // CHECK: error: fixup value out of range
+
+ cmp w0, #(end - negative)
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: cmp w0, #(end - negative)
// CHECK-NEXT: ^
add w0, w1, #(end - external)
- cmp w0, #(end - external)
- // CHECK: error: symbol 'external' can not be undefined in a subtraction expression
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: symbol 'external' can not be undefined in a subtraction expression
// CHECK-NEXT: add w0, w1, #(end - external)
// CHECK-NEXT: ^
- // CHECK: error: symbol 'external' can not be undefined in a subtraction expression
+
+ cmp w0, #(end - external)
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: symbol 'external' can not be undefined in a subtraction expression
// CHECK-NEXT: cmp w0, #(end - external)
// CHECK-NEXT: ^
add w0, w1, #:lo12:external - end
- cmp w0, #:lo12:external - end
- // CHECK: error: Unsupported pc-relative fixup kind
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: add w0, w1, #:lo12:external - end
// CHECK-NEXT: ^
- // CHECK: error: Unsupported pc-relative fixup kind
+
+ cmp w0, #:lo12:external - end
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: cmp w0, #:lo12:external - end
// CHECK-NEXT: ^
add w0, w1, #:got_lo12:external - end
- cmp w0, #:got_lo12:external - end
- // CHECK: error: Unsupported pc-relative fixup kind
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: add w0, w1, #:got_lo12:external - end
// CHECK-NEXT: ^
- // CHECK: error: Unsupported pc-relative fixup kind
+
+ cmp w0, #:got_lo12:external - end
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: cmp w0, #:got_lo12:external - end
// CHECK-NEXT: ^
.section sec_y
end_across_sec:
add w0, w1, #(end_across_sec - start)
- cmp w0, #(end_across_sec - start)
- // CHECK: error: Cannot represent a difference across sections
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: add w0, w1, #(end_across_sec - start)
// CHECK-NEXT: ^
- // CHECK: error: Cannot represent a difference across sections
+
+ cmp w0, #(end_across_sec - start)
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: cmp w0, #(end_across_sec - start)
// CHECK-NEXT: ^
add w0, w1, #(sec_y - sec_x)
- cmp w0, #(sec_y - sec_x)
- // CHECK: error: Cannot represent a difference across sections
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: add w0, w1, #(sec_y - sec_x)
// CHECK-NEXT: ^
- // CHECK: error: Cannot represent a difference across sections
+
+ cmp w0, #(sec_y - sec_x)
+ // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: cmp w0, #(sec_y - sec_x)
// CHECK-NEXT: ^
More information about the llvm-commits
mailing list