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: [RFA:] fix group-loads of VOIDmode constants, expr.c:emit_group_load_1


> Of course this matters only to >64bit (i.e. >registersize) values like
> TImode, alias __int128.  The problem here is that group-loading a
> constant for a function return-value doesn't work; it's passed to
> simplify_gen_subreg which horks on the VOIDmode constant.  Thankfully,
> the code below the context handles this case, twice the register-mode,
> just fine, so let's just gate the simplify_gen_subreg call with a test
> for a VOIDmode source.

IMO that's not as clear a cut as it seems.  simplify_gen_subreg is supposed to 
work on VOIDmode constants, at least to be callable on them, because there is 
the simplify_gen_subreg -> simplify_subreg -> simplify_immed_subreg path.

-- 
Eric Botcazou


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