]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ppc64le: Power 10 rawmemchr clobbers v20 (bug #33091)
authorSachin Monga <smonga@linux.ibm.com>
Sun, 26 Oct 2025 17:17:12 +0000 (12:17 -0500)
committerSachin Monga <smonga@linux.ibm.com>
Sun, 26 Oct 2025 17:19:53 +0000 (12:19 -0500)
Replace non-volatile(v20) by volatile(v17)
since v20 is not restored

Reviewed-by: Peter Bergner <bergner@tenstorrent.com>
sysdeps/powerpc/powerpc64/le/power10/strlen.S

index ec644d5bff06e8ad65a80503cb09ed1b4ac02eec..29a5a7d960a9f9aa4f461c615c33f63c8fa09beb 100644 (file)
@@ -31,7 +31,7 @@
 #  define FUNCNAME RAWMEMCHR
 # endif
 # define MCOUNT_NARGS 2
-# define VREG_ZERO v20
+# define VREG_ZERO v17
 # define OFF_START_LOOP 256
 # define RAWMEMCHR_SUBTRACT_VECTORS \
        vsububm   v4,v4,v18;        \