summaryrefslogtreecommitdiff
path: root/test/MC/AArch64/label-arithmetic-diags-elf.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AArch64/label-arithmetic-diags-elf.s')
-rw-r--r--test/MC/AArch64/label-arithmetic-diags-elf.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/AArch64/label-arithmetic-diags-elf.s b/test/MC/AArch64/label-arithmetic-diags-elf.s
index e9d92d591fac..dbfdd24f8dc9 100644
--- a/test/MC/AArch64/label-arithmetic-diags-elf.s
+++ b/test/MC/AArch64/label-arithmetic-diags-elf.s
@@ -1,5 +1,14 @@
// RUN: not llvm-mc -triple aarch64-elf -filetype=obj %s -o /dev/null 2>&1 | FileCheck %s
+ .data
+b:
+ .fill 300
+e:
+ .byte e - b
+ // CHECK: error: value evaluated as 300 is out of range.
+ // CHECK-NEXT: .byte e - b
+ // CHECK-NEXT: ^
+
.section sec_x
start:
.space 5000