# Re: \[PATCH\] powerpc/dcr: Use cmplwi instead of 3-argument cmpli

- From: Michael Ellerman \<hidden\>
- Date: 2021-11-02 11:49:03 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/11/9524934
- Thread: https://ratatoskr.run/linuxppc-dev/2021/10/9524689/t.md

```text
On Thu, 14 Oct 2021 13:44:24 +1100, Michael Ellerman wrote:
> In dcr-low.S we use cmpli with three arguments, instead of four
> arguments as defined in the ISA:
> 
> 	cmpli	cr0,r3,1024
> 
> This appears to be a PPC440-ism, looking at the "PPC440x5 CPU Core
> User’s Manual" it shows cmpli having no L field, but implied to be 0 due
> to the core being 32-bit. It mentions that the ISA defines four
> arguments and recommends using cmplwi.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/dcr: Use cmplwi instead of 3-argument cmpli
      https://git.kernel.org/powerpc/c/fef071be57dc43679a32d5b0e6ee176d6f12e9f2

cheers
```
