]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[aarch64] [testsuite] tolerate alternate insn selection [PR121599]
authorAlexandre Oliva <oliva@adacore.com>
Sun, 26 Oct 2025 01:45:22 +0000 (22:45 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 26 Oct 2025 02:01:41 +0000 (23:01 -0300)
On gcc-14, instead of 'movi\td[0-9]*,#0', we select
'mov\tz[0-9]*\.b,#0', and the testcase fails.
As in pfalse* tests, tolerate the difference.

for  gcc/testsuite/ChangeLog

PR target/121599
* gcc.target/aarch64/sve2/pr121599.c: Tolerate alterate insn
selection.

(cherry picked from commit ba653cb0d26e004c10d20ebd9f009a0a823659b0)

gcc/testsuite/gcc.target/aarch64/sve2/pr121599.c

index 90c5ac97e4f895bc85d1a121292952b52ab48d75..da4b7aa602c3618471b38aece9e3545001315615 100644 (file)
@@ -7,7 +7,7 @@
 
 /*
 ** foo:
-**     movi    d([0-9]+), #0
+**     movi?   [vdz]([0-9]+)\.?b?, #0
 **     movprfx z0\.b, p0/z, z0\.b
 **     usqadd  z0\.b, p0/m, z0\.b, z\1\.b
 **     ret
@@ -19,7 +19,7 @@ svuint8_t foo (svbool_t pg, svuint8_t op1)
 
 /*
 ** bar:
-**     movi    d([0-9]+), #0
+**     movi?   [vdz]([0-9]+)\.?b?, #0
 **     movprfx z0\.b, p0/z, z0\.b
 **     suqadd  z0\.b, p0/m, z0\.b, z\1\.b
 **     ret