]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: kernel: Remove $0 clobber from `mult_sh_align_mod'
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 28 Mar 2026 14:29:10 +0000 (14:29 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 6 Apr 2026 12:01:59 +0000 (14:01 +0200)
Remove rubbish $0 clobber added to inline asm within `mult_sh_align_mod'
with the removal of support for GCC versions below 3.4 made with commit
57810ecb581a ("MIPS: Remove GCC_IMM_ASM & GCC_REG_ACCUM macros").

Previously a macro was used that, depending on GCC version, expanded to
either `accum' or $0.  Since the latter choice was only a placeholder to
keep the syntax consistent and the register referred is hardwired, there
is no point in having it here as it has no effect on code generation.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/r4k-bugs64.c

index 1e300330078ddb90ce79ccbe60c047355fc724cc..83970ac7e901b486cdd91138fcb7d12e845537a3 100644 (file)
@@ -91,7 +91,7 @@ void mult_sh_align_mod(long *v1, long *v2, long *w,
                ".set   pop"
                : "=&r" (lv1), "=r" (lw)
                : "r" (m1), "r" (m2), "r" (s), "I" (0)
-               : "hi", "lo", "$0");
+               : "hi", "lo");
        /* We have to use single integers for m1 and m2 and a double
         * one for p to be sure the mulsidi3 gcc's RTL multiplication
         * instruction has the workaround applied.  Older versions of