Index: test/tools/llvm-readobj/ARM/ABI_FP_16bit_format0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_16bit_format0.ll @@ -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 ABI_FP_16bit_format, 0 +@CHECK: .eabi_attribute 38, 0 +@CHECK-OBJ: Tag: 38 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_FP_16bit_format Index: test/tools/llvm-readobj/ARM/ABI_FP_16bit_format1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_16bit_format1.ll @@ -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 ABI_FP_16bit_format, 1 +@CHECK: .eabi_attribute 38, 1 +@CHECK-OBJ: Tag: 38 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_FP_16bit_format Index: test/tools/llvm-readobj/ARM/ABI_FP_16bit_format2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_16bit_format2.ll @@ -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 ABI_FP_16bit_format, 2 +@CHECK: .eabi_attribute 38, 2 +@CHECK-OBJ: Tag: 38 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_FP_16bit_format Index: test/tools/llvm-readobj/ARM/ABI_FP_denormal0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_denormal0.ll @@ -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 ABI_FP_denormal, 0 +@CHECK: .eabi_attribute 20, 0 +@CHECK-OBJ: Tag: 20 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_FP_denormal Index: test/tools/llvm-readobj/ARM/ABI_FP_denormal1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_denormal1.ll @@ -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 ABI_FP_denormal, 1 +@CHECK: .eabi_attribute 20, 1 +@CHECK-OBJ: Tag: 20 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_FP_denormal Index: test/tools/llvm-readobj/ARM/ABI_FP_denormal2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_denormal2.ll @@ -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 ABI_FP_denormal, 2 +@CHECK: .eabi_attribute 20, 2 +@CHECK-OBJ: Tag: 20 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_FP_denormal Index: test/tools/llvm-readobj/ARM/ABI_FP_exceptions0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_exceptions0.ll @@ -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 ABI_FP_exceptions, 0 +@CHECK: .eabi_attribute 21, 0 +@CHECK-OBJ: Tag: 21 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_FP_exceptions Index: test/tools/llvm-readobj/ARM/ABI_FP_exceptions1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_exceptions1.ll @@ -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 ABI_FP_exceptions, 1 +@CHECK: .eabi_attribute 21, 1 +@CHECK-OBJ: Tag: 21 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_FP_exceptions Index: test/tools/llvm-readobj/ARM/ABI_FP_number_model0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_number_model0.ll @@ -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 ABI_FP_number_model, 0 +@CHECK: .eabi_attribute 23, 0 +@CHECK-OBJ: Tag: 23 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_FP_number_model Index: test/tools/llvm-readobj/ARM/ABI_FP_number_model1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_number_model1.ll @@ -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 ABI_FP_number_model, 1 +@CHECK: .eabi_attribute 23, 1 +@CHECK-OBJ: Tag: 23 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_FP_number_model Index: test/tools/llvm-readobj/ARM/ABI_FP_number_model2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_number_model2.ll @@ -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 ABI_FP_number_model, 2 +@CHECK: .eabi_attribute 23, 2 +@CHECK-OBJ: Tag: 23 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_FP_number_model Index: test/tools/llvm-readobj/ARM/ABI_FP_number_model3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_number_model3.ll @@ -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 ABI_FP_number_model, 3 +@CHECK: .eabi_attribute 23, 3 +@CHECK-OBJ: Tag: 23 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_FP_number_model Index: test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals0.ll @@ -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 ABI_FP_optimization_goals, 0 +@CHECK: .eabi_attribute 31, 0 +@CHECK-OBJ: Tag: 31 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_FP_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals1.ll @@ -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 ABI_FP_optimization_goals, 1 +@CHECK: .eabi_attribute 31, 1 +@CHECK-OBJ: Tag: 31 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_FP_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals2.ll @@ -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 ABI_FP_optimization_goals, 2 +@CHECK: .eabi_attribute 31, 2 +@CHECK-OBJ: Tag: 31 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_FP_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals3.ll @@ -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 ABI_FP_optimization_goals, 3 +@CHECK: .eabi_attribute 31, 3 +@CHECK-OBJ: Tag: 31 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_FP_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals4.ll @@ -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 ABI_FP_optimization_goals, 4 +@CHECK: .eabi_attribute 31, 4 +@CHECK-OBJ: Tag: 31 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: ABI_FP_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals5.ll @@ -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 ABI_FP_optimization_goals, 5 +@CHECK: .eabi_attribute 31, 5 +@CHECK-OBJ: Tag: 31 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: ABI_FP_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals6.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_optimization_goals6.ll @@ -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 ABI_FP_optimization_goals, 6 +@CHECK: .eabi_attribute 31, 6 +@CHECK-OBJ: Tag: 31 +@CHECK-OBJ-NEXT: Value: 6 +@CHECK-OBJ-NEXT: TagName: ABI_FP_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_FP_rounding0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_rounding0.ll @@ -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 ABI_FP_rounding, 0 +@CHECK: .eabi_attribute 19, 0 +@CHECK-OBJ: Tag: 19 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_FP_rounding Index: test/tools/llvm-readobj/ARM/ABI_FP_rounding1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_rounding1.ll @@ -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 ABI_FP_rounding, 1 +@CHECK: .eabi_attribute 19, 1 +@CHECK-OBJ: Tag: 19 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_FP_rounding Index: test/tools/llvm-readobj/ARM/ABI_FP_user_exceptions0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_user_exceptions0.ll @@ -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 ABI_FP_user_exceptions, 0 +@CHECK: .eabi_attribute 22, 0 +@CHECK-OBJ: Tag: 22 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_FP_user_exceptions Index: test/tools/llvm-readobj/ARM/ABI_FP_user_exceptions1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_FP_user_exceptions1.ll @@ -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 ABI_FP_user_exceptions, 1 +@CHECK: .eabi_attribute 22, 1 +@CHECK-OBJ: Tag: 22 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_FP_user_exceptions Index: test/tools/llvm-readobj/ARM/ABI_HardFP_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_HardFP_use0.ll @@ -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 ABI_HardFP_use, 0 +@CHECK: .eabi_attribute 27, 0 +@CHECK-OBJ: Tag: 27 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_HardFP_use Index: test/tools/llvm-readobj/ARM/ABI_HardFP_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_HardFP_use1.ll @@ -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 ABI_HardFP_use, 1 +@CHECK: .eabi_attribute 27, 1 +@CHECK-OBJ: Tag: 27 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_HardFP_use Index: test/tools/llvm-readobj/ARM/ABI_HardFP_use2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_HardFP_use2.ll @@ -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 ABI_HardFP_use, 2 +@CHECK: .eabi_attribute 27, 2 +@CHECK-OBJ: Tag: 27 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_HardFP_use Index: test/tools/llvm-readobj/ARM/ABI_HardFP_use3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_HardFP_use3.ll @@ -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 ABI_HardFP_use, 3 +@CHECK: .eabi_attribute 27, 3 +@CHECK-OBJ: Tag: 27 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_HardFP_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_GOT_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_GOT_use0.ll @@ -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 ABI_PCS_GOT_use, 0 +@CHECK: .eabi_attribute 17, 0 +@CHECK-OBJ: Tag: 17 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_GOT_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_GOT_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_GOT_use1.ll @@ -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 ABI_PCS_GOT_use, 1 +@CHECK: .eabi_attribute 17, 1 +@CHECK-OBJ: Tag: 17 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_GOT_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_GOT_use2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_GOT_use2.ll @@ -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 ABI_PCS_GOT_use, 2 +@CHECK: .eabi_attribute 17, 2 +@CHECK-OBJ: Tag: 17 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_GOT_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_R9_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_R9_use0.ll @@ -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 ABI_PCS_R9_use, 0 +@CHECK: .eabi_attribute 14, 0 +@CHECK-OBJ: Tag: 14 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_R9_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_R9_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_R9_use1.ll @@ -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 ABI_PCS_R9_use, 1 +@CHECK: .eabi_attribute 14, 1 +@CHECK-OBJ: Tag: 14 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_R9_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_R9_use2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_R9_use2.ll @@ -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 ABI_PCS_R9_use, 2 +@CHECK: .eabi_attribute 14, 2 +@CHECK-OBJ: Tag: 14 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_R9_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_R9_use3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_R9_use3.ll @@ -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 ABI_PCS_R9_use, 3 +@CHECK: .eabi_attribute 14, 3 +@CHECK-OBJ: Tag: 14 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_R9_use Index: test/tools/llvm-readobj/ARM/ABI_PCS_RO_data0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_RO_data0.ll @@ -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 ABI_PCS_RO_data, 0 +@CHECK: .eabi_attribute 16, 0 +@CHECK-OBJ: Tag: 16 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_RO_data Index: test/tools/llvm-readobj/ARM/ABI_PCS_RO_data1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_RO_data1.ll @@ -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 ABI_PCS_RO_data, 1 +@CHECK: .eabi_attribute 16, 1 +@CHECK-OBJ: Tag: 16 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_RO_data Index: test/tools/llvm-readobj/ARM/ABI_PCS_RO_data2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_RO_data2.ll @@ -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 ABI_PCS_RO_data, 2 +@CHECK: .eabi_attribute 16, 2 +@CHECK-OBJ: Tag: 16 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_RO_data Index: test/tools/llvm-readobj/ARM/ABI_PCS_RW_data0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_RW_data0.ll @@ -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 ABI_PCS_RW_data, 0 +@CHECK: .eabi_attribute 15, 0 +@CHECK-OBJ: Tag: 15 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_RW_data Index: test/tools/llvm-readobj/ARM/ABI_PCS_RW_data1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_RW_data1.ll @@ -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 ABI_PCS_RW_data, 1 +@CHECK: .eabi_attribute 15, 1 +@CHECK-OBJ: Tag: 15 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_RW_data Index: test/tools/llvm-readobj/ARM/ABI_PCS_RW_data2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_RW_data2.ll @@ -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 ABI_PCS_RW_data, 2 +@CHECK: .eabi_attribute 15, 2 +@CHECK-OBJ: Tag: 15 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_RW_data Index: test/tools/llvm-readobj/ARM/ABI_PCS_RW_data3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_RW_data3.ll @@ -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 ABI_PCS_RW_data, 3 +@CHECK: .eabi_attribute 15, 3 +@CHECK-OBJ: Tag: 15 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_RW_data Index: test/tools/llvm-readobj/ARM/ABI_PCS_wchar_t0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_wchar_t0.ll @@ -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 ABI_PCS_wchar_t, 0 +@CHECK: .eabi_attribute 18, 0 +@CHECK-OBJ: Tag: 18 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_wchar_t Index: test/tools/llvm-readobj/ARM/ABI_PCS_wchar_t2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_wchar_t2.ll @@ -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 ABI_PCS_wchar_t, 2 +@CHECK: .eabi_attribute 18, 2 +@CHECK-OBJ: Tag: 18 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_wchar_t Index: test/tools/llvm-readobj/ARM/ABI_PCS_wchar_t4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_PCS_wchar_t4.ll @@ -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 ABI_PCS_wchar_t, 4 +@CHECK: .eabi_attribute 18, 4 +@CHECK-OBJ: Tag: 18 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: ABI_PCS_wchar_t Index: test/tools/llvm-readobj/ARM/ABI_VFP_args0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_VFP_args0.ll @@ -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 ABI_VFP_args, 0 +@CHECK: .eabi_attribute 28, 0 +@CHECK-OBJ: Tag: 28 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_VFP_args Index: test/tools/llvm-readobj/ARM/ABI_VFP_args1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_VFP_args1.ll @@ -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 ABI_VFP_args, 1 +@CHECK: .eabi_attribute 28, 1 +@CHECK-OBJ: Tag: 28 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_VFP_args Index: test/tools/llvm-readobj/ARM/ABI_VFP_args2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_VFP_args2.ll @@ -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 ABI_VFP_args, 2 +@CHECK: .eabi_attribute 28, 2 +@CHECK-OBJ: Tag: 28 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_VFP_args Index: test/tools/llvm-readobj/ARM/ABI_VFP_args3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_VFP_args3.ll @@ -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 ABI_VFP_args, 3 +@CHECK: .eabi_attribute 28, 3 +@CHECK-OBJ: Tag: 28 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_VFP_args Index: test/tools/llvm-readobj/ARM/ABI_WMMX_args0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_WMMX_args0.ll @@ -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 ABI_WMMX_args, 0 +@CHECK: .eabi_attribute 29, 0 +@CHECK-OBJ: Tag: 29 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_WMMX_args Index: test/tools/llvm-readobj/ARM/ABI_WMMX_args1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_WMMX_args1.ll @@ -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 ABI_WMMX_args, 1 +@CHECK: .eabi_attribute 29, 1 +@CHECK-OBJ: Tag: 29 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_WMMX_args Index: test/tools/llvm-readobj/ARM/ABI_WMMX_args2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_WMMX_args2.ll @@ -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 ABI_WMMX_args, 2 +@CHECK: .eabi_attribute 29, 2 +@CHECK-OBJ: Tag: 29 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_WMMX_args Index: test/tools/llvm-readobj/ARM/ABI_align_needed0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed0.ll @@ -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 ABI_align_needed, 0 +@CHECK: .eabi_attribute 24, 0 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed1.ll @@ -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 ABI_align_needed, 1 +@CHECK: .eabi_attribute 24, 1 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed10.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed10.ll @@ -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 ABI_align_needed, 10 +@CHECK: .eabi_attribute 24, 10 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 10 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed11.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed11.ll @@ -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 ABI_align_needed, 11 +@CHECK: .eabi_attribute 24, 11 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 11 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed12.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed12.ll @@ -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 ABI_align_needed, 12 +@CHECK: .eabi_attribute 24, 12 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 12 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed2.ll @@ -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 ABI_align_needed, 2 +@CHECK: .eabi_attribute 24, 2 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed3.ll @@ -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 ABI_align_needed, 3 +@CHECK: .eabi_attribute 24, 3 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed4.ll @@ -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 ABI_align_needed, 4 +@CHECK: .eabi_attribute 24, 4 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed5.ll @@ -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 ABI_align_needed, 5 +@CHECK: .eabi_attribute 24, 5 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed6.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed6.ll @@ -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 ABI_align_needed, 6 +@CHECK: .eabi_attribute 24, 6 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 6 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed7.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed7.ll @@ -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 ABI_align_needed, 7 +@CHECK: .eabi_attribute 24, 7 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 7 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed8.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed8.ll @@ -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 ABI_align_needed, 8 +@CHECK: .eabi_attribute 24, 8 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 8 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_needed9.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_needed9.ll @@ -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 ABI_align_needed, 9 +@CHECK: .eabi_attribute 24, 9 +@CHECK-OBJ: Tag: 24 +@CHECK-OBJ-NEXT: Value: 9 +@CHECK-OBJ-NEXT: TagName: ABI_align_needed Index: test/tools/llvm-readobj/ARM/ABI_align_preserved0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved0.ll @@ -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 ABI_align_preserved, 0 +@CHECK: .eabi_attribute 25, 0 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved1.ll @@ -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 ABI_align_preserved, 1 +@CHECK: .eabi_attribute 25, 1 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved10.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved10.ll @@ -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 ABI_align_preserved, 10 +@CHECK: .eabi_attribute 25, 10 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 10 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved11.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved11.ll @@ -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 ABI_align_preserved, 11 +@CHECK: .eabi_attribute 25, 11 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 11 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved12.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved12.ll @@ -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 ABI_align_preserved, 12 +@CHECK: .eabi_attribute 25, 12 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 12 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved2.ll @@ -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 ABI_align_preserved, 2 +@CHECK: .eabi_attribute 25, 2 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved3.ll @@ -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 ABI_align_preserved, 3 +@CHECK: .eabi_attribute 25, 3 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved4.ll @@ -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 ABI_align_preserved, 4 +@CHECK: .eabi_attribute 25, 4 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved5.ll @@ -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 ABI_align_preserved, 5 +@CHECK: .eabi_attribute 25, 5 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved6.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved6.ll @@ -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 ABI_align_preserved, 6 +@CHECK: .eabi_attribute 25, 6 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 6 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved7.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved7.ll @@ -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 ABI_align_preserved, 7 +@CHECK: .eabi_attribute 25, 7 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 7 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved8.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved8.ll @@ -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 ABI_align_preserved, 8 +@CHECK: .eabi_attribute 25, 8 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 8 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_align_preserved9.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_align_preserved9.ll @@ -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 ABI_align_preserved, 9 +@CHECK: .eabi_attribute 25, 9 +@CHECK-OBJ: Tag: 25 +@CHECK-OBJ-NEXT: Value: 9 +@CHECK-OBJ-NEXT: TagName: ABI_align_preserved Index: test/tools/llvm-readobj/ARM/ABI_enum_size0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_enum_size0.ll @@ -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 ABI_enum_size, 0 +@CHECK: .eabi_attribute 26, 0 +@CHECK-OBJ: Tag: 26 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_enum_size Index: test/tools/llvm-readobj/ARM/ABI_enum_size1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_enum_size1.ll @@ -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 ABI_enum_size, 1 +@CHECK: .eabi_attribute 26, 1 +@CHECK-OBJ: Tag: 26 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_enum_size Index: test/tools/llvm-readobj/ARM/ABI_enum_size2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_enum_size2.ll @@ -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 ABI_enum_size, 2 +@CHECK: .eabi_attribute 26, 2 +@CHECK-OBJ: Tag: 26 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_enum_size Index: test/tools/llvm-readobj/ARM/ABI_enum_size3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_enum_size3.ll @@ -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 ABI_enum_size, 3 +@CHECK: .eabi_attribute 26, 3 +@CHECK-OBJ: Tag: 26 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_enum_size Index: test/tools/llvm-readobj/ARM/ABI_optimization_goals0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_optimization_goals0.ll @@ -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 ABI_optimization_goals, 0 +@CHECK: .eabi_attribute 30, 0 +@CHECK-OBJ: Tag: 30 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ABI_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_optimization_goals1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_optimization_goals1.ll @@ -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 ABI_optimization_goals, 1 +@CHECK: .eabi_attribute 30, 1 +@CHECK-OBJ: Tag: 30 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ABI_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_optimization_goals2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_optimization_goals2.ll @@ -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 ABI_optimization_goals, 2 +@CHECK: .eabi_attribute 30, 2 +@CHECK-OBJ: Tag: 30 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: ABI_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_optimization_goals3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_optimization_goals3.ll @@ -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 ABI_optimization_goals, 3 +@CHECK: .eabi_attribute 30, 3 +@CHECK-OBJ: Tag: 30 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: ABI_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_optimization_goals4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_optimization_goals4.ll @@ -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 ABI_optimization_goals, 4 +@CHECK: .eabi_attribute 30, 4 +@CHECK-OBJ: Tag: 30 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: ABI_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_optimization_goals5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_optimization_goals5.ll @@ -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 ABI_optimization_goals, 5 +@CHECK: .eabi_attribute 30, 5 +@CHECK-OBJ: Tag: 30 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: ABI_optimization_goals Index: test/tools/llvm-readobj/ARM/ABI_optimization_goals6.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ABI_optimization_goals6.ll @@ -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 ABI_optimization_goals, 6 +@CHECK: .eabi_attribute 30, 6 +@CHECK-OBJ: Tag: 30 +@CHECK-OBJ-NEXT: Value: 6 +@CHECK-OBJ-NEXT: TagName: ABI_optimization_goals Index: test/tools/llvm-readobj/ARM/ARM_ISA_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ARM_ISA_use0.ll @@ -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 ARM_ISA_use, 0 +@CHECK: .eabi_attribute 8, 0 +@CHECK-OBJ: Tag: 8 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: ARM_ISA_use Index: test/tools/llvm-readobj/ARM/ARM_ISA_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/ARM_ISA_use1.ll @@ -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 ARM_ISA_use, 1 +@CHECK: .eabi_attribute 8, 1 +@CHECK-OBJ: Tag: 8 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: ARM_ISA_use Index: test/tools/llvm-readobj/ARM/Advanced_SIMD_arch0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Advanced_SIMD_arch0.ll @@ -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 Advanced_SIMD_arch, 0 +@CHECK: .eabi_attribute 12, 0 +@CHECK-OBJ: Tag: 12 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: Advanced_SIMD_arch Index: test/tools/llvm-readobj/ARM/Advanced_SIMD_arch1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Advanced_SIMD_arch1.ll @@ -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 Advanced_SIMD_arch, 1 +@CHECK: .eabi_attribute 12, 1 +@CHECK-OBJ: Tag: 12 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: Advanced_SIMD_arch Index: test/tools/llvm-readobj/ARM/Advanced_SIMD_arch2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Advanced_SIMD_arch2.ll @@ -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 Advanced_SIMD_arch, 2 +@CHECK: .eabi_attribute 12, 2 +@CHECK-OBJ: Tag: 12 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: Advanced_SIMD_arch Index: test/tools/llvm-readobj/ARM/Advanced_SIMD_arch3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Advanced_SIMD_arch3.ll @@ -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 Advanced_SIMD_arch, 3 +@CHECK: .eabi_attribute 12, 3 +@CHECK-OBJ: Tag: 12 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: Advanced_SIMD_arch Index: test/tools/llvm-readobj/ARM/CPU_arch0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch0.ll @@ -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 CPU_arch, 0 +@CHECK: .eabi_attribute 6, 0 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch1.ll @@ -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 CPU_arch, 1 +@CHECK: .eabi_attribute 6, 1 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch10.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch10.ll @@ -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 CPU_arch, 10 +@CHECK: .eabi_attribute 6, 10 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 10 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch11.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch11.ll @@ -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 CPU_arch, 11 +@CHECK: .eabi_attribute 6, 11 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 11 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch12.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch12.ll @@ -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 CPU_arch, 12 +@CHECK: .eabi_attribute 6, 12 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 12 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch13.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch13.ll @@ -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 CPU_arch, 13 +@CHECK: .eabi_attribute 6, 13 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 13 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch14.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch14.ll @@ -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 CPU_arch, 14 +@CHECK: .eabi_attribute 6, 14 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 14 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch2.ll @@ -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 CPU_arch, 2 +@CHECK: .eabi_attribute 6, 2 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch3.ll @@ -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 CPU_arch, 3 +@CHECK: .eabi_attribute 6, 3 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch4.ll @@ -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 CPU_arch, 4 +@CHECK: .eabi_attribute 6, 4 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch5.ll @@ -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 CPU_arch, 5 +@CHECK: .eabi_attribute 6, 5 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch6.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch6.ll @@ -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 CPU_arch, 6 +@CHECK: .eabi_attribute 6, 6 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 6 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch7.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch7.ll @@ -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 CPU_arch, 7 +@CHECK: .eabi_attribute 6, 7 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 7 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch8.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch8.ll @@ -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 CPU_arch, 8 +@CHECK: .eabi_attribute 6, 8 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 8 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch9.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch9.ll @@ -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 CPU_arch, 9 +@CHECK: .eabi_attribute 6, 9 +@CHECK-OBJ: Tag: 6 +@CHECK-OBJ-NEXT: Value: 9 +@CHECK-OBJ-NEXT: TagName: CPU_arch Index: test/tools/llvm-readobj/ARM/CPU_arch_profile0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch_profile0.ll @@ -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 CPU_arch_profile, 0 +@CHECK: .eabi_attribute 7, 0 +@CHECK-OBJ: Tag: 7 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: CPU_arch_profile Index: test/tools/llvm-readobj/ARM/CPU_arch_profile1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch_profile1.ll @@ -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 CPU_arch_profile, 1 +@CHECK: .eabi_attribute 7, 1 +@CHECK-OBJ: Tag: 7 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: CPU_arch_profile Index: test/tools/llvm-readobj/ARM/CPU_arch_profile2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch_profile2.ll @@ -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 CPU_arch_profile, 2 +@CHECK: .eabi_attribute 7, 2 +@CHECK-OBJ: Tag: 7 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: CPU_arch_profile Index: test/tools/llvm-readobj/ARM/CPU_arch_profile3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch_profile3.ll @@ -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 CPU_arch_profile, 3 +@CHECK: .eabi_attribute 7, 3 +@CHECK-OBJ: Tag: 7 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: CPU_arch_profile Index: test/tools/llvm-readobj/ARM/CPU_arch_profile4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch_profile4.ll @@ -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 CPU_arch_profile, 4 +@CHECK: .eabi_attribute 7, 4 +@CHECK-OBJ: Tag: 7 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: CPU_arch_profile Index: test/tools/llvm-readobj/ARM/CPU_arch_profile5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_arch_profile5.ll @@ -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 CPU_arch_profile, 5 +@CHECK: .eabi_attribute 7, 5 +@CHECK-OBJ: Tag: 7 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: CPU_arch_profile Index: test/tools/llvm-readobj/ARM/CPU_unaligned_access0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_unaligned_access0.ll @@ -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 CPU_unaligned_access, 0 +@CHECK: .eabi_attribute 34, 0 +@CHECK-OBJ: Tag: 34 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: CPU_unaligned_access Index: test/tools/llvm-readobj/ARM/CPU_unaligned_access1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/CPU_unaligned_access1.ll @@ -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 CPU_unaligned_access, 1 +@CHECK: .eabi_attribute 34, 1 +@CHECK-OBJ: Tag: 34 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: CPU_unaligned_access Index: test/tools/llvm-readobj/ARM/DIV_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/DIV_use0.ll @@ -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 DIV_use, 0 +@CHECK: .eabi_attribute 44, 0 +@CHECK-OBJ: Tag: 44 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: DIV_use Index: test/tools/llvm-readobj/ARM/DIV_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/DIV_use1.ll @@ -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 DIV_use, 1 +@CHECK: .eabi_attribute 44, 1 +@CHECK-OBJ: Tag: 44 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: DIV_use Index: test/tools/llvm-readobj/ARM/DIV_use2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/DIV_use2.ll @@ -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 DIV_use, 2 +@CHECK: .eabi_attribute 44, 2 +@CHECK-OBJ: Tag: 44 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: DIV_use Index: test/tools/llvm-readobj/ARM/FP_HP_extension0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_HP_extension0.ll @@ -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 FP_HP_extension, 0 +@CHECK: .eabi_attribute 36, 0 +@CHECK-OBJ: Tag: 36 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: FP_HP_extension Index: test/tools/llvm-readobj/ARM/FP_HP_extension1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_HP_extension1.ll @@ -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 FP_HP_extension, 1 +@CHECK: .eabi_attribute 36, 1 +@CHECK-OBJ: Tag: 36 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: FP_HP_extension Index: test/tools/llvm-readobj/ARM/FP_arch0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch0.ll @@ -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 FP_arch, 0 +@CHECK: .eabi_attribute 10, 0 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch1.ll @@ -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 FP_arch, 1 +@CHECK: .eabi_attribute 10, 1 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch2.ll @@ -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 FP_arch, 2 +@CHECK: .eabi_attribute 10, 2 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch3.ll @@ -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 FP_arch, 3 +@CHECK: .eabi_attribute 10, 3 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch4.ll @@ -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 FP_arch, 4 +@CHECK: .eabi_attribute 10, 4 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch5.ll @@ -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 FP_arch, 5 +@CHECK: .eabi_attribute 10, 5 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch6.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch6.ll @@ -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 FP_arch, 6 +@CHECK: .eabi_attribute 10, 6 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 6 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch7.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch7.ll @@ -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 FP_arch, 7 +@CHECK: .eabi_attribute 10, 7 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 7 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/FP_arch8.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/FP_arch8.ll @@ -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 FP_arch, 8 +@CHECK: .eabi_attribute 10, 8 +@CHECK-OBJ: Tag: 10 +@CHECK-OBJ-NEXT: Value: 8 +@CHECK-OBJ-NEXT: TagName: FP_arch Index: test/tools/llvm-readobj/ARM/MPextension_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/MPextension_use0.ll @@ -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 MPextension_use, 0 +@CHECK: .eabi_attribute 42, 0 +@CHECK-OBJ: Tag: 42 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: MPextension_use Index: test/tools/llvm-readobj/ARM/MPextension_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/MPextension_use1.ll @@ -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 MPextension_use, 1 +@CHECK: .eabi_attribute 42, 1 +@CHECK-OBJ: Tag: 42 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: MPextension_use Index: test/tools/llvm-readobj/ARM/PCS_config0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config0.ll @@ -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 PCS_config, 0 +@CHECK: .eabi_attribute 13, 0 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/PCS_config1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config1.ll @@ -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 PCS_config, 1 +@CHECK: .eabi_attribute 13, 1 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/PCS_config2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config2.ll @@ -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 PCS_config, 2 +@CHECK: .eabi_attribute 13, 2 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/PCS_config3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config3.ll @@ -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 PCS_config, 3 +@CHECK: .eabi_attribute 13, 3 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/PCS_config4.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config4.ll @@ -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 PCS_config, 4 +@CHECK: .eabi_attribute 13, 4 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 4 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/PCS_config5.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config5.ll @@ -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 PCS_config, 5 +@CHECK: .eabi_attribute 13, 5 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 5 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/PCS_config6.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config6.ll @@ -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 PCS_config, 6 +@CHECK: .eabi_attribute 13, 6 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 6 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/PCS_config7.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/PCS_config7.ll @@ -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 PCS_config, 7 +@CHECK: .eabi_attribute 13, 7 +@CHECK-OBJ: Tag: 13 +@CHECK-OBJ-NEXT: Value: 7 +@CHECK-OBJ-NEXT: TagName: PCS_config Index: test/tools/llvm-readobj/ARM/THUMB_ISA_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/THUMB_ISA_use0.ll @@ -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 THUMB_ISA_use, 0 +@CHECK: .eabi_attribute 9, 0 +@CHECK-OBJ: Tag: 9 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: THUMB_ISA_use Index: test/tools/llvm-readobj/ARM/THUMB_ISA_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/THUMB_ISA_use1.ll @@ -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 THUMB_ISA_use, 1 +@CHECK: .eabi_attribute 9, 1 +@CHECK-OBJ: Tag: 9 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: THUMB_ISA_use Index: test/tools/llvm-readobj/ARM/THUMB_ISA_use2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/THUMB_ISA_use2.ll @@ -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 THUMB_ISA_use, 2 +@CHECK: .eabi_attribute 9, 2 +@CHECK-OBJ: Tag: 9 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: THUMB_ISA_use Index: test/tools/llvm-readobj/ARM/Virtualization_use0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Virtualization_use0.ll @@ -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 Virtualization_use, 0 +@CHECK: .eabi_attribute 68, 0 +@CHECK-OBJ: Tag: 68 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: Virtualization_use Index: test/tools/llvm-readobj/ARM/Virtualization_use1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Virtualization_use1.ll @@ -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 Virtualization_use, 1 +@CHECK: .eabi_attribute 68, 1 +@CHECK-OBJ: Tag: 68 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: Virtualization_use Index: test/tools/llvm-readobj/ARM/Virtualization_use2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Virtualization_use2.ll @@ -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 Virtualization_use, 2 +@CHECK: .eabi_attribute 68, 2 +@CHECK-OBJ: Tag: 68 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: Virtualization_use Index: test/tools/llvm-readobj/ARM/Virtualization_use3.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/Virtualization_use3.ll @@ -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 Virtualization_use, 3 +@CHECK: .eabi_attribute 68, 3 +@CHECK-OBJ: Tag: 68 +@CHECK-OBJ-NEXT: Value: 3 +@CHECK-OBJ-NEXT: TagName: Virtualization_use Index: test/tools/llvm-readobj/ARM/WMMX_arch0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/WMMX_arch0.ll @@ -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 WMMX_arch, 0 +@CHECK: .eabi_attribute 11, 0 +@CHECK-OBJ: Tag: 11 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: WMMX_arch Index: test/tools/llvm-readobj/ARM/WMMX_arch1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/WMMX_arch1.ll @@ -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 WMMX_arch, 1 +@CHECK: .eabi_attribute 11, 1 +@CHECK-OBJ: Tag: 11 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: WMMX_arch Index: test/tools/llvm-readobj/ARM/WMMX_arch2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/WMMX_arch2.ll @@ -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 WMMX_arch, 2 +@CHECK: .eabi_attribute 11, 2 +@CHECK-OBJ: Tag: 11 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: WMMX_arch Index: test/tools/llvm-readobj/ARM/attributes.s =================================================================== --- test/tools/llvm-readobj/ARM/attributes.s +++ /dev/null @@ -1,287 +0,0 @@ -@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \ -@ RUN: | llvm-readobj -arm-attributes - | FileCheck %s - - .syntax unified - - .cpu cortex-a8 - .fpu neon - - .eabi_attribute Tag_CPU_raw_name, "Cortex-A9" - .eabi_attribute Tag_CPU_name, "cortex-a9" - .eabi_attribute Tag_CPU_arch, 10 - .eabi_attribute Tag_CPU_arch_profile, 'A' - .eabi_attribute Tag_ARM_ISA_use, 0 - .eabi_attribute Tag_THUMB_ISA_use, 2 - .eabi_attribute Tag_FP_arch, 3 - .eabi_attribute Tag_WMMX_arch, 0 - .eabi_attribute Tag_Advanced_SIMD_arch, 1 - .eabi_attribute Tag_PCS_config, 2 - .eabi_attribute Tag_ABI_PCS_R9_use, 0 - .eabi_attribute Tag_ABI_PCS_RW_data, 0 - .eabi_attribute Tag_ABI_PCS_RO_data, 0 - .eabi_attribute Tag_ABI_PCS_GOT_use, 0 - .eabi_attribute Tag_ABI_PCS_wchar_t, 4 - .eabi_attribute Tag_ABI_FP_rounding, 1 - .eabi_attribute Tag_ABI_FP_denormal, 2 - .eabi_attribute Tag_ABI_FP_exceptions, 1 - .eabi_attribute Tag_ABI_FP_user_exceptions, 1 - .eabi_attribute Tag_ABI_FP_number_model, 3 - .eabi_attribute Tag_ABI_align_needed, 1 - .eabi_attribute Tag_ABI_align_preserved, 2 - .eabi_attribute Tag_ABI_enum_size, 3 - .eabi_attribute Tag_ABI_HardFP_use, 0 - .eabi_attribute Tag_ABI_VFP_args, 1 - .eabi_attribute Tag_ABI_WMMX_args, 0 - .eabi_attribute Tag_ABI_optimization_goals, 2 - .eabi_attribute Tag_ABI_FP_optimization_goals, 2 - .eabi_attribute Tag_compatibility, 1 - .eabi_attribute Tag_compatibility, 1, "aeabi" - .eabi_attribute Tag_CPU_unaligned_access, 0 - .eabi_attribute Tag_FP_HP_extension, 0 - .eabi_attribute Tag_ABI_FP_16bit_format, 0 - .eabi_attribute Tag_MPextension_use, 0 - .eabi_attribute Tag_DIV_use, 0 - .eabi_attribute Tag_nodefaults, 0 - .eabi_attribute Tag_also_compatible_with, "gnu" - .eabi_attribute Tag_T2EE_use, 0 - .eabi_attribute Tag_conformance, "2.09" - .eabi_attribute Tag_Virtualization_use, 0 - -@ CHECK: BuildAttributes { -@ CHECK: Section 1 { -@ CHECK: Tag: Tag_File (0x1) -@ CHECK: FileAttributes { -@ CHECK: Attribute { -@ CHECK: Tag: 4 -@ CHECK: TagName: CPU_raw_name -@ CHECK: Value: CORTEX-A9 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 5 -@ CHECK: TagName: CPU_name -@ CHECK: Value: CORTEX-A9 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 6 -@ CHECK: Value: 10 -@ CHECK: TagName: CPU_arch -@ CHECK: Description: ARM v7 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 7 -@ CHECK: Value: 65 -@ CHECK: TagName: CPU_arch_profile -@ CHECK: Description: Application -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 8 -@ CHECK: Value: 0 -@ CHECK: TagName: ARM_ISA_use -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 9 -@ CHECK: Value: 2 -@ CHECK: TagName: THUMB_ISA_use -@ CHECK: Description: Thumb-2 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 10 -@ CHECK: Value: 3 -@ CHECK: TagName: FP_arch -@ CHECK: Description: VFPv3 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 11 -@ CHECK: Value: 0 -@ CHECK: TagName: WMMX_arch -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 12 -@ CHECK: Value: 1 -@ CHECK: TagName: Advanced_SIMD_arch -@ CHECK: Description: NEONv1 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 13 -@ CHECK: Value: 2 -@ CHECK: TagName: PCS_config -@ CHECK: Description: Linux Application -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 14 -@ CHECK: Value: 0 -@ CHECK: TagName: ABI_PCS_R9_use -@ CHECK: Description: v6 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 15 -@ CHECK: Value: 0 -@ CHECK: TagName: ABI_PCS_RW_data -@ CHECK: Description: Absolute -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 16 -@ CHECK: Value: 0 -@ CHECK: TagName: ABI_PCS_RO_data -@ CHECK: Description: Absolute -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 17 -@ CHECK: Value: 0 -@ CHECK: TagName: ABI_PCS_GOT_use -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 18 -@ CHECK: Value: 4 -@ CHECK: TagName: ABI_PCS_wchar_t -@ CHECK: Description: 4-byte -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 19 -@ CHECK: Value: 1 -@ CHECK: TagName: ABI_FP_rounding -@ CHECK: Description: Runtime -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 20 -@ CHECK: Value: 2 -@ CHECK: TagName: ABI_FP_denormal -@ CHECK: Description: Sign Only -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 21 -@ CHECK: Value: 1 -@ CHECK: TagName: ABI_FP_exceptions -@ CHECK: Description: IEEE-754 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 22 -@ CHECK: Value: 1 -@ CHECK: TagName: ABI_FP_user_exceptions -@ CHECK: Description: IEEE-754 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 23 -@ CHECK: Value: 3 -@ CHECK: TagName: ABI_FP_number_model -@ CHECK: Description: IEEE-754 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 24 -@ CHECK: Value: 1 -@ CHECK: TagName: ABI_align_needed -@ CHECK: Description: 8-byte alignment -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 25 -@ CHECK: Value: 2 -@ CHECK: TagName: ABI_align_preserved -@ CHECK: Description: 8-byte data and code alignment -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 26 -@ CHECK: Value: 3 -@ CHECK: TagName: ABI_enum_size -@ CHECK: Description: External Int32 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 27 -@ CHECK: Value: 0 -@ CHECK: TagName: ABI_HardFP_use -@ CHECK: Description: Tag_FP_arch -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 28 -@ CHECK: Value: 1 -@ CHECK: TagName: ABI_VFP_args -@ CHECK: Description: AAPCS VFP -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 29 -@ CHECK: Value: 0 -@ CHECK: TagName: ABI_WMMX_args -@ CHECK: Description: AAPCS -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 30 -@ CHECK: Value: 2 -@ CHECK: TagName: ABI_optimization_goals -@ CHECK: Description: Aggressive Speed -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 31 -@ CHECK: Value: 2 -@ CHECK: TagName: ABI_FP_optimization_goals -@ CHECK: Description: Aggressive Speed -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 32 -@ CHECK: Value: 1, AEABI -@ CHECK: TagName: compatibility -@ CHECK: Description: AEABI Conformant -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 34 -@ CHECK: Value: 0 -@ CHECK: TagName: CPU_unaligned_access -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 36 -@ CHECK: Value: 0 -@ CHECK: TagName: FP_HP_extension -@ CHECK: Description: If Available -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 38 -@ CHECK: Value: 0 -@ CHECK: TagName: ABI_FP_16bit_format -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 42 -@ CHECK: Value: 0 -@ CHECK: TagName: MPextension_use -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 44 -@ CHECK: Value: 0 -@ CHECK: TagName: DIV_use -@ CHECK: Description: If Available -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 64 -@ CHECK: Value: 0 -@ CHECK: TagName: nodefaults -@ CHECK: Description: Unspecified Tags UNDEFINED -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 65 -@ CHECK: TagName: also_compatible_with -@ CHECK: Value: GNU -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 66 -@ CHECK: Value: 0 -@ CHECK: TagName: T2EE_use -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 67 -@ CHECK: TagName: conformance -@ CHECK: Value: 2.09 -@ CHECK: } -@ CHECK: Attribute { -@ CHECK: Tag: 68 -@ CHECK: Value: 0 -@ CHECK: TagName: Virtualization_use -@ CHECK: Description: Not Permitted -@ CHECK: } -@ CHECK: } -@ CHECK: } -@ CHECK: } - Index: test/tools/llvm-readobj/ARM/compatibility0.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility0.ll @@ -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 compatibility, 0 +@CHECK: .eabi_attribute 32, 0 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 0 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility1.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility1.ll @@ -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 compatibility, 1 +@CHECK: .eabi_attribute 32, 1 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 1 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility106.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility106.ll @@ -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 compatibility, 106 +@CHECK: .eabi_attribute 32, 106 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 106 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility178.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility178.ll @@ -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 compatibility, 178 +@CHECK: .eabi_attribute 32, 178 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 178 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility2.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility2.ll @@ -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 compatibility, 2 +@CHECK: .eabi_attribute 32, 2 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 2 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility216.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility216.ll @@ -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 compatibility, 216 +@CHECK: .eabi_attribute 32, 216 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 216 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility25.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility25.ll @@ -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 compatibility, 25 +@CHECK: .eabi_attribute 32, 25 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 25 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility33.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility33.ll @@ -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 compatibility, 33 +@CHECK: .eabi_attribute 32, 33 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 33 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility52.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility52.ll @@ -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 compatibility, 52 +@CHECK: .eabi_attribute 32, 52 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 52 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility55.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility55.ll @@ -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 compatibility, 55 +@CHECK: .eabi_attribute 32, 55 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 55 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility8.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility8.ll @@ -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 compatibility, 8 +@CHECK: .eabi_attribute 32, 8 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 8 +@CHECK-OBJ-NEXT: TagName: compatibility Index: test/tools/llvm-readobj/ARM/compatibility80.ll =================================================================== --- /dev/null +++ test/tools/llvm-readobj/ARM/compatibility80.ll @@ -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 compatibility, 80 +@CHECK: .eabi_attribute 32, 80 +@CHECK-OBJ: Tag: 32 +@CHECK-OBJ-NEXT: Value: 80 +@CHECK-OBJ-NEXT: TagName: compatibility