[PATCH 2/2] aarch64: Adjust predicate used for SVE2 SHA3 XAR rotate amount

Kyrylo Tkachov ktkachov@nvidia.com
Fri Jan 16 10:37:20 GMT 2026


Hi all,

While fixing the Advanced SIMD XAR patterns I looked at SVE2 and
it looks okay there but the rotate amount should use the
aarch64_simd_rshift_imm predicate rather than lshift_imm since the
instruction (unlike the Advanced SIMD version) takes values from
[1, bitwidth].

Bootstrapped and tested on aarch64-none-linux-gnu.
Will push as obvious together with the first patch.
Thanks,
Kyrill

Signed-off-by: Kyrylo Tkachov <ktachov@nvidia.com>

gcc/

        PR target/123584
        * config/aarch64/aarch64-sve2.md (@aarch64_sve2_xar<mode>): Use
        aarch64_simd_rshift_imm predicate for rotate amount.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-aarch64-Adjust-predicate-used-for-SVE2-SHA3-XAR-rota.patch
Type: application/octet-stream
Size: 1484 bytes
Desc: 0002-aarch64-Adjust-predicate-used-for-SVE2-SHA3-XAR-rota.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20260116/23f5b8f5/attachment-0001.obj>


More information about the Gcc-patches mailing list