2011-05-16 16:17:21 +00:00
|
|
|
@@ test st_value bit 0 of thumb function
|
|
|
|
@ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - | \
|
2013-04-12 04:06:46 +00:00
|
|
|
@ RUN: llvm-readobj -t | FileCheck %s
|
2011-05-16 16:17:21 +00:00
|
|
|
.syntax unified
|
|
|
|
.text
|
|
|
|
.globl foo
|
|
|
|
.align 2
|
|
|
|
.code 16
|
|
|
|
.thumb_func
|
2013-10-25 12:49:50 +00:00
|
|
|
.type foo,%function
|
2011-05-16 16:17:21 +00:00
|
|
|
foo:
|
|
|
|
bx lr
|
|
|
|
|
|
|
|
@@ make sure foo is thumb function: bit 0 = 1 (st_value)
|
2013-04-12 04:06:46 +00:00
|
|
|
@CHECK: Symbol {
|
|
|
|
@CHECK: Name: foo
|
|
|
|
@CHECK-NEXT: Value: 0x1
|
|
|
|
@CHECK-NEXT: Size: 0
|
|
|
|
@CHECK-NEXT: Binding: Global
|
|
|
|
@CHECK-NEXT: Type: Function
|