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, ARM] Cleanup: Replace GET_CODE comparisons with predicates


Replace GET_CODE comparisons in ARM backend files e.g.
GET_CODE (X) == CONST_INT with predicates defined in rtl.h
of the form CONST_INT_P (X).
No regressions on qemu in arm-none-eabi configuration.

Ok for trunk?
 
2012-09-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
         * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
         LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
         * config/arm/arm.h: Use REG_P, MEM_P consistently.
         * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
         consistently.
         * config/arm/neon.md: Use REG_P consistently.
         * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P
consistently.
         * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
         * config/arm/vec-common.md: Use REG_P consistently.

Attachment: fix_GET_CODE_predicates.txt
Description: Text document


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