[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / arm-elf-relocations.s
blob4059591d95b18dc85f40642989684ada2fc05731
1 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -r - \
2 @ RUN: | FileCheck %s
3 @ RUN: llvm-mc -triple thumbv7-eabi -filetype obj -o - %s | llvm-readobj -r - \
4 @ RUN: | FileCheck %s
6 .syntax unified
8 .section .text.r_arm_abs8
10 .byte abs8_0 -128
11 .byte abs8_1 +255
13 @ CHECK: Section {{.*}} .rel.text.r_arm_abs8 {
14 @ CHECK: 0x0 R_ARM_ABS8 abs8_0 0x0
15 @ CHECK: 0x1 R_ARM_ABS8 abs8_1 0x0
16 @ CHECK: }
18 .section .text.r_arm_abs16
20 .short abs16_0 -32768
21 .short abs16_1 +65535
23 @ CHECK: Section {{.*}} .rel.text.r_arm_abs16 {
24 @ CHECK: 0x0 R_ARM_ABS16 abs16_0 0x0
25 @ CHECK: 0x2 R_ARM_ABS16 abs16_1 0x0
26 @ CHECK: }
28 .section .text.r_arm_sbrel32
30 .word target(sbrel)
31 .word target(SBREL)
33 @ CHECK: Section {{.*}} .rel.text.r_arm_sbrel32 {
34 @ CHECK: 0x0 R_ARM_SBREL32 target 0x0
35 @ CHECK: 0x4 R_ARM_SBREL32 target 0x0
36 @ CHECK: }