forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: convert a couple of ARM relocation tests to readobj
These tests are checking the relocation generation. Use the readobj output as it is much easier to follow when glancing over the tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225575 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-objdump -r - \ | ||
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -r - \ | ||
@ RUN: | FileCheck %s | ||
@ RUN: llvm-mc -triple thumbv7-eabi -filetype obj -o - %s | llvm-objdump -r - \ | ||
@ RUN: llvm-mc -triple thumbv7-eabi -filetype obj -o - %s | llvm-readobj -r - \ | ||
@ RUN: | FileCheck %s | ||
|
||
.syntax unified | ||
|
||
.short abs16_0 -32768 | ||
.short abs16_1 +65535 | ||
|
||
@ CHECK: 0 R_ARM_ABS16 abs16_0 | ||
@ CHECK: 2 R_ARM_ABS16 abs16_1 | ||
@ CHECK: Relocations { | ||
@ CHECK: Section (2) .rel.text { | ||
@ CHECK: 0x0 R_ARM_ABS16 abs16_0 0x0 | ||
@ CHECK: 0x2 R_ARM_ABS16 abs16_1 0x0 | ||
@ CHECK: } | ||
@ CHECK: } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-objdump -r - \ | ||
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -r - \ | ||
@ RUN: | FileCheck %s | ||
@ RUN: llvm-mc -triple thumbv7-eabi -filetype obj -o - %s | llvm-objdump -r - \ | ||
@ RUN: llvm-mc -triple thumbv7-eabi -filetype obj -o - %s | llvm-readobj -r - \ | ||
@ RUN: | FileCheck %s | ||
|
||
.syntax unified | ||
|
||
.byte abs8_0 -128 | ||
.byte abs8_1 +255 | ||
|
||
@ CHECK: 0 R_ARM_ABS8 abs8_0 | ||
@ CHECK: 1 R_ARM_ABS8 abs8_1 | ||
@ CHECK: Relocations { | ||
@ CHECK: Section (2) .rel.text { | ||
@ CHECK: 0x0 R_ARM_ABS8 abs8_0 0x0 | ||
@ CHECK: 0x1 R_ARM_ABS8 abs8_1 0x0 | ||
@ CHECK: } | ||
@ CHECK: } |