Update tests to not be as dependent on section numbers.
[oota-llvm.git] / test / MC / ARM / elf-thumbfunc-reloc.s
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
4
5
6         .syntax unified
7         .text
8         .align  2
9         .type   f,%function
10         .code   16
11         .thumb_func
12 f:
13         push    {r7, lr}
14         mov     r7, sp
15         bl      g
16         pop     {r7, pc}
17
18         .section        .data.rel.local,"aw",%progbits
19 ptr:
20         .long   f
21
22
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:   }
28
29
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 (6) .rel.data.rel.local {
33 @CHECK-NEXT:     0x0 R_ARM_ABS32 f 0x0
34 @CHECK-NEXT:   }
35 @CHECK-NEXT: ]