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, 8/8 (test cases)


> If we want __attribute__((mode(HF))) to work anyway, I suppose that means
> adding another target hook, and fixing handle_mode_attribute to use it
> instead of scalar_mode_supported_p.
>
> If the current behavior is deemed to be correct, I can add an ARM-specific
> test case to make sure __attribute__((mode(HF))) fails.

You can add a test case to make sure i passes, and XFAIL it.

Off the top of my head, I would think you can modify
scalar_mode_supported_p.  After all arithmetic in HFmode is supported
as much as arithmetic in QImode on most RISC targets -- via promotion.

Paolo


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