https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93119

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> Created attachment 47663 [details]
> Patch which fixes the problem
> 
> So we need to accept P modes and not PTR modes for the aarch64_valid_symref.
> And then we need to also change the mode of the result to be always Pmode
> (DImode).
> And then we need to take the lower part of the result.
> 
> Oh also instead of checking if we are targetting ILP32, we need to check the
> type of imm and such.

I will submit this patch after a build/test but I made sure both testcases
don't fail any more.

Reply via email to