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]
Other format: [Raw text]

Re: [PATCH] ARM half-precision floating point, 3/8 (target hooks)


> It may fix problems, but I think we should move away from using this hook 
> in the front ends at all.  Variation between the types used in language 
> terms and the final ABI should be handled at some point after the front 
> ends have finished; maybe a lowering stage carried out on GIMPLE, but if 
> the language allows arguments and return values of a given type I think 
> the GIMPLE coming out of the front end should represent that they are of 
> that type.

Yes, I agree, but the libcalls are generated when we go to RTL, so the
solution I proposed would still hold if ABI handling was done on GIMPLE.

> Note that in AAPCS the conversion from half-precision to 
> single-precision is part of the language-independent argument-passing 
> rules, not part of how C language types are mapped to language-independent 
> types.

Yes, I suspected that.

Paolo


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