brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 3f9fa0c Raw
52 lines · plain
1@ RUN: not llvm-mc -triple armv7a--none-eabi -filetype obj < %s -o /dev/null 2>&1 | FileCheck %s2@ RUN: not llvm-mc -triple thumbv7a--none-eabi -filetype obj < %s -o /dev/null 2>&1 | FileCheck %s3 4@ Note: These errors are not always emitted in the order in which the relevant5@ source appears, this file is carefully ordered so that that is the case.6 7  .text8@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: symbol 'undef' can not be undefined in a subtraction expression9  .word (0-undef)10 11@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: expected relocatable expression12  .word -undef13 14@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: symbol 'undef' can not be undefined in a subtraction expression15  adr r0, #a-undef16 17@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Cannot represent a difference across sections18  .word x_a - y_a19 20@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: invalid fixup for {{ARM|Thumb}} MOVT instruction21  movt r9, :upper16: bar(PREL31)22 23@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: invalid fixup for {{ARM|Thumb}} MOVW instruction24  movw r9, :lower16: bar(PREL31)25 26@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: invalid fixup for 1-byte data relocation27  .byte f30(PLT)28 29@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: invalid fixup for 2-byte data relocation30  .hword f30(PLT)31 32@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: invalid fixup for 4-byte data relocation33  .word f30(PLT)34 35@ CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: invalid fixup for 4-byte pc-relative data relocation36  .word x_a(PLT) - label137label1:38 39w:40  .word 041  .weak w42 43 44  .section sec_x45x_a:46  .word 047 48 49  .section sec_y50y_a:51  .word 052