]> git.ipfire.org Git - thirdparty/gcc.git/commit
[APX PUSH2POP2] Adjust operand order for PUSH2POP2
authorHongyu Wang <hongyu.wang@intel.com>
Fri, 17 Nov 2023 07:30:16 +0000 (15:30 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Wed, 22 Nov 2023 07:35:57 +0000 (15:35 +0800)
commitbd17d00a4bdee34876cc97bdf9a1f2316e0a6790
tree80519ea6208197df49cd44bf400721969a2c6e05
parentd13e59b86c5cbeec6135ada3f6dc983289cac610
[APX PUSH2POP2] Adjust operand order for PUSH2POP2

The push2/pop2 operand order does not match the binutils implementation
for AT&T syntax that it will first push operands[2] then operands[1].
Correct it by reverse operand order for AT&T syntax.

gcc/ChangeLog:

* config/i386/i386.md (push2_di): Adjust operand order for AT&T
syntax.
(pop2_di): Likewise.
(push2p_di): Likewise.
(pop2p_di): Likewise.

gcc/testsuite/ChangeLog:

* gcc.target/i386/apx-push2pop2-1.c: Adjust output scan.
* gcc.target/i386/apx-push2pop2_force_drap-1.c: Likewise.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/apx-push2pop2-1.c
gcc/testsuite/gcc.target/i386/apx-push2pop2_force_drap-1.c