diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-08 23:17:02 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-08 23:17:02 +0000 |
commit | 91ec991b45cd16b73e3394ee2479592d716d68bd (patch) | |
tree | e6589f4ba771b4a971ce2b4985638c2606999d4a /test/MC/ARM/directive-eabi_attribute-overwrite.s | |
parent | 846acbeef17fd6df7f389c034ada5c490d006d76 (diff) | |
download | llvm-91ec991b45cd16b73e3394ee2479592d716d68bd.tar.gz llvm-91ec991b45cd16b73e3394ee2479592d716d68bd.tar.bz2 llvm-91ec991b45cd16b73e3394ee2479592d716d68bd.tar.xz |
ARM: change attribute tests to use parsed form
This makes the tests more readable by using the -arm-attributes decoding support
in llvm-readobj since that is now available. Change the invocation commands to
be similar to other test and use a more precise triple (the tests only require
ARM EABI support).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/directive-eabi_attribute-overwrite.s')
-rw-r--r-- | test/MC/ARM/directive-eabi_attribute-overwrite.s | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/MC/ARM/directive-eabi_attribute-overwrite.s b/test/MC/ARM/directive-eabi_attribute-overwrite.s index 3e257dbe9d..6fdded3d83 100644 --- a/test/MC/ARM/directive-eabi_attribute-overwrite.s +++ b/test/MC/ARM/directive-eabi_attribute-overwrite.s @@ -1,5 +1,5 @@ -@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -s -sd \ -@ RUN: | FileCheck %s +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ +@ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR .syntax unified .thumb @@ -7,12 +7,11 @@ .eabi_attribute Tag_compatibility, 1 .eabi_attribute Tag_compatibility, 1, "aeabi" -@ CHECK: Section { -@ CHECK: Name: .ARM.attributes -@ CHECK: Type: SHT_ARM_ATTRIBUTES -@ CHECK: SectionData ( -@ CHECK: 0000: 41170000 00616561 62690001 0D000000 -@ CHECK: 0010: 20014145 41424900 -@ CHECK: ) -@ CHECK: } +@ CHECK-ATTR: FileAttributes { +@ CHECK-ATTR: Attribute { +@ CHECK-ATTR: Value: 1, AEABI +@ CHECK-ATTR: TagName: compatibility +@ CHECK-ATTR: Description: AEABI Conformant +@ CHECK-ATTR: } +@ CHECK-ATTR: } |