2012-03-30 17:15:32 +08:00
|
|
|
// RUN: llvm-mc -triple=armv7-linux-gnueabi -filetype=obj %s -o - | \
|
2013-04-12 12:06:46 +08:00
|
|
|
// RUN: llvm-readobj -r | FileCheck -check-prefix=OBJ %s
|
2012-03-30 17:15:32 +08:00
|
|
|
|
|
|
|
bleq some_label
|
|
|
|
bl some_label
|
|
|
|
blx some_label
|
2012-06-20 00:03:02 +08:00
|
|
|
beq some_label
|
|
|
|
b some_label
|
2012-03-30 17:15:32 +08:00
|
|
|
|
2013-04-12 12:06:46 +08:00
|
|
|
// OBJ: Relocations [
|
|
|
|
// OBJ-NEXT: Section (1) .text {
|
|
|
|
// OBJ-NEXT: 0x0 R_ARM_JUMP24 some_label 0x0
|
|
|
|
// OBJ-NEXT: 0x4 R_ARM_CALL some_label 0x0
|
|
|
|
// OBJ-NEXT: 0x8 R_ARM_CALL some_label 0x0
|
|
|
|
// OBJ-NEXT: 0xC R_ARM_JUMP24 some_label 0x0
|
|
|
|
// OBJ-NEXT: 0x10 R_ARM_JUMP24 some_label 0x0
|
|
|
|
// OBJ-NEXT: }
|
|
|
|
// OBJ-NEXT: ]
|