[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / elf-thumbfunc-reloc.s
blob70aa8c66b96a996945966a114d751a2d4275bbbe
1 @@ test st_value bit 0 of thumb function
2 @ RUN: llvm-mc %s -triple=armv4t-freebsd-eabi -filetype=obj -o - | \
3 @ RUN: llvm-readobj -r | FileCheck %s
6 .syntax unified
7 .text
8 .align 2
9 .type f,%function
10 .code 16
11 .thumb_func
13 push {r7, lr}
14 mov r7, sp
15 bl g
16 pop {r7, pc}
18 .section .data.rel.local,"aw",%progbits
19 ptr:
20 .long f
23 @@ make sure an R_ARM_THM_CALL relocation is generated for the call to g
24 @CHECK: Relocations [
25 @CHECK-NEXT: Section {{.*}} .rel.text {
26 @CHECK-NEXT: 0x4 R_ARM_THM_CALL g 0x0
27 @CHECK-NEXT: }
30 @@ make sure the relocation is with f. That is one way to make sure it includes
31 @@ the thumb bit.
32 @CHECK-NEXT: Section ({{.*}}) .rel.data.rel.local {
33 @CHECK-NEXT: 0x0 R_ARM_ABS32 f 0x0
34 @CHECK-NEXT: }
35 @CHECK-NEXT: ]