https://gcc.gnu.org/g:d113356d4a2f7865a3018327ff9c39a7cee7f325

commit r17-6359-gd113356d4a2f7865a3018327ff9c39a7cee7f325
Author: Dominic P <[email protected]>
Date:   Fri Oct 9 17:49:51 2026 +0100

    aarch64: Allow zero to be moved into an SVE predicate tuple [PR121105]
    
    The VNx32BI and VNx64BI move pattern accepts a constant operand but has
    no alternative for one, so LRA cannot reload a zero predicate tuple.
    The next patch makes expand zero an empty svboolx2_t/svboolx4_t
    constructor with such a move.  Add a Dz alternative; the existing split
    then emits one pfalse per predicate.
    
    Bootstrapped and regression tested on x86_64-pc-linux-gnu.  On
    aarch64-linux-gnu (qemu), regression tested dg.exp, aarch64.exp and
    the SVE tests at SVE VL128, and the SVE tests at VL2048.  Tested
    together with the next patch and the PR123370 patch.
    
    Assisted-by: Claude Opus 5 (Anthropic)
    
            PR middle-end/121105
    
    gcc/ChangeLog:
    
            * config/aarch64/aarch64-sve.md (mov<mode>) <SVE_STRUCT_BI>: Add a
            Dz alternative.
    
    Signed-off-by: Dominic P <[email protected]>

Diff:
---
 gcc/config/aarch64/aarch64-sve.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config/aarch64/aarch64-sve.md 
b/gcc/config/aarch64/aarch64-sve.md
index d0b3612f340a..1468522e73f6 100644
--- a/gcc/config/aarch64/aarch64-sve.md
+++ b/gcc/config/aarch64/aarch64-sve.md
@@ -1111,6 +1111,7 @@
      [ Upa      , Upa ] #
      [ Upa      , m   ] #
      [ m        , Upa ] #
+     [ Upa      , Dz  ] #
   }
   "&& reload_completed"
   [(const_int 0)]

Reply via email to