Home | History | Annotate | Download | only in ARM
      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 @ CHECK: <unknown>:0: error: expression could not be evaluated
     20   .set v1, -undef
     21 
     22   .comm common, 4
     23 @ CHECK: <unknown>:0: error: Common symbol 'common' cannot be used in assignment expr
     24   .set v3, common
     25 
     26 @ CHECK: <unknown>:0: error: symbol 'undef' could not be evaluated in a subtraction expression
     27   .set v2, a-undef
     28 
     29 
     30 
     31 w:
     32   .word 0
     33   .weak w
     34 
     35 
     36   .section sec_x
     37 x_a:
     38   .word 0
     39 
     40 
     41   .section sec_y
     42 y_a:
     43   .word 0
     44