]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix recent rvv/base/spill testcase failures
authorJeff Law <jeffreyalaw@gmail.com>
Tue, 22 Nov 2022 23:12:45 +0000 (18:12 -0500)
committerJeff Law <jeffreyalaw@gmail.com>
Tue, 22 Nov 2022 23:12:45 +0000 (18:12 -0500)
commitca73d4c80ea06087d9dd22594e5670bb15e21066
tree351893a8857ff58a70c25557b2dc26f8e6eee83a
parente5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
Fix recent rvv/base/spill testcase failures

he core issue is we're expecting the frame to have a constant size, but it
doesn't.  So when using the to_constant method we abort.

The safest thing to do is to set no shrink-wrapping components when the
frame size is not fixed.  We might be able to do better later -- iff we
know the offset to the GPRs/FPRs is fixed and fits into the appropriate
number of bits.

Bootstrapped and regression tested (C-only) on riscv64-linux-gnu.  As
expected, it fixes a bucketload of failures in rvv/base/spill-*.c.

gcc/
* config/riscv/riscv.cc (riscv_get_separate_components): Do not
do shrink-wrapping for a frame with a variable size.
gcc/config/riscv/riscv.cc