]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Make testcase apx-spill_to_egprs-1.c more robust
authorLehua Ding <lehua.ding@rivai.ai>
Tue, 14 Nov 2023 08:42:19 +0000 (16:42 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Tue, 14 Nov 2023 10:55:17 +0000 (18:55 +0800)
commite47e836f3138f89350e2fcd42ee1ec6741008bcb
tree2670b53957649016b3b77b56d3325c587b9dab89
parent426e92643285a081d2e32221268b2052d740aa35
x86: Make testcase apx-spill_to_egprs-1.c more robust

Hi,

This little patch adjust the assert in apx-spill_to_egprs-1.c testcase.
The -mapxf compilation option allows more registers to be used, which in
turn eliminates the need for local variables to be stored in stack memory.
Therefore, the assertion is changed to detects no memory loaded through the
%rsp register.

gcc/testsuite/ChangeLog:

* gcc.target/i386/apx-spill_to_egprs-1.c: Make sure that no local
variables are stored on the stack.
gcc/testsuite/gcc.target/i386/apx-spill_to_egprs-1.c