This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Rationale for an old TRUNCATE patch
Adam Nemet <anemet@caviumnetworks.com> writes:
> Ian Lance Taylor writes:
>> I'm not entirely sure, but I don't think Jim said the opposite. He said
>> that the way truncate works is machine dependent. I said that the
>> output of truncate is machine independent. Since truncate is only
>> defined for fixed-point modes, I think both statements are true.
>
> OK but in that way every operation is machine dependent not just truncate.
Yes.
> BTW, why is being fixed-point relevant here?
Because truncating from DFmode to SFmode really is machine dependent,
since it depends on the floating point representation being used. We
use float_truncate for that.
Ian