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

@ -39,6 +39,10 @@ Value RegAlloc::Consume(const IR::Value& value) {
ret.type = Type::F32;
ret.imm_f32 = value.F32();
break;
case IR::Type::U64:
ret.type = Type::U64;
ret.imm_u64 = value.U64();
break;
case IR::Type::F64:
ret.type = Type::F64;
ret.imm_f64 = value.F64();