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]: Add support of new __int128 type for targets having 128-bit integer scalar support


2010/4/8 Eric Botcazou <ebotcazou@adacore.com>:
>> This patch uses target-hook scalar_mode_supported_p to verify, if the
>> given mode for 128-bit is supported by target. There is no special
>> interaction with MAX_FIXED_MODE_SIZE necessary AFAICS. Which issue you
>> see here in detail?
>
> MAX_FIXED_MODE_SIZE is supposed to be the largest integer mode supported by
> the target and defaults to DImode. ?So the interaction seems obvious, for
> example is __int128 guaranteed to be rejected if MAX_FIXED_MODE_SIZE isn't
> TImode?
>
> --
> Eric Botcazou
>

Well, AFAICS it is guaranteed. See targhook.c for default
implementation of scalar_mode_supported_p
(default_scalar_mode_supported_p): Which rejects - for targets not
overriding it - modes > 2 * BITS_PER_WORD.

Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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