summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/build-attributes-encoding.s
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-01-07 02:28:42 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-01-07 02:28:42 +0000
commit87ccd367b63ac8f6c2d263af96b1162ba40ff99e (patch)
tree2c8f0534f3bd0b9699e7c8716784f29c94a37686 /llvm/test/CodeGen/ARM/build-attributes-encoding.s
parent69c7caf63068aac90c413c221c437b648bafa6bc (diff)
downloadbcm5719-llvm-87ccd367b63ac8f6c2d263af96b1162ba40ff99e.tar.gz
bcm5719-llvm-87ccd367b63ac8f6c2d263af96b1162ba40ff99e.zip
ARM IAS: improve .eabi_attribute handling
Parse tag names as well as expressions. The former is part of the specification, the latter is for improved compatibility with the GNU assembler. Fix attribute value handling to be comformant to the specification. llvm-svn: 198662
Diffstat (limited to 'llvm/test/CodeGen/ARM/build-attributes-encoding.s')
-rw-r--r--llvm/test/CodeGen/ARM/build-attributes-encoding.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/ARM/build-attributes-encoding.s b/llvm/test/CodeGen/ARM/build-attributes-encoding.s
index 5ad51b28411..34a1ad38fb1 100644
--- a/llvm/test/CodeGen/ARM/build-attributes-encoding.s
+++ b/llvm/test/CodeGen/ARM/build-attributes-encoding.s
@@ -4,7 +4,7 @@
// RUN: | llvm-readobj -s -sd | FileCheck %s
// Tag_CPU_name (=5)
-.cpu Cortex-A8
+.cpu cortex-a8
// Tag_CPU_arch (=6)
.eabi_attribute 6, 10
@@ -61,7 +61,7 @@
.eabi_attribute 110, 160
// Check that tags > 128 are encoded properly
-.eabi_attribute 129, 1
+.eabi_attribute 129, "1"
.eabi_attribute 250, 1
// CHECK: Section {
@@ -71,15 +71,15 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset: 0x34
-// CHECK-NEXT: Size: 70
+// CHECK-NEXT: Size: 71
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
// CHECK-NEXT: EntrySize: 0
// CHECK-NEXT: SectionData (
-// CHECK-NEXT: 0000: 41450000 00616561 62690001 3B000000
+// CHECK-NEXT: 0000: 41460000 00616561 62690001 3C000000
// CHECK-NEXT: 0010: 05434F52 5445582D 41380006 0A074108
// CHECK-NEXT: 0020: 0109020A 030C0214 01150117 01180119
// CHECK-NEXT: 0030: 011B001C 0124012A 012C0244 036EA001
-// CHECK-NEXT: 0040: 810101FA 0101
+// CHECK-NEXT: 0040: 81013100 FA0101
// CHECK-NEXT: )
OpenPOWER on IntegriCloud