diff options
| author | 2018-12-21 19:11:18 -0300 | |
|---|---|---|
| committer | 2019-01-15 17:54:52 -0300 | |
| commit | af5c6e4ccb0cedc764fff0a62b46cd969c21b006 (patch) | |
| tree | 13f075e1a7adcb9c621e5fd28945125779419910 /src | |
| parent | shader_decode: Fixup clang-format (diff) | |
| download | yuzu-af5c6e4ccb0cedc764fff0a62b46cd969c21b006.tar.gz yuzu-af5c6e4ccb0cedc764fff0a62b46cd969c21b006.tar.xz yuzu-af5c6e4ccb0cedc764fff0a62b46cd969c21b006.zip | |
shader_decode: Implement IADD32I
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/decode/arithmetic_integer_immediate.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer_immediate.cpp b/src/video_core/shader/decode/arithmetic_integer_immediate.cpp index 57d9f54f7..a158d345a 100644 --- a/src/video_core/shader/decode/arithmetic_integer_immediate.cpp +++ b/src/video_core/shader/decode/arithmetic_integer_immediate.cpp | |||
| @@ -24,6 +24,17 @@ u32 ShaderIR::DecodeArithmeticIntegerImmediate(BasicBlock& bb, u32 pc) { | |||
| 24 | Node op_b = Immediate(static_cast<s32>(instr.alu.imm20_32)); | 24 | Node op_b = Immediate(static_cast<s32>(instr.alu.imm20_32)); |
| 25 | 25 | ||
| 26 | switch (opcode->get().GetId()) { | 26 | switch (opcode->get().GetId()) { |
| 27 | case OpCode::Id::IADD32I: { | ||
| 28 | UNIMPLEMENTED_IF_MSG(instr.op_32.generates_cc, | ||
| 29 | "Condition codes generation in IADD32I is not implemented"); | ||
| 30 | UNIMPLEMENTED_IF_MSG(instr.iadd32i.saturate, "IADD32I saturation is not implemented"); | ||
| 31 | |||
| 32 | op_a = GetOperandAbsNegInteger(op_a, false, instr.iadd32i.negate_a, true); | ||
| 33 | |||
| 34 | const Node value = Operation(OperationCode::IAdd, PRECISE, op_a, op_b); | ||
| 35 | SetRegister(bb, instr.gpr0, value); | ||
| 36 | break; | ||
| 37 | } | ||
| 27 | case OpCode::Id::LOP32I: { | 38 | case OpCode::Id::LOP32I: { |
| 28 | UNIMPLEMENTED_IF_MSG(instr.op_32.generates_cc, | 39 | UNIMPLEMENTED_IF_MSG(instr.op_32.generates_cc, |
| 29 | "Condition codes generation in LOP32I is not implemented"); | 40 | "Condition codes generation in LOP32I is not implemented"); |