diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-27 20:50:36 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:53 +0100 |
commit | 2d6c064e66bac4cb871aa26a12066441a8852008 (patch) | |
tree | 52baf7c971830bbe9cb5c8631235f1ebcda95d30 /src/video_core/shader/decode/shift.cpp | |
parent | shader_ir: Remove composite primitives and use temporals instead (diff) | |
download | yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.gz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.bz2 yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.lz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.xz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.zst yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/decode/shift.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/video_core/shader/decode/shift.cpp b/src/video_core/shader/decode/shift.cpp index 3ba039d21..e8ffdb818 100644 --- a/src/video_core/shader/decode/shift.cpp +++ b/src/video_core/shader/decode/shift.cpp @@ -31,22 +31,20 @@ u32 ShaderIR::DecodeShift(BasicBlock& bb, u32 pc) { case OpCode::Id::SHR_C: case OpCode::Id::SHR_R: case OpCode::Id::SHR_IMM: { - UNIMPLEMENTED_IF_MSG(instr.generates_cc, - "Condition codes generation in SHR is not implemented"); - const Node value = SignedOperation(OperationCode::IArithmeticShiftRight, instr.shift.is_signed, PRECISE, op_a, op_b); + SetInternalFlagsFromInteger(bb, value, instr.generates_cc); SetRegister(bb, instr.gpr0, value); break; } case OpCode::Id::SHL_C: case OpCode::Id::SHL_R: - case OpCode::Id::SHL_IMM: - UNIMPLEMENTED_IF_MSG(instr.generates_cc, - "Condition codes generation in SHL is not implemented"); - SetRegister(bb, instr.gpr0, - Operation(OperationCode::ILogicalShiftLeft, PRECISE, op_a, op_b)); + case OpCode::Id::SHL_IMM: { + const Node value = Operation(OperationCode::ILogicalShiftLeft, PRECISE, op_a, op_b); + SetInternalFlagsFromInteger(bb, value, instr.generates_cc); + SetRegister(bb, instr.gpr0, value); break; + } default: UNIMPLEMENTED_MSG("Unhandled shift instruction: {}", opcode->get().GetName()); } |