1 // RUN
: not llvm-mc
-triple aarch64-elf
-filetype
=obj
%s
-o
/dev
/null
2>&1 | FileCheck
%s
8 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: value evaluated as
300 is out of range.
9 // CHECK-NEXT
: .byte e - b
16 add w0
, w1
, #(end - start)
17 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: fixup value out of range
18 // CHECK-NEXT
: add w0
, w1
, #(end - start)
21 cmp w0
, #(end - start)
22 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: fixup value out of range
23 // CHECK-NEXT
: cmp w0
, #(end - start)
27 add w0
, w1
, #(end - negative)
28 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: fixup value out of range
29 // CHECK-NEXT
: add w0
, w1
, #(end - negative)
32 cmp w0
, #(end - negative)
33 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: fixup value out of range
34 // CHECK-NEXT
: cmp w0
, #(end - negative)
37 add w0
, w1
, #(end - external)
38 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: symbol
'external' can
not be undefined in
a subtraction expression
39 // CHECK-NEXT
: add w0
, w1
, #(end - external)
42 cmp w0
, #(end - external)
43 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: symbol
'external' can
not be undefined in
a subtraction expression
44 // CHECK-NEXT
: cmp w0
, #(end - external)
47 add w0
, w1
, #:lo12:external - end
48 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Unsupported pc-relative fixup kind
49 // CHECK-NEXT
: add w0
, w1
, #:lo12:external - end
52 cmp w0
, #:lo12:external - end
53 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Unsupported pc-relative fixup kind
54 // CHECK-NEXT
: cmp w0
, #:lo12:external - end
57 add w0
, w1
, #:got_lo12:external - end
58 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Unsupported pc-relative fixup kind
59 // CHECK-NEXT
: add w0
, w1
, #:got_lo12:external - end
62 cmp w0
, #:got_lo12:external - end
63 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Unsupported pc-relative fixup kind
64 // CHECK-NEXT
: cmp w0
, #:got_lo12:external - end
69 add w0
, w1
, #(end_across_sec - start)
70 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Cannot represent
a difference across sections
71 // CHECK-NEXT
: add w0
, w1
, #(end_across_sec - start)
74 cmp w0
, #(end_across_sec - start)
75 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Cannot represent
a difference across sections
76 // CHECK-NEXT
: cmp w0
, #(end_across_sec - start)
79 add w0
, w1
, #(sec_y - sec_x)
80 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Cannot represent
a difference across sections
81 // CHECK-NEXT
: add w0
, w1
, #(sec_y - sec_x)
84 cmp w0
, #(sec_y - sec_x)
85 // CHECK
: :[[@LINE-
1]]:{{[0-9]+}}: error
: Cannot represent
a difference across sections
86 // CHECK-NEXT
: cmp w0
, #(sec_y - sec_x)