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]: Fix gcc.target/i386/pr71245-?.c scan asm failures


Hello!

Now that prerequisite middle-end patch is committed, we can match
atomic FILD/FIST and LDX/STX sequences with a peephole2 pattern that
also include (known) memory blockage instruction.

2017-10-14  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
    Use any_fp_register_operand as operand[3] predicate.  Simplify
    equality test for operands[2] and operands[4] memory location.
    (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
    (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): New.
    (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
    (FILD_ATOMIC/FIST_ATOMIC FP store peephole2): Use
    any_fp_register_operand as operand[1] predicate.  Simplify
    equality test for operands[0] and operands[3] memory location.
    (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
    (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): New.
    (LDX_ATOMIC/LDX_ATOMIC FP storepeephole2 with mem blockage): Ditto.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

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]