diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2017-09-24 14:37:09 -0700 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2017-09-24 14:37:09 -0700 |
commit | 60ba7cd38dff1e64ffcfac04665e32caebcbe6fe (patch) | |
tree | 76217d8b67ea08f88b76beb8c62b38c2d7d8f795 /gcc/fortran/trans.c | |
parent | c6c74708b0cc313c90ab5bffc0c2eaa6062827cb (diff) | |
download | gcc-60ba7cd38dff1e64ffcfac04665e32caebcbe6fe.zip gcc-60ba7cd38dff1e64ffcfac04665e32caebcbe6fe.tar.gz gcc-60ba7cd38dff1e64ffcfac04665e32caebcbe6fe.tar.bz2 |
x32: Encode %esp as %rsp to avoid 0x67 prefix
Since the upper 32 bits of stack register are always zero for x32, we
can encode %esp as %rsp to avoid 0x67 prefix in address if there is no
index or base register.
gcc/
PR target/82267
* config/i386/i386.c (ix86_print_operand_address_as): Encode
%esp as %rsp to avoid 0x67 prefix if there is no index or base
register.
gcc/testsuite/
PR target/82267
* gcc.target/i386/pr82267.c: New test.
From-SVN: r253127
Diffstat (limited to 'gcc/fortran/trans.c')
0 files changed, 0 insertions, 0 deletions