3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-04 01:15:16 +00:00

symfpu: Add altdiv

This commit is contained in:
Krystine Sherwin 2026-03-11 12:58:56 +13:00
parent 57e6baf287
commit 1312668092
No known key found for this signature in database
3 changed files with 5 additions and 1 deletions

View file

@ -452,6 +452,7 @@ struct SymFpuPass : public Pass {
else if (op.compare("add") == 0
|| op.compare("sub") == 0
|| op.compare("mul") == 0
|| op.compare("altdiv") == 0 // currently undocumented
|| op.compare("div") == 0)
inputs = 2;
else if (op.compare("muladd") == 0)
@ -528,6 +529,8 @@ struct SymFpuPass : public Pass {
return symfpu::sqrt_flagged(format, rounding_mode, a);
else if (op.compare("muladd") == 0)
return symfpu::fma_flagged(format, rounding_mode, a, b, c);
else if (op.compare("altdiv") == 0)
return symfpu::falseDivide_flagged(format, rounding_mode, a, b);
else
log_abort();
};