History

rv64: Generate VT_CMP output from float comparison

Aleksi Hannula committed 11 months ago

Commit 0fcd46f1 parent b4569231 file · +4 −0Browse files

Unified · Split

riscv64-gen.c+4−0
@@ -1229,6 +1229,10 @@ ST_FUNC void gen_opf(int op) · 1228 unmodified lines
1229 ER(0x53, op, rd, rs1, rs2, dbl | 0x50); // fcmp.[sd] RD, RS1, RS2 (op == eq/lt/le)1229 ER(0x53, op, rd, rs1, rs2, dbl | 0x50); // fcmp.[sd] RD, RS1, RS2 (op == eq/lt/le)
1230 if (invert)1230 if (invert)
1231 EI(0x13, 4, rd, rd, 1); // xori RD, 11231 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);
1232 break;1236 break;
1233 case TOK_NE:1237 case TOK_NE:
1234 invert = 1;1238 invert = 1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t