[PATCH v3 3/3] powerpc/64s: feature: Work around inline asm issues

Segher Boessenkool segher at kernel.crashing.org
Mon Nov 23 17:34:32 AEDT 2020


On Mon, Nov 23, 2020 at 04:44:56PM +1100, Michael Ellerman wrote:
> If I hard code:
> 
> 	.org . - (1);
> 
> It fails as expected.
> 
> But if I hard code:
> 
> 	.org . - (1 > 0);
> 
> It builds?

"true" (as a result of a comparison) in as is -1, not 1.


Segher


More information about the Linuxppc-dev mailing list