]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/MC/ARM/elf-thumbfunc.s
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / MC / ARM / elf-thumbfunc.s
1 @@ test st_value bit 0 of thumb function
2 @ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - | \
3 @ RUN: llvm-readobj -t | FileCheck %s
4         .syntax unified
5         .text
6         .globl  foo
7         .align  2
8         .code   16
9         .thumb_func
10         .type   foo,%function
11 foo:
12         bx      lr
13
14 @@ make sure foo is thumb function: bit 0 = 1 (st_value)
15 @CHECK:        Symbol {
16 @CHECK:          Name: foo
17 @CHECK-NEXT:     Value: 0x1
18 @CHECK-NEXT:     Size: 0
19 @CHECK-NEXT:     Binding: Global
20 @CHECK-NEXT:     Type: Function