https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87370

--- Comment #8 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Oct  9 17:23:06 2018
New Revision: 264989

URL: https://gcc.gnu.org/viewcvs?rev=264989&root=gcc&view=rev
Log:
i386: Use TImode for BLKmode values in 2 integer registers

When passing and returning BLKmode values in 2 integer registers, use
1 TImode register instead of 2 DImode registers. Otherwise, V1TImode
may be used to move and store such BLKmode values, which prevent RTL
optimizations.

gcc/

        Backport from mainline
        PR target/87370
        * config/i386/i386.c (construct_container): Use TImode for
        BLKmode values in 2 integer registers.

gcc/testsuite/

        Backport from mainline
        PR target/87370
        * gcc.target/i386/pr87370.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.target/i386/pr87370.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/i386/i386.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to