From 4a280280cd6c0d24c4719727b86ed86aef1d74f2 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 29 Nov 2020 08:43:00 -0800 Subject: 7296 - rough support for printing floats No rounding yet, and we have a blunt way to decide when to start truncating. --- mu_instructions | 1 + 1 file changed, 1 insertion(+) (limited to 'mu_instructions') diff --git a/mu_instructions b/mu_instructions index 7c3d8d6c..a5336070 100644 --- a/mu_instructions +++ b/mu_instructions @@ -130,6 +130,7 @@ compare var, n => "81 7/subop/compare *(ebp+" var.stack-offse compare *var/reg, n => "81 7/subop/compare *" reg " " n "/imm32" var/reg <- multiply var2 => "0f af/multiply *(ebp+" var2.stack-offset ") " reg "/r32" +var/reg <- multiply var2/reg2 => "0f af/multiply %" reg2 " " reg "/r32" var/reg <- multiply *var2/reg2 => "0f af/multiply *" reg2 " " reg "/r32" ## Floating-point operations -- cgit 1.4.1-2-gfad0