about summary refs log tree commit diff stats
path: root/mu_instructions
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-30 21:17:37 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-30 21:17:37 -0700
commit72c42f90cfc817ab99815f44c02788ebc2bf7ffb (patch)
tree23c8286131422eea70680896d79db546e14ccd8a /mu_instructions
parent558bf57587dd3fbb0fb75b8c2cfa056c64c44400 (diff)
downloadmu-72c42f90cfc817ab99815f44c02788ebc2bf7ffb.tar.gz
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.
Diffstat (limited to 'mu_instructions')
-rw-r--r--mu_instructions4
1 files changed, 2 insertions, 2 deletions
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