This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386]: Introduce LEGACY_INT_REG_P predicate


Hello!

The attached patch introduces LEGACY_INT_REG_P predicate to simplify
print_reg function.

2015-04-14  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.h (LEGACY_INT_REG_P): New define.
    (LEGACY_INT_REGNO_P): Ditto.
    (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
    (ANY_MASK_REG_P): Remove.
    (BND_REG_P): Rename from ANY_BND_REG_P.
    * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
    legacy integer registers.  Do not handle MMX_REG_P in a special way.
    Merge 64byte and 32byte SSE handling.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}  and
committed to mainline SVN.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]