1
0
mirror of synced 2026-02-21 07:05:05 +00:00

symfpu: Add alt2div

`altdiv` but without denormalization, because as it turns out HardFloat unpacks subnorms in the same way, so lets just support both styles.
This commit is contained in:
Krystine Sherwin
2026-02-20 15:49:38 +13:00
parent f39427f40a
commit 48cb1d10b1
2 changed files with 5 additions and 2 deletions

View File

@@ -453,6 +453,7 @@ struct SymFpuPass : public Pass {
|| op.compare("sub") == 0
|| op.compare("mul") == 0
|| op.compare("altdiv") == 0 // currently undocumented
|| op.compare("alt2div") == 0 // currently undocumented
|| op.compare("div") == 0)
inputs = 2;
else if (op.compare("muladd") == 0)
@@ -530,7 +531,9 @@ struct SymFpuPass : public Pass {
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);
return symfpu::falseDivide_flagged(format, rounding_mode, a, b, prop(true));
else if (op.compare("alt2div") == 0)
return symfpu::falseDivide_flagged(format, rounding_mode, a, b, prop(false));
else
log_abort();
};