This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: fixunssfsi fix for h8300


Hi Jason,

> It seems to me that a function named, say, __foodi2 should never
> operate on anything other than DImode operands, and that all the
> Wtype stuff is ill-conceived.  Does anyone disagree?

I agree.  For example, consider

UWtype
__fixunssfSI (SFtype a)
{
  if (a >= - (SFtype) Wtype_MIN)
    return (Wtype) (a + Wtype_MIN) - Wtype_MIN;
  return (Wtype) a;
}

Is there anything wrong with s/Wtype/SItype/?  Or is the problem much
deeper than this?

Kazu Hirata


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]