glasm: Review all GLASM insts to be aware of register aliasing

This commit is contained in:
ReinUsesLisp 2021-05-10 19:20:15 -03:00 committed by ameerj
parent 7273fcab95
commit 3e7dbc81f5
4 changed files with 51 additions and 20 deletions

View file

@ -43,7 +43,7 @@ void EmitSelectU64(EmitContext& ctx, IR::Inst& inst, ScalarS32 cond, Register tr
cond, ret, true_value);
} else {
ctx.Add("MOV.S.CC RC.x,{};"
"MOV.U64 {}.x(EQ.x),{};"
"MOV.U64 {}.x,{};"
"MOV.U64 {}.x(NE.x),{};",
cond, ret, false_value, ret, true_value);
}