From 8b2caa458fc26df05009749a19650db3af73304b Mon Sep 17 00:00:00 2001 From: Charlie Turner Date: Mon, 5 Jan 2015 13:12:17 +0000 Subject: Emit the build attribute Tag_conformance. Claim conformance to version 2.09 of the ARM ABI. This build attribute must be emitted first amongst the build attributes when written to an object file. This is to simplify conformance detection by consumers. Change-Id: If9eddcfc416bc9ad6e5cc8cdcb05d0031af7657e llvm-svn: 225166 --- llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s | 8 ++++++++ llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s create mode 100644 llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s (limited to 'llvm/test/tools/llvm-readobj/ARM') diff --git a/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s new file mode 100644 index 00000000000..daa44c14eca --- /dev/null +++ b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-1.s @@ -0,0 +1,8 @@ +@ RUN: llvm-mc -triple armv7-elf -filetype asm -o - %s | FileCheck %s +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ +@ RUN: | llvm-readobj -arm-attributes - | FileCheck %s --check-prefix=CHECK-OBJ +.eabi_attribute Tag_conformance, "0" +@CHECK: .eabi_attribute 67, "0" +@CHECK-OBJ: Tag: 67 +@CHECK-OBJ-NEXT: TagName: conformance +@CHECK-OBJ-NEXT: Value: 0 diff --git a/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s new file mode 100644 index 00000000000..47c83c03696 --- /dev/null +++ b/llvm/test/tools/llvm-readobj/ARM/attribute-conformance-2.s @@ -0,0 +1,8 @@ +@ RUN: llvm-mc -triple armv7-elf -filetype asm -o - %s | FileCheck %s +@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ +@ RUN: | llvm-readobj -arm-attributes - | FileCheck %s --check-prefix=CHECK-OBJ +.eabi_attribute Tag_conformance, "A.long--non numeric oddity...!!" +@CHECK: .eabi_attribute 67, "A.long--non numeric oddity...!!" +@CHECK-OBJ: Tag: 67 +@CHECK-OBJ-NEXT: TagName: conformance +@CHECK-OBJ-NEXT: Value: A.long--non numeric oddity...!! -- cgit v1.2.3