i386: Check red zone size in push peephole2
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 13 Oct 2017 10:04:59 +0000 (10:04 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 13 Oct 2017 10:04:59 +0000 (03:04 -0700)
commit2ecf9ac7060bc6b902f5bed252e4a39f59d6f30b
tree444926911f61aeb31e73e71e49de485d44dfbdfb
parent8649149a3cdf939cf5d74da35eae6eb4802f9cd8
i386: Check red zone size in push peephole2

Check red zone size, instead of if red zone is available, in push
peephole2s.

gcc/

PR target/82499
* config/i386/i386.h (ix86_red_zone_size): New.
* config/i386/i386.md (push peephole2s): Replace
"!ix86_using_red_zone ()" with "ix86_red_zone_size == 0".

gcc/testsuite/

PR target/82499
* gcc.target/i386/pr82499-1.c: New file.
* gcc.target/i386/pr82499-2.c: Likewise.
* gcc.target/i386/pr82499-3.c: Likewise.

From-SVN: r253718
gcc/ChangeLog
gcc/config/i386/i386.h
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr82499-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr82499-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr82499-3.c [new file with mode: 0644]