41 lines · plain
1@ RUN: llvm-mc -triple armv7-eabi -filetype asm -o - %s | FileCheck %s2 3 .syntax unified4 5 .data6 7 .type .L_table_begin,%object8.L_table_begin:9 .rep 210 .long 0xd15ab1ed11 .long 0x0ff1c1a112 .endr13.L_table_end:14 15 .text16 17 .type return,%function18return:19 bx lr20 21 .global arm_function22 .type arm_function,%function23arm_function:24 mov r0, #:lower16:((.L_table_end - .L_table_begin) >> 2)25 blx return26 27@ CHECK-LABEL: arm_function28@ CHECK: movw r0, :lower16:((.L_table_end-.L_table_begin)>>2)29@ CHECK: blx return30 31 .global thumb_function32 .type thumb_function,%function33thumb_function:34 mov r0, #:lower16:((.L_table_end - .L_table_begin) >> 2)35 blx return36 37@ CHECK-LABEL: thumb_function38@ CHECK: movw r0, :lower16:((.L_table_end-.L_table_begin)>>2)39@ CHECK: blx return40 41