Make inc() flush subnormals to zero when DAZ is enabled
Make inc() flush subnormals to zero when DAZ is enabled

Previously the smallest negative normalized floating-point value would
become a negative subnormal when calling inc() on it, regardless of
whether denormals-are-zero is enabled. Calling inc() again on that
result would then produce the smallest positive normalized value.
This change instead flushes the subnormal to zero if DAZ is enabled.

This is useful for when we're iterating over a range and want to know
whether the iterator is an integer. A single-precision subnormal would
compare equal to zero, but when cast to a double would not longer be
subnormal and thus produce a result different from when zero is used as
input.

Note that this change entangles DAZ and FTZ, in the sense that FTZ
behavior is achieved when DAZ is enabled. Thus we expect either both to
be enabled, or neither.

Bug: b/169904252
Change-Id: I1204466cd1793cb9e3011c3549f672faf25d9ddc
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/63168
Kokoro-Result: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Reviewed-by: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>

google/swiftshader,google/swiftshader,google/swiftshader