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]: Simplify *call_value_rex64_ms_sysv and *call_rex64_ms_sysv.


Hello!

Attached patch avoids explicit clobbers in *call_value_rex64_ms_sysv
and *call_rex64_ms_sysv by introducing call_rex64_ms_sysv_operation
predicate. In addition to simplified pattern, the insn RTX pattern is
now constructed from the same array as it is generated from.

2013-04-18  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
    New array.
    (ix86_expand_call): Remove clobbered_registers array and use
    x86_64_ms_sysv_extra_clobbered_registers instead.
    * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
    Declare here.
    * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
    predicate.
    * config/i386/i386.md (*call_rex64_ms_sysv): Use
    call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
    (*call_value_rex64_ms_sysv): Ditto.

Tested on x86_64-pc-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]