diff options
Diffstat (limited to 'src/shader_recompiler/frontend')
3 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_minimum_maximum.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_minimum_maximum.cpp index 12c6aae3d..5303db612 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_minimum_maximum.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_minimum_maximum.cpp | |||
| @@ -23,7 +23,7 @@ void IMNMX(TranslatorVisitor& v, u64 insn, const IR::U32& op_b) { | |||
| 23 | throw NotImplementedException("IMNMX.MODE"); | 23 | throw NotImplementedException("IMNMX.MODE"); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | IR::U1 pred = v.ir.GetPred(imnmx.pred); | 26 | IR::U1 pred{v.ir.GetPred(imnmx.pred)}; |
| 27 | const IR::U32 op_a{v.X(imnmx.src_reg)}; | 27 | const IR::U32 op_a{v.X(imnmx.src_reg)}; |
| 28 | IR::U32 min; | 28 | IR::U32 min; |
| 29 | IR::U32 max; | 29 | IR::U32 max; |
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_right.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_right.cpp index a34ccb851..4025b1358 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_right.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_right.cpp | |||
| @@ -16,7 +16,7 @@ void SHR(TranslatorVisitor& v, u64 insn, const IR::U32& shift) { | |||
| 16 | BitField<39, 1, u64> is_wrapped; | 16 | BitField<39, 1, u64> is_wrapped; |
| 17 | BitField<40, 1, u64> brev; | 17 | BitField<40, 1, u64> brev; |
| 18 | BitField<43, 1, u64> xmode; | 18 | BitField<43, 1, u64> xmode; |
| 19 | BitField<48, 1, u64> is_arithmetic; | 19 | BitField<48, 1, u64> is_signed; |
| 20 | } const shr{insn}; | 20 | } const shr{insn}; |
| 21 | 21 | ||
| 22 | if (shr.xmode != 0) { | 22 | if (shr.xmode != 0) { |
| @@ -29,7 +29,7 @@ void SHR(TranslatorVisitor& v, u64 insn, const IR::U32& shift) { | |||
| 29 | } | 29 | } |
| 30 | IR::U32 result; | 30 | IR::U32 result; |
| 31 | const IR::U32 safe_shift = shr.is_wrapped == 0 ? shift : v.ir.BitwiseAnd(shift, v.ir.Imm32(31)); | 31 | const IR::U32 safe_shift = shr.is_wrapped == 0 ? shift : v.ir.BitwiseAnd(shift, v.ir.Imm32(31)); |
| 32 | if (shr.is_arithmetic == 1) { | 32 | if (shr.is_signed == 1) { |
| 33 | result = IR::U32{v.ir.ShiftRightArithmetic(base, safe_shift)}; | 33 | result = IR::U32{v.ir.ShiftRightArithmetic(base, safe_shift)}; |
| 34 | } else { | 34 | } else { |
| 35 | result = IR::U32{v.ir.ShiftRightLogical(base, safe_shift)}; | 35 | result = IR::U32{v.ir.ShiftRightLogical(base, safe_shift)}; |
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp index 25fc6b437..93baa75a9 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/select_source_with_predicate.cpp | |||
| @@ -13,13 +13,13 @@ void SEL(TranslatorVisitor& v, u64 insn, const IR::U32& src) { | |||
| 13 | union { | 13 | union { |
| 14 | u64 raw; | 14 | u64 raw; |
| 15 | BitField<0, 8, IR::Reg> dest_reg; | 15 | BitField<0, 8, IR::Reg> dest_reg; |
| 16 | BitField<8, 8, IR::Reg> op_a; | 16 | BitField<8, 8, IR::Reg> src_reg; |
| 17 | BitField<39, 3, IR::Pred> pred; | 17 | BitField<39, 3, IR::Pred> pred; |
| 18 | BitField<42, 1, u64> neg_pred; | 18 | BitField<42, 1, u64> neg_pred; |
| 19 | } const sel{insn}; | 19 | } const sel{insn}; |
| 20 | 20 | ||
| 21 | const IR::U1 pred = v.ir.GetPred(sel.pred); | 21 | const IR::U1 pred = v.ir.GetPred(sel.pred); |
| 22 | IR::U32 op_a{v.X(sel.op_a)}; | 22 | IR::U32 op_a{v.X(sel.src_reg)}; |
| 23 | IR::U32 op_b{src}; | 23 | IR::U32 op_b{src}; |
| 24 | if (sel.neg_pred != 0) { | 24 | if (sel.neg_pred != 0) { |
| 25 | std::swap(op_a, op_b); | 25 | std::swap(op_a, op_b); |