]> git.ipfire.org Git - thirdparty/gcc.git/commit
or1k: Fix struct return test
authorStafford Horne <shorne@gmail.com>
Sat, 31 May 2025 05:54:58 +0000 (06:54 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 2 Jun 2025 10:05:06 +0000 (11:05 +0100)
commit02a6f9a0df149bbc06e3bbb20be4dde199225296
tree3e31a1c4cb0fcf1225e6c5eb076464ab12c42ce9
parent2588ef7423a135427c5d343461da092cbedbe194
or1k: Fix struct return test

In or1k structs are returned from functions using the memory address
passed in r3.  In the current version of GCC the struct stores changed
from r11 (the return value) to r3 the incoming memory address.  Both of
are valid.

Adjust the test to match what GCC is producing now.

gcc/testsuite/ChangeLog:

* gcc.target/or1k/return-2.c: Fix test.
gcc/testsuite/gcc.target/or1k/return-2.c