brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · cd13df9 Raw
36 lines · plain
1@ RUN: llvm-mc -triple thumbv6m-eabi -o - %s | FileCheck %s2@ RUN: llvm-mc -triple thumbv6m-eabi -filetype obj -o - %s | llvm-readobj -r - \3@ RUN:   | FileCheck -check-prefix CHECK-RELOCATIONS %s4@ RUN: llvm-mc -triple thumbv7m-eabi -o - %s | FileCheck %s5@ RUN: llvm-mc -triple thumbv7m-eabi -filetype obj -o - %s | llvm-readobj -r - \6@ RUN:   | FileCheck -check-prefix CHECK-RELOCATIONS %s7 8.syntax unified9 10.type function,%function11function:12  bx lr13 14.global external15.type external,%function16 17.type test,%function18test:19  movs r3, :upper8_15:function20  adds r3, :upper0_7:function21  adds r3, :lower8_15:function22  adds r3, :lower0_7:function23 24@ CHECK-LABEL: test:25@ CHECK:  movs r3, :upper8_15:function26@ CHECK:  adds r3, :upper0_7:function27@ CHECK:  adds r3, :lower8_15:function28@ CHECK:  adds r3, :lower0_7:function29 30@ CHECK-RELOCATIONS: Relocations [31@ CHECK-RELOCATIONS:     0x2 R_ARM_THM_ALU_ABS_G3 function32@ CHECK-RELOCATIONS-NEXT:     0x4 R_ARM_THM_ALU_ABS_G2_NC function33@ CHECK-RELOCATIONS-NEXT:     0x6 R_ARM_THM_ALU_ABS_G1_NC function34@ CHECK-RELOCATIONS-NEXT:     0x8 R_ARM_THM_ALU_ABS_G0_NC function35@ CHECK-RELOCATIONS: ]36