Home | History | Annotate | Download | only in ARM
      1 @ RUN: llvm-mc < %s -triple armv7-linux-gnueabi -filetype=obj -o - \
      2 @ RUN:   | llvm-readobj -r | FileCheck %s
      3 
      4   .code  16
      5   .thumb_func
      6 thumb_caller:
      7   beq.w internal_arm_fn
      8   beq.w global_arm_fn
      9   beq.w global_thumb_fn
     10   beq.w internal_thumb_fn
     11 
     12   .type  internal_arm_fn,%function
     13   .code  32
     14 internal_arm_fn:
     15   bx  lr
     16 
     17   .globl  global_arm_fn
     18   .type  global_arm_fn,%function
     19   .code  32
     20 global_arm_fn:
     21   bx  lr
     22 
     23   .type  internal_thumb_fn,%function
     24   .code  16
     25   .thumb_func
     26 internal_thumb_fn:
     27   bx  lr
     28 
     29   .globl  global_thumb_fn
     30   .type  global_thumb_fn,%function
     31   .code  16
     32   .thumb_func
     33 global_thumb_fn:
     34   bx  lr
     35 
     36 @ CHECK: Section (3) .rel.text
     37 @ CHECK-NEXT: 0x0 R_ARM_THM_JUMP19 internal_arm_fn 0x0
     38 @ CHECK-NEXT: 0x4 R_ARM_THM_JUMP19 global_arm_fn 0x0
     39 @ CHECK-NEXT: }
     40