1@ RUN: llvm-mc -triple thumbv8m.base-eabi -filetype asm -o - %s | FileCheck %s 2@ RUN: llvm-mc -triple thumbv8m.base-eabi -filetype obj -o - %s | llvm-readobj -r \ 3@ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s 4 5 .syntax unified 6 7 .type function,%function 8function: 9 bx lr 10 11 .global external 12 .type external,%function 13 14 .type test,%function 15test: 16 movw r0, :lower16:function 17 movt r0, :upper16:function 18 19@ CHECK-LABEL: test: 20@ CHECK: movw r0, :lower16:function 21@ CHECK: movt r0, :upper16:function 22 23@ CHECK-RELOCATIONS: Relocations [ 24@ CHECK-RELOCATIONS: 0x2 R_ARM_THM_MOVW_ABS_NC function 0x0 25@ CHECK-RELOCATIONS: 0x6 R_ARM_THM_MOVT_ABS function 0x0 26@ CHECK-RELOCATIONS: ] 27 28