]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: adjust tests for FIRSTP/LASTP SVE2 instructions
authorArtemiy Volkov <artemiy.volkov@arm.com>
Sat, 30 May 2026 14:59:52 +0000 (14:59 +0000)
committerArtemiy Volkov <artemiy.volkov@arm.com>
Sat, 30 May 2026 17:34:19 +0000 (17:34 +0000)
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.

gcc/testsuite/gcc.target/aarch64/sve2/acle/general/firstp.c
gcc/testsuite/gcc.target/aarch64/sve2/acle/general/lastp.c

index c61a308bc89eb352cea89133f6b2586e05180e51..8c1a2b02a1ddb34df2eef247de751ba035487c1f 100644 (file)
@@ -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
index 2dbb65d798d5a1677e7e96c53053e763a8310379..95f874f73015094241781cc7bf737dd4b9655662 100644 (file)
@@ -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