lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ppc: Add optimization to generate endian-swapping load opcod


From: Paul Cercueil
Subject: Re: [PATCH] ppc: Add optimization to generate endian-swapping load opcodes
Date: Fri, 12 Aug 2022 14:26:28 +0200


[...]

Actually that case would be fine. It's for the case where the LABEL is between the ldr_ui and the bswapr_ui. I do check the previous opcode,
 because that's where the jit_flag_patch seems to be.

I see. The logic is just checking if the previous node is a label or an
epilog implicit patch.

Actually it looks like the detection code is broken. With the example code of my previous email, if I add a jit_label() between the jit_ldr_ui() and the jit_bswapr_ui(), it still converts to the LWBRX opcode and Lightning eventually fails an assert() in jit_address().

-Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]