1 // RUN
: not llvm-mc
-triple aarch64-none-linux-gnu
%s
-filetype
=obj
-o
/dev
/null
2>&1 | FileCheck
%s
4 // CHECK
: error
: expected relocatable expression
5 // CHECK-NEXT
: adr x0
, -start
8 // CHECK
: error
: expected relocatable expression
9 // CHECK-NEXT
: adr x1
, start
* 10
11 adr x2
, 2 * (start
+ 987136)
12 // CHECK
: error
: expected relocatable expression
13 // CHECK-NEXT
: adr x2
, 2 * (start
+ 987136)
16 // CHECK
: error
: expected relocatable expression
17 // CHECK-NEXT
: adr x3
, (end
+ start
)
19 adr x4
, #(end - start)
20 // CHECK
: error
: symbol
'start' can
not be undefined in
a subtraction expression
21 // CHECK-NEXT
: adr x4
, #(end - start)
25 // CHECK
: error
: expected relocatable expression
26 // CHECK-NEXT
: adrp x0
, -start
29 // CHECK
: error
: expected relocatable expression
30 // CHECK-NEXT
: adrp x1
, start
* 10
32 adrp x2
, 2 * (start
+ 987136)
33 // CHECK
: error
: expected relocatable expression
34 // CHECK-NEXT
: adrp x2
, 2 * (start
+ 987136)
36 adrp x3
, (end
+ start
)
37 // CHECK
: error
: expected relocatable expression
38 // CHECK-NEXT
: adrp x3
, (end
+ start
)
40 adrp x4
, #(end - start)
41 // CHECK
: error
: symbol
'start' can
not be undefined in
a subtraction expression
42 // CHECK-NEXT
: adrp x4
, #(end - start)