Hi,

On 27/08/26 2:19 AM, Vijay Shankar wrote:
> Changes from v2:
>         * Update tprel_ld_QI_signed to use gen_lowpart to correctly
>           obtain the low QImode part of the destination
> 
> Changes from v1:
>       * update tprel_ld_QI_signed to use define_insn_and_split
>       * renamed PR27479.c to pr27479.c and removed dead code
> 
> Reduce TLS variable access from 3 to 2 instructions by adding
> combine patterns that merge address calculation with load.
> 
> Before:
>     addis 9,13,x@tprel@ha
>     addi 9,9,x@tprel@l
>     lwz 3,0(9)
> 
> After:
>     addis 9,13,x@tprel@ha
>     lwz 3,x@tprel@l(9)
> 
> Bootstrapped and tested on powerpc64le-linux-gnu with no regressions.
> Bootstrapped and tested on powerpc64-linux-gnu with no regressions.
> 
> 2026-04-15  Vijay Shankar  <[email protected]>
> 
> gcc/ChangeLog:
>       PR target/27479
>       * config/rs6000/rs6000.md (*tprel_ld_<az>_<HSI:mode>): New pattern.
>       (*tprel_ld_QI_signed): likewise.
>       (*tprel_ld_QI): likewise.
>       (*tprel_ld_DI): likewise.
>       (*tprel_ld_<SFDF:mode>): likewise.

Remove the '*' prefix from the pattern names.

With this change, the patch is good to be upstreamed.

-Surya

Reply via email to