Home | History | Annotate | Download | only in ARM
      1 @ Test the .arch directive for armv8-a
      2 
      3 @ This test case will check the default .ARM.attributes value for the
      4 @ armv8-a architecture.
      5 
      6 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
      7 @ RUN:   | FileCheck %s -check-prefix CHECK-ASM
      8 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
      9 @ RUN:   | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
     10 
     11 	.syntax	unified
     12 	.arch	armv8-a
     13 
     14 @ CHECK-ASM: 	.arch	armv8-a
     15 
     16 @ CHECK-ATTR: FileAttributes {
     17 @ CHECK-ATTR:   Attribute {
     18 @ CHECK-ATTR:     TagName: CPU_name
     19 @ CHECK-ATTR:     Value: 8-A
     20 @ CHECK-ATTR:   }
     21 @ CHECK-ATTR:   Attribute {
     22 @ CHECK-ATTR:     TagName: CPU_arch
     23 @ CHECK-ATTR:     Description: ARM v8
     24 @ CHECK-ATTR:   }
     25 @ CHECK-ATTR:   Attribute {
     26 @ CHECK-ATTR:     TagName: CPU_arch_profile
     27 @ CHECK-ATTR:     Description: Application
     28 @ CHECK-ATTR:   }
     29 @ CHECK-ATTR:   Attribute {
     30 @ CHECK-ATTR:     TagName: ARM_ISA_use
     31 @ CHECK-ATTR:     Description: Permitted
     32 @ CHECK-ATTR:   }
     33 @ CHECK-ATTR:   Attribute {
     34 @ CHECK-ATTR:     TagName: THUMB_ISA_use
     35 @ CHECK-ATTR:     Description: Thumb-2
     36 @ CHECK-ATTR:   }
     37 @ CHECK-ATTR:   Attribute {
     38 @ CHECK-ATTR:     TagName: MPextension_use
     39 @ CHECK-ATTR:     Description: Permitted
     40 @ CHECK-ATTR:   }
     41 @ CHECK-ATTR:   Attribute {
     42 @ CHECK-ATTR:     TagName: Virtualization_use
     43 @ CHECK-ATTR:     Description: TrustZone + Virtualization Extensions
     44 @ CHECK-ATTR:   }
     45 @ CHECK-ATTR: }
     46 
     47