From 72c42f90cfc817ab99815f44c02788ebc2bf7ffb Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 30 Sep 2020 21:17:37 -0700 Subject: 6908 - compiling all floating-point operations We don't yet support emulating these instructions in `bootstrap`. But generated binaries containing them run natively just fine. --- mu_instructions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mu_instructions') diff --git a/mu_instructions b/mu_instructions index fe11aaba..2013c764 100644 --- a/mu_instructions +++ b/mu_instructions @@ -336,7 +336,7 @@ var/xreg <- copy *var2/reg2 => "f3 0f 10/-> *" reg2 " " xreg "/x32" Comparisons must always start with a register: -compare var1/xreg1, var2/xreg2 => "0f 2f 3/mod " xreg2 "/xm32 " xreg1 "/x32" -compare var1/xreg1, var2 => "0f 2f 2/mod *(ebp+" var2.stack-offset ") " xreg1 "/x32" +compare var1/xreg1, var2/xreg2 => "0f 2f/compare 3/mod " xreg2 "/xm32 " xreg1 "/x32" +compare var1/xreg1, var2 => "0f 2f/compare 2/mod *(ebp+" var2.stack-offset ") " xreg1 "/x32" vim:ft=mu:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0