2014-03-20 06:05:33 +00:00
|
|
|
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -t \
|
|
|
|
@ RUN: | FileCheck %s
|
|
|
|
|
2014-04-27 20:23:58 +00:00
|
|
|
@ RUN: llvm-mc -triple armv7-eabi -filetype asm -o - %s \
|
|
|
|
@ RUN: | FileCheck --check-prefix=ASM %s
|
|
|
|
|
2014-03-20 06:05:33 +00:00
|
|
|
.syntax unified
|
|
|
|
|
|
|
|
.arm
|
|
|
|
|
|
|
|
.type arm_func,%function
|
|
|
|
arm_func:
|
|
|
|
nop
|
|
|
|
|
|
|
|
.thumb_set alias_arm_func, arm_func
|
|
|
|
|
2014-04-29 12:46:50 +00:00
|
|
|
alias_arm_func2 = alias_arm_func
|
|
|
|
alias_arm_func3 = alias_arm_func2
|
|
|
|
|
2014-04-27 20:23:58 +00:00
|
|
|
@ ASM: .thumb_set alias_arm_func, arm_func
|
|
|
|
|
2014-03-20 06:05:33 +00:00
|
|
|
.thumb
|
|
|
|
|
|
|
|
.type thumb_func,%function
|
|
|
|
.thumb_func
|
|
|
|
thumb_func:
|
|
|
|
nop
|
|
|
|
|
|
|
|
.thumb_set alias_thumb_func, thumb_func
|
|
|
|
|
|
|
|
.thumb_set seedless, 0x5eed1e55
|
|
|
|
.thumb_set eggsalad, seedless + 0x87788358
|
|
|
|
.thumb_set faceless, ~eggsalad + 0xe133c002
|
|
|
|
|
|
|
|
.thumb_set alias_undefined_data, badblood
|
|
|
|
|
|
|
|
.data
|
|
|
|
|
|
|
|
.type badblood,%object
|
|
|
|
badblood:
|
|
|
|
.long 0xbadb100d
|
|
|
|
|
|
|
|
.type bedazzle,%object
|
|
|
|
bedazzle:
|
|
|
|
.long 0xbeda221e
|
|
|
|
|
|
|
|
.text
|
|
|
|
.thumb
|
|
|
|
|
|
|
|
.thumb_set alias_defined_data, bedazzle
|
|
|
|
|
|
|
|
.type alpha,%function
|
|
|
|
alpha:
|
|
|
|
nop
|
|
|
|
|
|
|
|
.type beta,%function
|
|
|
|
beta:
|
|
|
|
bkpt
|
|
|
|
|
|
|
|
.thumb_set beta, alpha
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: alias_arm_func
|
|
|
|
@ CHECK: Value: 0x1
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
2014-04-29 12:46:50 +00:00
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: alias_arm_func2
|
|
|
|
@ CHECK: Value: 0x1
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: alias_arm_func3
|
|
|
|
@ CHECK: Value: 0x1
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
2014-03-20 06:05:33 +00:00
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: alias_defined_data
|
|
|
|
@ CHECK: Value: 0x5
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: alias_thumb_func
|
|
|
|
@ CHECK: Value: 0x5
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: alias_undefined_data
|
|
|
|
@ CHECK: Value: 0x0
|
|
|
|
@ CHECK: Type: Object
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: alpha
|
2014-03-22 19:26:18 +00:00
|
|
|
@ CHECK: Value: 0x7
|
2014-03-20 06:05:33 +00:00
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: arm_func
|
|
|
|
@ CHECK: Value: 0x0
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
2014-05-01 12:45:43 +00:00
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: badblood
|
|
|
|
@ CHECK-NEXT: Value: 0x0
|
|
|
|
@ CHECK-NEXT: Size: 0
|
|
|
|
@ CHECK-NEXT: Binding: Local
|
|
|
|
@ CHECK-NEXT: Type: Object
|
|
|
|
@ CHECK-NEXT: Other: 0
|
|
|
|
@ CHECK-NEXT: Section: .data
|
|
|
|
@ CHECK-NEXT: }
|
|
|
|
|
2014-03-20 06:05:33 +00:00
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: bedazzle
|
|
|
|
@ CHECK: Value: 0x4
|
|
|
|
@ CHECK: Type: Object
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: beta
|
|
|
|
@ CHECK: Value: 0x7
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: eggsalad
|
|
|
|
@ CHECK: Value: 0xE665A1AD
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: faceless
|
|
|
|
@ CHECK: Value: 0xFACE1E55
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: seedless
|
|
|
|
@ CHECK: Value: 0x5EED1E55
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|
|
|
|
|
|
|
|
@ CHECK: Symbol {
|
|
|
|
@ CHECK: Name: thumb_func
|
|
|
|
@ CHECK: Value: 0x5
|
|
|
|
@ CHECK: Type: Function
|
|
|
|
@ CHECK: }
|