brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · cef1e83 Raw
72 lines · plain
1@ RUN: not llvm-mc %s -triple thumbv7-linux-gnueabi -filetype=obj -o /dev/null 2>&1 | FileCheck %s2@ RUN: not llvm-mc %s -triple thumbv8-m.baseline-none-eabi -filetype=obj -o /dev/null 2>&1 | FileCheck %s3@ RUN: not llvm-mc %s -triple thumbv8-m.mainline-none-eabi -filetype=obj -o /dev/null 2>&1 | FileCheck %s4@ RUN: not llvm-mc %s -triple thumbv6m-none-eabi -filetype=obj -o /dev/null 2>&1 | FileCheck %s5@ RUN: not llvm-mc %s -triple thumbv5-linux-gnueabi -filetype=obj -o /dev/null 2>&1 | FileCheck -check-prefix=CHECKSHORT %s6 7// Thumb BL has range +- 4 Megabytes if CPU does not support Thumb2 or does not8// have v8-M baseline ops, it is +- 16 Megabytes otherwise.9 10.code 1611bl      shortend12.space 0x3fffff13shortend:14// CHECKSHORT-NOT: error:15// CHECKSHORT: [[@LINE+1]]:[[#]]: error: Relocation out of range16bl      shortend217.space 0x40000018shortend2:19 20// CHECKSHORT: [[@LINE+1]]:[[#]]: error: Relocation out of range21bl      end22.space 0xffffff23end:24bl      end225.space 0xffffff26.global end227end2:28 29bl      end330.space 0x100000031.global end332end3:33 34// CHECK-NOT: error:35// CHECKSHORT-NOT: error:36// CHECKSHORT: [[@LINE+2]]:[[#]]: error: Relocation out of range37// CHECK: [[@LINE+1]]:[[#]]: error: Relocation out of range38bl      end439.space 0x100000040end4:41 42shortstart1:43.space 0x3ffffc44bl shortstart145 46shortstart2:47.space 0x40000048// CHECKSHORT: [[@LINE+1]]:[[#]]: error: Relocation out of range49bl shortstart250 51start1:52.space 0xfffffc53// CHECKSHORT: [[@LINE+1]]:[[#]]: error: Relocation out of range54bl start155 56.global start257start2:58.space 0xfffffc59bl start260 61.global start362start3:63.space 0xfffffd64bl start365 66// CHECK-NOT: error:67start4:68.space 0xfffffd69// CHECK: [[@LINE+2]]:[[#]]: error: Relocation out of range70// CHECKSHORT: [[@LINE+1]]:[[#]]: error: Relocation out of range71bl start472