mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-20 09:57:55 -05:00
gl_shader_decompiler: Implement POPC (#1203)
* Implement POPC * implement invert
This commit is contained in:
@ -1363,6 +1363,15 @@ private:
|
||||
"((" + op_a + " << " + shift + ") + " + op_b + ')', 1, 1);
|
||||
break;
|
||||
}
|
||||
case OpCode::Id::POPC_C:
|
||||
case OpCode::Id::POPC_R:
|
||||
case OpCode::Id::POPC_IMM: {
|
||||
if (instr.popc.invert) {
|
||||
op_b = "~(" + op_b + ')';
|
||||
}
|
||||
regs.SetRegisterToInteger(instr.gpr0, true, 0, "bitCount(" + op_b + ')', 1, 1);
|
||||
break;
|
||||
}
|
||||
case OpCode::Id::SEL_C:
|
||||
case OpCode::Id::SEL_R:
|
||||
case OpCode::Id::SEL_IMM: {
|
||||
|
Reference in New Issue
Block a user