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 PR/60909, ICE with -mrdrnd and __builtin_ia32_rdrand32_step


Hello!

Attached patch fixes PR 60909, where memory operand was used as a
target RTX of a CMOVE insn, leading to unrecognized insn. Similar
problem was found with rdseed insn, where memory operand was used as
an invalid target of a ZERO_EXTEND insn.

Attached patch fixes both occurences.

2014-04-21  Uros Bizjak  <ubizjak@gmail.com>

    PR target/60909
    * config/i386/i386.c (ix86_expand_builtin)
    <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
    register for target RTX.
    <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.

Testsuite/ChangeLog:

2014-04-21  Uros Bizjak  <ubizjak@gmail.com>

    PR target/60909
    * gcc.target/i386/pr60909-1.c: New test.
    * gcc.target/i386/pr60909-2.c: Ditto.

Patch was committed to mainline and will be committed to other release
branches after 4.9 is released.

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]