* tc-arm.c (aeabi_set_public_attributes): Correctly set

Tag_ARM_ISA_use and Tag_Thumb_ISA_use.

	* gas/arm/attr-any-armv4t.d: New test.
	* gas/arm/attr-any-armv4t.s: New file.
	* gas/arm/attr-any-thumbv6.d: New test.
	* gas/arm/attr-any-thumbv6.s: New file.
This commit is contained in:
Richard Earnshaw 2011-12-05 15:43:53 +00:00
parent f3bad4690f
commit ddd7f988d4
7 changed files with 48 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-12-05 Richard Earnshaw <rearnsha@arm.com>
* tc-arm.c (aeabi_set_public_attributes): Correctly set
Tag_ARM_ISA_use and Tag_Thumb_ISA_use.
2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* config/tc-arm.c (arm_cpu_option_table): Add name_len field.

View File

@ -23666,7 +23666,14 @@ aeabi_set_public_attributes (void)
ARM_MERGE_FEATURE_SETS (flags, arm_arch_used, thumb_arch_used);
ARM_MERGE_FEATURE_SETS (flags, flags, *mfpu_opt);
ARM_MERGE_FEATURE_SETS (flags, flags, selected_cpu);
/*Allow the user to override the reported architecture. */
if (ARM_CPU_HAS_FEATURE (arm_arch_used, arm_arch_any))
ARM_MERGE_FEATURE_SETS (flags, flags, arm_ext_v1);
if (ARM_CPU_HAS_FEATURE (thumb_arch_used, arm_arch_any))
ARM_MERGE_FEATURE_SETS (flags, flags, arm_ext_v4t);
/* Allow the user to override the reported architecture. */
if (object_arch)
{
ARM_CLEAR_FEATURE (flags, flags, arm_arch_any);

View File

@ -1,3 +1,10 @@
2011-12-05 Richard Earnshaw <rearnsha@arm.com>
* gas/arm/attr-any-armv4t.d: New test.
* gas/arm/attr-any-armv4t.s: New file.
* gas/arm/attr-any-thumbv6.d: New test.
* gas/arm/attr-any-thumbv6.s: New file.
2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gas/arm/cmdline-bad-arch.d: New test case.

View File

@ -0,0 +1,13 @@
# name: attributes for 'any' cpu v4t ARM insn
# source: attr-any-armv4t.s
# as:
# readelf: -A
# This test is only valid on EABI based ports.
# target: *-*-*eabi
Attribute Section: aeabi
File Attributes
Tag_CPU_arch: v4T
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_DIV_use: Not allowed

View File

@ -0,0 +1 @@
bx lr

View File

@ -0,0 +1,12 @@
# name: attributes for 'any' cpu v6 thumb insn
# source: attr-any-thumbv6.s
# as:
# readelf: -A
# This test is only valid on EABI based ports.
# target: *-*-*eabi
Attribute Section: aeabi
File Attributes
Tag_CPU_arch: v6
Tag_THUMB_ISA_use: Thumb-1
Tag_DIV_use: Not allowed

View File

@ -0,0 +1,2 @@
.thumb
cpy r0, r1