mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 08:47:45 +00:00
Shader_IR: Implement FLO instruction.
This commit is contained in:
parent
cb07d60362
commit
6267529837
5 changed files with 35 additions and 0 deletions
|
@ -130,6 +130,24 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) {
|
|||
SetRegister(bb, instr.gpr0, value);
|
||||
break;
|
||||
}
|
||||
case OpCode::Id::FLO_R:
|
||||
case OpCode::Id::FLO_C:
|
||||
case OpCode::Id::FLO_IMM: {
|
||||
Node value;
|
||||
if (instr.flo.invert) {
|
||||
op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_b);
|
||||
}
|
||||
if (instr.flo.is_signed) {
|
||||
value = Operation(OperationCode::IBitMSB, NO_PRECISE, op_b);
|
||||
} else {
|
||||
value = Operation(OperationCode::UBitMSB, NO_PRECISE, op_b);
|
||||
}
|
||||
if (instr.flo.sh) {
|
||||
value = Operation(OperationCode::UBitwiseXor, NO_PRECISE, value, Immediate(31));
|
||||
}
|
||||
SetRegister(bb, instr.gpr0, value);
|
||||
break;
|
||||
}
|
||||
case OpCode::Id::SEL_C:
|
||||
case OpCode::Id::SEL_R:
|
||||
case OpCode::Id::SEL_IMM: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue