summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-23 13:26:50 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-24 14:50:06 -0700
commit28e556981bb0304d695eb4dfc1b7232919e5cdd6 (patch)
tree3e585af1fbdf1d3ac7aa5ce1078598a5d42689d5 /libffi
parentc7c38fb150f8c6bbee3e010098f1dd88baa054e4 (diff)
downloadgcc-hjl/pr82267/gcc-7-branch.tar.gz
x32: Encode %esp as %rsp to avoid 0x67 prefixhjl/pr82267/gcc-7-branch
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. Back port from mainline r253127. gcc/ 2017-09-24 Uros Bizjak <ubizjak@gmail.com> 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/ 2017-09-24 H.J. Lu <hongjiu.lu@intel.com> PR target/82267 * gcc.target/i386/pr82267.c: New tests.
Diffstat (limited to 'libffi')
0 files changed, 0 insertions, 0 deletions