// 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: :[[@LINE-1]]:{{[0-9]+}}: error: value evaluated as 300 is out of range.
// CHECK-NEXT: .byte e - b
// CHECK-NEXT: ^
.section sec_x
start:
.space 5000
end:
add w0, w1, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: add w0, w1, // CHECK-NEXT: ^
cmp w0, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: cmp w0, // CHECK-NEXT: ^
negative:
add w0, w1, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: add w0, w1, // CHECK-NEXT: ^
cmp w0, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
// CHECK-NEXT: cmp w0, // CHECK-NEXT: ^
add w0, w1, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: symbol 'external' can not be undefined in a subtraction expression
// CHECK-NEXT: add w0, w1, // CHECK-NEXT: ^
cmp w0, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: symbol 'external' can not be undefined in a subtraction expression
// CHECK-NEXT: cmp w0, // CHECK-NEXT: ^
add w0, w1, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: add w0, w1, // CHECK-NEXT: ^
cmp w0, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: cmp w0, // CHECK-NEXT: ^
add w0, w1, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: add w0, w1, // CHECK-NEXT: ^
cmp w0, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Unsupported pc-relative fixup kind
// CHECK-NEXT: cmp w0, // CHECK-NEXT: ^
.section sec_y
end_across_sec:
add w0, w1, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: add w0, w1, // CHECK-NEXT: ^
cmp w0, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: cmp w0, // CHECK-NEXT: ^
add w0, w1, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: add w0, w1, // CHECK-NEXT: ^
cmp w0, // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
// CHECK-NEXT: cmp w0, // CHECK-NEXT: ^