summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/arithmetic_integer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer.cpp b/src/video_core/shader/decode/arithmetic_integer.cpp
index 2a3311cb8..addd7f533 100644
--- a/src/video_core/shader/decode/arithmetic_integer.cpp
+++ b/src/video_core/shader/decode/arithmetic_integer.cpp
@@ -40,12 +40,12 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) {
40 op_a = GetOperandAbsNegInteger(op_a, false, instr.alu_integer.negate_a, true); 40 op_a = GetOperandAbsNegInteger(op_a, false, instr.alu_integer.negate_a, true);
41 op_b = GetOperandAbsNegInteger(op_b, false, instr.alu_integer.negate_b, true); 41 op_b = GetOperandAbsNegInteger(op_b, false, instr.alu_integer.negate_b, true);
42 42
43 Node value = Operation(OperationCode::IAdd, op_a, op_b); 43 Node value = Operation(OperationCode::UAdd, op_a, op_b);
44 44
45 if (instr.iadd.x) { 45 if (instr.iadd.x) {
46 Node carry = GetInternalFlag(InternalFlag::Carry); 46 Node carry = GetInternalFlag(InternalFlag::Carry);
47 Node x = Operation(OperationCode::Select, std::move(carry), Immediate(1), Immediate(0)); 47 Node x = Operation(OperationCode::Select, std::move(carry), Immediate(1), Immediate(0));
48 value = Operation(OperationCode::IAdd, std::move(value), std::move(x)); 48 value = Operation(OperationCode::UAdd, std::move(value), std::move(x));
49 } 49 }
50 50
51 if (instr.generates_cc) { 51 if (instr.generates_cc) {