diff --git a/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc b/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc index 616df2563d..8c3e7f1965 100644 --- a/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc +++ b/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc @@ -702,8 +702,7 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) { if (i->src1.value->IsConstant()) { v->set_zero(VEC128_TYPE); v->VectorConvertF2I(i->src1.value, - !!(i->flags & ARITHMETIC_UNSIGNED), - !!(i->flags & ARITHMETIC_SATURATE)); + !!(i->flags & ARITHMETIC_UNSIGNED)); i->Remove(); } break; @@ -711,7 +710,7 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) { if (i->src1.value->IsConstant()) { v->set_zero(VEC128_TYPE); v->VectorConvertI2F(i->src1.value, - !!(i->flags & ARITHMETIC_SATURATE)); + !!(i->flags & ARITHMETIC_UNSIGNED)); i->Remove(); } break; diff --git a/src/xenia/cpu/hir/value.cc b/src/xenia/cpu/hir/value.cc index 80d9a9e102..38cd292941 100644 --- a/src/xenia/cpu/hir/value.cc +++ b/src/xenia/cpu/hir/value.cc @@ -1090,7 +1090,7 @@ void Value::VectorConvertI2F(Value* other, bool is_unsigned) { } } -void Value::VectorConvertF2I(Value* other, bool is_unsigned, bool saturate) { +void Value::VectorConvertF2I(Value* other, bool is_unsigned) { assert_true(type == VEC128_TYPE); // FIXME(DrChat): This does not saturate! diff --git a/src/xenia/cpu/hir/value.h b/src/xenia/cpu/hir/value.h index f4d7a9f8b4..44e4807c46 100644 --- a/src/xenia/cpu/hir/value.h +++ b/src/xenia/cpu/hir/value.h @@ -527,7 +527,7 @@ class Value { void VectorCompareUGT(Value* other, TypeName type); void VectorCompareUGE(Value* other, TypeName type); void VectorConvertI2F(Value* other, bool is_unsigned); - void VectorConvertF2I(Value* other, bool is_unsigned, bool saturate); + void VectorConvertF2I(Value* other, bool is_unsigned); void VectorShl(Value* other, TypeName type); void VectorShr(Value* other, TypeName type); void VectorRol(Value* other, TypeName type);