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:
Submodule libs/symfpu updated: 04da5d2283...95b27d8f2f
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user