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 PR44578, GCC generates MMX instructions but fails to generate "emms"


Hello!

Attached patch fixes PR44578, where MMX register was allocated for
zero_extendsidi2 RTX. The patch adds "!" to the interfering
alternative, so RA won't choose alternative involving MMX register
unless absolute necessary.

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

    PR target/44578
    * config/i386/i386.md (*zero_extendisid2): Add "!" to m->?*y
    alternative.

testsuite/ChangeLog:

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

    PR target/44578
    * gcc.target/i386/pr44578.c: New test.

Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu
{,-m32} and was committed to mainline SVN.

The patch will be backported to 4.7 and 4.8 branches.

Uros.

Attachment: r.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]