[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211209093121.GC7077@alpha.franken.de>
Date: Thu, 9 Dec 2021 10:31:21 +0100
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: Nathan Chancellor <nathan@...nel.org>
Cc: Huacai Chen <chenhuacai@...nel.org>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Sergey Shtylyov <s.shtylyov@....ru>,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev,
Ryutaroh Matsumoto <ryutaroh@....e.titech.ac.jp>
Subject: Re: [PATCH v2] MIPS: Loongson64: Use three arguments for slti
On Wed, Dec 08, 2021 at 09:56:17AM -0700, Nathan Chancellor wrote:
> LLVM's integrated assembler does not support 'slti <reg>, <imm>':
>
> <instantiation>:16:12: error: invalid operand for instruction
> slti $12, (0x6300 | 0x0008)
> ^
> arch/mips/kernel/head.S:86:2: note: while in macro instantiation
> kernel_entry_setup # cpu specific setup
> ^
> <instantiation>:16:12: error: invalid operand for instruction
> slti $12, (0x6300 | 0x0008)
> ^
> arch/mips/kernel/head.S:150:2: note: while in macro instantiation
> smp_slave_setup
> ^
>
> To increase compatibility with LLVM's integrated assembler, use the full
> form of 'slti <reg>, <reg>, <imm>', which matches the rest of
> arch/mips/. This does not result in any change for GNU as.
>
> Link: https://github.com/ClangBuiltLinux/linux/issues/1526
> Reported-by: Ryutaroh Matsumoto <ryutaroh@....e.titech.ac.jp>
> Signed-off-by: Nathan Chancellor <nathan@...nel.org>
> ---
>
> v1 -> v2: https://lore.kernel.org/r/20211207170129.578089-1-nathan@kernel.org/
>
> * Fix typos in commit message ("stli" -> "slti") [Sergey]
>
> arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
Powered by blists - more mailing lists