Looks like I didn't have Wilco's recent
r17-843-ge6c1179fd40d1c
when re-testing some parts of the SVE2.2 series, which led to a few
check-function-bodies mismatches discovered by the Linaro CI[0]. The fix
here is to adapt the tests by changing x0 to w0 in the expected
codegen whenever the constant value is unsigned in
aarch64/sve2/acle/general/{first,last}p.c.
Pushing to trunk as obvious.
[0] https://gcc.gnu.org/pipermail/gcc-regression/2026-May/083884.html
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/sve2/acle/general/firstp.c: Adjust testcases.
* gcc.target/aarch64/sve2/acle/general/lastp.c: Likewise.
/*
** test1:
-** mov x0, 0
+** mov w0, 0
** ret
*/
uint64_t
/*
** test4:
-** mov x0, 15
+** mov w0, 15
** ret
*/
uint64_t
/*
** test5:
-** mov x0, 0
+** mov w0, 0
** ret
*/
uint64_t
/*
** test8:
-** mov x0, 7
+** mov w0, 7
** ret
*/
uint64_t
/*
** test9:
-** mov x0, 0
+** mov w0, 0
** ret
*/
uint64_t
/*
** test12:
-** mov x0, 3
+** mov w0, 3
** ret
*/
uint64_t
/*
** test13:
-** mov x0, 0
+** mov w0, 0
** ret
*/
uint64_t
/*
** test16:
-** mov x0, 1
+** mov w0, 1
** ret
*/
uint64_t
/*
** test1:
-** mov x0, 31
+** mov w0, 31
** ret
*/
uint64_t
/*
** test4:
-** mov x0, 31
+** mov w0, 31
** ret
*/
uint64_t
/*
** test5:
-** mov x0, 15
+** mov w0, 15
** ret
*/
uint64_t
/*
** test8:
-** mov x0, 15
+** mov w0, 15
** ret
*/
uint64_t
/*
** test9:
-** mov x0, 7
+** mov w0, 7
** ret
*/
uint64_t
/*
** test12:
-** mov x0, 7
+** mov w0, 7
** ret
*/
uint64_t
/*
** test13:
-** mov x0, 3
+** mov w0, 3
** ret
*/
uint64_t
/*
** test16:
-** mov x0, 3
+** mov w0, 3
** ret
*/
uint64_t