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

--- Comment #4 from Alexander Kleinsorge <aleks at physik dot tu-berlin.de> ---
(In reply to Andrew Pinski from comment #2)
> x86_64 target does not dojump table compression at all.
> But aarch64 and arm targets do:
> .L4:
>         .2byte  (.L103 - .Lrtx4) / 4
>         .2byte  (.L102 - .Lrtx4) / 4
>         .2byte  (.L101 - .Lrtx4) / 4
>         .2byte  (.L100 - .Lrtx4) / 4
>         .2byte  (.L99 - .Lrtx4) / 4
>         .2byte  (.L98 - .Lrtx4) / 4
>         .2byte  (.L97 - .Lrtx4) / 4
>         .2byte  (.L96 - .Lrtx4) / 4
>         .2byte  (.L95 - .Lrtx4) / 4
> 
> 
> Confirmed. Note the /4 can't be done for x86 but the rest I think can be
> done. The /4 can't be done because some instructions one byte in length on
> x86_64.

I think by inserting 1 byte NOPs should be possible to get jump-point-alignment
https://www.felixcloutier.com/x86/nop
So the other 1 byte ops could be filled up for alignment.

Reply via email to