From: Artemiy Volkov Date: Sat, 30 May 2026 14:59:52 +0000 (+0000) Subject: testsuite: adjust tests for FIRSTP/LASTP SVE2 instructions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06a379c9775fa10c74b76a47f6433ee2e052bcf0;p=thirdparty%2Fgcc.git testsuite: adjust tests for FIRSTP/LASTP SVE2 instructions 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. --- diff --git a/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/firstp.c b/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/firstp.c index c61a308bc89..8c1a2b02a1d 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/firstp.c +++ b/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/firstp.c @@ -13,7 +13,7 @@ extern "C" { /* ** test1: -** mov x0, 0 +** mov w0, 0 ** ret */ uint64_t @@ -49,7 +49,7 @@ test3 () /* ** test4: -** mov x0, 15 +** mov w0, 15 ** ret */ uint64_t @@ -64,7 +64,7 @@ test4 () /* ** test5: -** mov x0, 0 +** mov w0, 0 ** ret */ uint64_t @@ -100,7 +100,7 @@ test7 () /* ** test8: -** mov x0, 7 +** mov w0, 7 ** ret */ uint64_t @@ -113,7 +113,7 @@ test8 () /* ** test9: -** mov x0, 0 +** mov w0, 0 ** ret */ uint64_t @@ -149,7 +149,7 @@ test11 () /* ** test12: -** mov x0, 3 +** mov w0, 3 ** ret */ uint64_t @@ -161,7 +161,7 @@ test12 () /* ** test13: -** mov x0, 0 +** mov w0, 0 ** ret */ uint64_t @@ -197,7 +197,7 @@ test15 () /* ** test16: -** mov x0, 1 +** mov w0, 1 ** ret */ uint64_t diff --git a/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/lastp.c b/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/lastp.c index 2dbb65d798d..95f874f7301 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/lastp.c +++ b/gcc/testsuite/gcc.target/aarch64/sve2/acle/general/lastp.c @@ -13,7 +13,7 @@ extern "C" { /* ** test1: -** mov x0, 31 +** mov w0, 31 ** ret */ uint64_t @@ -49,7 +49,7 @@ test3 () /* ** test4: -** mov x0, 31 +** mov w0, 31 ** ret */ uint64_t @@ -64,7 +64,7 @@ test4 () /* ** test5: -** mov x0, 15 +** mov w0, 15 ** ret */ uint64_t @@ -100,7 +100,7 @@ test7 () /* ** test8: -** mov x0, 15 +** mov w0, 15 ** ret */ uint64_t @@ -113,7 +113,7 @@ test8 () /* ** test9: -** mov x0, 7 +** mov w0, 7 ** ret */ uint64_t @@ -149,7 +149,7 @@ test11 () /* ** test12: -** mov x0, 7 +** mov w0, 7 ** ret */ uint64_t @@ -161,7 +161,7 @@ test12 () /* ** test13: -** mov x0, 3 +** mov w0, 3 ** ret */ uint64_t @@ -197,7 +197,7 @@ test15 () /* ** test16: -** mov x0, 3 +** mov w0, 3 ** ret */ uint64_t