rv64: Generate VT_CMP output from float comparison

This commit is contained in:
Aleksi Hannula 2025-11-30 19:25:40 +02:00
parent b4569233cb
commit 0fcd46f364
No known key found for this signature in database

View File

@ -1229,6 +1229,10 @@ ST_FUNC void gen_opf(int op)
ER(0x53, op, rd, rs1, rs2, dbl | 0x50); // fcmp.[sd] RD, RS1, RS2 (op == eq/lt/le)
if (invert)
EI(0x13, 4, rd, rd, 1); // xori RD, 1
/* generate VT_CMP output */
vset_VT_CMP(TOK_NE);
vtop->cmp_r = rd | (0 << 8);
break;
case TOK_NE:
invert = 1;