136b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ Test the .arch directive for armv5 236b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines 336b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ This test case will check the default .ARM.attributes value for the 436b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ armv5 architecture. 536b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines 636b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ RUN: llvm-mc -triple arm-eabi -filetype asm %s \ 736b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ RUN: | FileCheck %s -check-prefix CHECK-ASM 836b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ RUN: llvm-mc -triple arm-eabi -filetype obj %s \ 936b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR 1036b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines 1136b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines .syntax unified 1236b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines .arch armv5 1336b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines 1436b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ASM: .arch armv5 1536b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines 1636b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: FileAttributes { 1736b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: Attribute { 1836b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: TagName: CPU_name 1936b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: Value: 5 2036b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: } 2136b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: Attribute { 2236b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: TagName: CPU_arch 2336b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: Description: ARM v5T 2436b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: } 2536b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: Attribute { 2636b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: TagName: ARM_ISA_use 2736b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: Description: Permitted 2836b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: } 2936b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines@ CHECK-ATTR: } 3036b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hines 31