On Mon, 2024-12-30 at 10:39 +0800, Guo Jie wrote: > + /* Make sure that imm is a positive integer power of > 2. */
Maybe we should also consider the case $imm = 2^k + 1$ as they can be implemented with sl[te] and bstrins.[wd]. But it can be done in another patch anyway. > + if (val > 0 && !(val & (val - 1))) > + can_be_optimized = true; -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University