glasm: Add conversion instructions to GLASM

This commit is contained in:
ReinUsesLisp 2021-05-09 22:43:29 -03:00 committed by ameerj
parent 7703d65f23
commit ad61b47f80
9 changed files with 351 additions and 282 deletions

View file

@ -59,6 +59,9 @@ struct RegWrapper {
case Type::F32:
ctx.Add("MOV.F {}.x,{};", reg, value.imm_f32);
break;
case Type::U64:
ctx.Add("MOV.U64 {}.x,{};", reg, value.imm_u64);
break;
case Type::F64:
ctx.Add("MOV.F64 {}.x,{};", reg, value.imm_f64);
break;