aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-08-03 17:08:55 +0200
committerAndrea Corallo2020-01-01 11:33:56 +0100
commitbebe5a9791f7db3f088e0c07b2fd68e1d21bb161 (patch)
tree28ca1049e1c34459e85a40caa832747b583716d2 /src/comp.c
parent79f7d40fa850806450621f2fa4c73974399bd7f9 (diff)
downloademacs-bebe5a9791f7db3f088e0c07b2fd68e1d21bb161.tar.gz
emacs-bebe5a9791f7db3f088e0c07b2fd68e1d21bb161.zip
add limple switch support
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/comp.c b/src/comp.c
index 6436a5db712..e4483ea4206 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -1128,11 +1128,12 @@ emit_limple_insn (Lisp_Object insn)
1128 else if (EQ (op, Qcond_jump)) 1128 else if (EQ (op, Qcond_jump))
1129 { 1129 {
1130 /* Conditional branch. */ 1130 /* Conditional branch. */
1131 gcc_jit_rvalue *test = emit_mvar_val (arg0); 1131 gcc_jit_rvalue *a = emit_mvar_val (arg0);
1132 gcc_jit_block *target1 = retrive_block (SECOND (args)); 1132 gcc_jit_rvalue *b = emit_mvar_val (SECOND (args));
1133 gcc_jit_block *target2 = retrive_block (THIRD (args)); 1133 gcc_jit_block *target1 = retrive_block (THIRD (args));
1134 gcc_jit_block *target2 = retrive_block (FORTH (args));
1134 1135
1135 emit_cond_jump (emit_NILP (test), target2, target1); 1136 emit_cond_jump (emit_EQ (a, b), target2, target1);
1136 } 1137 }
1137 else if (EQ (op, Qpush_handler)) 1138 else if (EQ (op, Qpush_handler))
1138 { 1139 {