https://gcc.gnu.org/g:06a379c9775fa10c74b76a47f6433ee2e052bcf0

commit r17-1047-g06a379c9775fa10c74b76a47f6433ee2e052bcf0
Author: Artemiy Volkov <[email protected]>
Date:   Sat May 30 14:59:52 2026 +0000

    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:
---
 .../gcc.target/aarch64/sve2/acle/general/firstp.c        | 16 ++++++++--------
 .../gcc.target/aarch64/sve2/acle/general/lastp.c         | 16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)

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 c61a308bc89e..8c1a2b02a1dd 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 2dbb65d798d5..95f874f73015 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

Reply via email to