]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Avoid stack realignment when copying data with SSE register
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Aug 2021 13:15:04 +0000 (06:15 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Aug 2021 19:51:12 +0000 (12:51 -0700)
commit09dba016db937e61be21ef1e9581065a9ed2847d
treea8ea2ca5fba5e4f336b0ecce83c42256917a005d
parent361da782a25031c6ae3967bf8c10a8119845255c
x86: Avoid stack realignment when copying data with SSE register

To avoid stack realignment, call ix86_gen_scratch_sse_rtx to get a
scratch SSE register to copy data with with SSE register from one
memory location to another.

gcc/

PR target/101772
* config/i386/i386-expand.c (ix86_expand_vector_move): Call
ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
data with SSE register from one memory location to another.

gcc/testsuite/

PR target/101772
* gcc.target/i386/eh_return-2.c: New test.
gcc/config/i386/i386-expand.c
gcc/testsuite/gcc.target/i386/eh_return-2.c [new file with mode: 0644]