• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@ RUN: not llvm-mc -triple armv7a--none-eabi -filetype obj < %s -o /dev/null 2>&1 | FileCheck %s
2
3@ Note: These errors are not always emitted in the order in which the relevant
4@ source appears, this file is carefully ordered so that that is the case.
5
6  .text
7@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: symbol 'undef' can not be undefined in a subtraction expression
8  .word (0-undef)
9
10@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: expected relocatable expression
11  .word -undef
12
13@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: No relocation available to represent this relative expression
14  adr r0, #a-undef
15
16@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
17  .word x_a - y_a
18
19
20
21w:
22  .word 0
23  .weak w
24
25
26  .section sec_x
27x_a:
28  .word 0
29
30
31  .section sec_y
32y_a:
33  .word 0
34