From 8d32a9aab9915d78e63d316fcb74fa1afa404798 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 30 Sep 2020 23:46:43 -0700 Subject: 6915 - a new family of Mu branch instructions The realization of commit 6916 means that we should be using jump-if-addr* after comparing floats. Which is super ugly. Let's create aliases to them called jump-if-float*. --- mu_instructions | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mu_instructions') diff --git a/mu_instructions b/mu_instructions index 2013c764..27fe295c 100644 --- a/mu_instructions +++ b/mu_instructions @@ -177,6 +177,12 @@ break-if-addr>= label => "0f 83/jump-if-addr>= " label ":break/disp3 loop-if-addr>= => "0f 83/jump-if-addr>= loop/disp32" loop-if-addr>= label => "0f 83/jump-if-addr>= " label ":loop/disp32" +Similar float variants like `break-if-loop<` are aliases for the corresponding +`addr` equivalents. The x86 instruction set stupidly has floating-point +operations only update a subset of flags. + +--- + In the following instructions types are provided for clarity even if they must be provided in an earlier 'var' declaration. -- cgit 1.4.1-2-gfad0