[Patch]Extend GAS arm_feature_set struct to provide more available bits

Terry Guo terry.guo@arm.com
Thu Mar 5 10:03:00 GMT 2015


Hi there,

Currently all 32 bits in core filed of struct arm_feature_set are occupied
to represent various features. This patch intends to extend the current
struct to provide more available bits for future use. Consequently all
feature comparison/assignment operations are now replaced with macro. Tested
with Binutils and GCC regression tests, no regression. Is it OK?

BR,
Terry

include/opcode/ChangeLog:
2015-03-05  Terry Guo  <terry.guo@arm.com>

    * arm.h (arm_feature_set): Redefined to provide more available bits.
    (ARM_ANY): Updated to follow above new definition.
    (ARM_CPU_HAS_FEATURE): Likewise.
    (ARM_CPU_IS_ANY): Likewise.
    (ARM_MERGE_FEATURE_SETS): Likewise.
    (ARM_CLEAR_FEATURE): Likewise.
    (ARM_FEATURE): Likewise.
    (ARM_FEATURE_COPY): New macro.
    (ARM_FEATURE_EQUAL): Likewise.
    (ARM_FEATURE_ZERO): Likewise.
    (ARM_FEATURE_CORE_EQUAL): Likewise.
    (ARM_FEATURE_LOW): Likewise.

gas/ChangeLog:

2015-03-05  Terry Guo  <terry.guo@arm.com>

    * config/tc-arm.c (no_cpu_selected): Use new macro to compare features.
    (parse_psr): Likewise.
    (do_t_mrs): Likewise.
    (do_t_msr): Likewise.
    
    
opcodes/ChangeLog:

2015-03-05  Terry Guo  <terry.guo@arm.com>

    * arm-dis.c (opcode32): Updated to use new arm feature struct.
    (opcode16): Likewise.
    (coprocessor_opcodes): Replace bit with feature struct.
    (neon_opcodes): Likewise.
    (arm_opcodes): Likewise.
    (thumb_opcodes): Likewise.
    (thumb32_opcodes): Likewise.
    (print_insn_coprocessor): Likewise.
    (print_insn_arm): Likewise.
    (select_arm_features): Follow new feature struct.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: extend-gas-feature-struct-v7.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20150305/0fe3acf8/attachment.txt>


More information about the Binutils mailing list