]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Generalise aarch64/saturating_arithmetic*.c
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 29 Jul 2025 14:58:33 +0000 (15:58 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 29 Jul 2025 14:58:33 +0000 (15:58 +0100)
gcc.target/aarch64/saturating_arithmetic_{1,2}.c expect w0 and w1 to
be duplicated into vectors.  The tests expected the duplication of w1
to happen first, but the other order would be fine too.  A later
simplify-rtx.cc patch happens to change the order.

gcc/testsuite/
* gcc.target/aarch64/saturating_arithmetic_1.c: Allow w0 and w1
to be duplicated in either order.
* gcc.target/aarch64/saturating_arithmetic_2.c: Likewise.

gcc/testsuite/gcc.target/aarch64/saturating_arithmetic_1.c
gcc/testsuite/gcc.target/aarch64/saturating_arithmetic_2.c

index acd2e11f41d3c90565fbdde24d8df68695ea1657..8fc1569845b568a3d6a7f16f520b19cf1a8bfc90 100644 (file)
@@ -4,24 +4,24 @@
 
 /*
 ** uadd:
-**     dup     v([0-9]+).8b, w1
-**     dup     v([0-9]+).8b, w0
+**     dup     v([0-9]+).8b, w[01]
+**     dup     v([0-9]+).8b, w[01]
 **     uqadd   b([0-9]+), (?:b\2, b\1|b\1, b\2)
 **     umov    w0, v\3.b\[0\]
 **     ret
 */
 /*
 ** uadd2:
-**     dup     v([0-9]+).8b, w1
-**     dup     v([0-9]+).8b, w0
+**     dup     v([0-9]+).8b, w[01]
+**     dup     v([0-9]+).8b, w[01]
 **     uqadd   b([0-9]+), (?:b\2, b\1|b\1, b\2)
 **     umov    w0, v\3.b\[0\]
 **     ret
 */
 /*
 ** usub: { xfail *-*-* }
-**     dup     v([0-9]+).8b, w1
-**     dup     v([0-9]+).8b, w0
+**     dup     v([0-9]+).8b, w[01]
+**     dup     v([0-9]+).8b, w[01]
 **     uqsub   b([0-9]+), b\1, b\2
 **     umov    w0, v\3.b\[0\]
 **     ret
index 86c88f8447c34ae6064ef60e97296197ce95801a..dd0fefac63935d330e1a49c7109662f1d24417bc 100644 (file)
@@ -4,16 +4,16 @@
 
 /*
 ** uadd:
-**     dup     v([0-9]+).4h, w1
-**     dup     v([0-9]+).4h, w0
+**     dup     v([0-9]+).4h, w[01]
+**     dup     v([0-9]+).4h, w[01]
 **     uqadd   h([0-9]+), (?:h\2, h\1|h\1, h\2)
 **     umov    w0, v\3.h\[0\]
 **     ret
 */
 /*
 ** uadd2:
-**     dup     v([0-9]+).4h, w1
-**     dup     v([0-9]+).4h, w0
+**     dup     v([0-9]+).4h, w[01]
+**     dup     v([0-9]+).4h, w[01]
 **     uqadd   h([0-9]+), (?:h\2, h\1|h\1, h\2)
 **     umov    w0, v\3.h\[0\]
 **     ret