brintos

brintos / llvm-project-archived public Read only

0
0
Text · 675 B · 7b21b5a Raw
19 lines · plain
1// RUN: not llvm-mc --triple thumbv7m -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s2 3// This test checks reporting of errors of the form "you should have4// used :lower16: in this immediate field", when the errors are5// discovered at the object-file output stage by checking the set of6// available relocations.7//8// For errors that are reported earlier, when initially reading the9// instructions, see lower-upper-errors.s.10 11// CHECK: [[@LINE+1]]:15: error: unsupported relocation12adds r0, r0, #foo13 14// CHECK: [[@LINE+1]]:[[#]]: error: unsupported relocation15add r9, r0, #foo16 17// CHECK: [[@LINE+1]]:11: error: expected relocatable expression18movs r11, :upper8_15:#foo19