brintos

brintos / llvm-project-archived public Read only

0
0
Text · 623 B · d52ced6 Raw
29 lines · plain
1@@ test st_value bit 0 of thumb function2@ RUN: llvm-mc %s -triple=armv4t-freebsd-eabi -filetype=obj -o - | \3@ RUN: llvm-readobj -r  - | FileCheck %s4 5 6	.syntax unified7        .text8        .align  29        .type   f,%function10        .code   1611        .thumb_func12f:13        push    {r7, lr}14        mov     r7, sp15        pop     {r7, pc}16 17	.section	.data.rel.local,"aw",%progbits18ptr:19	.long	f20 21 22 23@@ make sure the relocation is with f. That is one way to make sure it includes24@@ the thumb bit.25@CHECK:        Section ({{.*}}) .rel.data.rel.local {26@CHECK-NEXT:     0x0 R_ARM_ABS32 f27@CHECK-NEXT:   }28@CHECK-NEXT: ]29