From ba85e16e5dec5c6dcfdf95d959f2695e379c9ecf Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sat, 28 Aug 2010 20:56:03 +0000 Subject: [PATCH] Fix SVM machine's conditional floating-point jumps. These want to use the float registers, not the word registers. --- src/microcode/svm1-interp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microcode/svm1-interp.c b/src/microcode/svm1-interp.c index d1aa86d06..6ce845408 100644 --- a/src/microcode/svm1-interp.c +++ b/src/microcode/svm1-interp.c @@ -686,14 +686,14 @@ DEFINE_INST (cjump_##pl##_##rl##_##rl##_pcr_##sl) \ { \ DECODE_SVM1_INST_CJUMP_##pu##_##ru##_##ru##_PCR_##su \ (source1, source2, offset); \ - CJ_PCR (CMP_##pu ((WREG_REF (source1)), (WREG_REF (source2)))); \ + CJ_PCR (CMP_##pu ((ru##EG_REF (source1)), (ru##EG_REF (source2)))); \ } #define DEFINE_CJ_2(pl, pu, rl, ru, z, sl, su) \ DEFINE_INST (cjump_##pl##_##rl##_pcr_##sl) \ { \ DECODE_SVM1_INST_CJUMP_##pu##_##ru##_PCR_##su (source, offset); \ - CJ_PCR (CMP_##pu ((WREG_REF (source)), z)); \ + CJ_PCR (CMP_##pu ((ru##EG_REF (source)), z)); \ } #define CJ_PCR(p) COND_OFFSET_PC (p, offset) -- 2.25.1