Skip to content

Commit

Permalink
Pass rounding mode from i->flags for OPCODE_CONVERT
Browse files Browse the repository at this point in the history
  • Loading branch information
DrChat committed Dec 2, 2015
1 parent 17d18f7 commit bc1e768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xenia/cpu/compiler/passes/constant_propagation_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) {
if (i->src1.value->IsConstant()) {
TypeName target_type = v->type;
v->set_from(i->src1.value);
v->Convert(target_type, ROUND_TO_NEAREST);
v->Convert(target_type, RoundMode(i->flags));
i->Remove();
}
break;
Expand Down

0 comments on commit bc1e768

Please sign in to comment.