Skip to content

Commit 0fcd46f

Browse files
committed
rv64: Generate VT_CMP output from float comparison
1 parent b456923 commit 0fcd46f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

riscv64-gen.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,10 @@ ST_FUNC void gen_opf(int op)
12291229
ER(0x53, op, rd, rs1, rs2, dbl | 0x50); // fcmp.[sd] RD, RS1, RS2 (op == eq/lt/le)
12301230
if (invert)
12311231
EI(0x13, 4, rd, rd, 1); // xori RD, 1
1232+
1233+
/* generate VT_CMP output */
1234+
vset_VT_CMP(TOK_NE);
1235+
vtop->cmp_r = rd | (0 << 8);
12321236
break;
12331237
case TOK_NE:
12341238
invert = 1;

0 commit comments

Comments
 (0)