Pass rounding mode from i->flags for OPCODE_CONVERT
This commit is contained in:
parent
17d18f7154
commit
bc1e7684ca
|
@ -157,7 +157,7 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) {
|
||||||
if (i->src1.value->IsConstant()) {
|
if (i->src1.value->IsConstant()) {
|
||||||
TypeName target_type = v->type;
|
TypeName target_type = v->type;
|
||||||
v->set_from(i->src1.value);
|
v->set_from(i->src1.value);
|
||||||
v->Convert(target_type, ROUND_TO_NEAREST);
|
v->Convert(target_type, RoundMode(i->flags));
|
||||||
i->Remove();
|
i->Remove();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue