aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/elf-thumbfunc.s
blob: 26f5f0b159afb1fd686b6faaae5ccc2bd1dda29b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@@ test st_value bit 0 of thumb function
@ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - | \
@ RUN: llvm-readobj -t | FileCheck %s
	.syntax unified
	.text
	.globl	foo
	.align	2
	.type	foo,%function
	.code	16
	.thumb_func
foo:
	bx	lr

@@ make sure foo is thumb function: bit 0 = 1 (st_value)
@CHECK:        Symbol {
@CHECK:          Name: foo
@CHECK-NEXT:     Value: 0x1
@CHECK-NEXT:     Size: 0
@CHECK-NEXT:     Binding: Global
@CHECK-NEXT:     Type: Function