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]: Clean-up MPX patterns a bit


Hello!

Attached patch cleans MPX patterns a bit. Additionally, it moves  a
couple of checks out from the expander to the call site and uses a
couple of helper functions.

There are no functional changes in the patch.

2015-06-28  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
    operand 2 here.  Use copy_addr_to_reg to copy non-index
    register operand 2 to a temporary.
    (<mode>_stx): Ditto for operand 1.
    (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
    * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
    (ix86_store_bounds): Ditto.

Patch was tested on x86_64-linux-gnu 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]