[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / elf-thumbfunc.s
blob6feee8fbb569a83c647b74beb412c566a4b172ab
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 --symbols | 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
14 .global bar
15 bar = foo
17 .global baz
18 baz = foo + 2
20 @@ make sure foo and bar are thumb function: bit 0 = 1 (st_value)
21 @CHECK: Symbol {
22 @CHECK: Name: bar
23 @CHECK-NEXT: Value: 0x1
24 @CHECK-NEXT: Size: 0
25 @CHECK-NEXT: Binding: Global
26 @CHECK-NEXT: Type: Function
28 @CHECK: Symbol {
29 @CHECK: Name: baz
30 @CHECK-NEXT: Value: 0x3
31 @CHECK-NEXT: Size: 0
32 @CHECK-NEXT: Binding: Global
33 @CHECK-NEXT: Type: Function
35 @CHECK: Symbol {
36 @CHECK: Name: foo
37 @CHECK-NEXT: Value: 0x1
38 @CHECK-NEXT: Size: 0
39 @CHECK-NEXT: Binding: Global
40 @CHECK-NEXT: Type: Function