https://gcc.gnu.org/g:234da38a0e68a204a59562fcca2aa6d297bc21ed

commit r15-5459-g234da38a0e68a204a59562fcca2aa6d297bc21ed
Author: Andrew Stubbs <a...@baylibre.com>
Date:   Tue Nov 19 12:01:22 2024 +0000

    amdgcn: Fix build failure (PR117657)
    
    The last patch did the right thing to the wrong parameter, which caused a 
build
    failure in Newlib.  This patch fixes it.
    
    gcc/ChangeLog:
    
            PR target/117657
            * config/gcn/gcn-valu.md (mask_gather_load<mode><vnsi>): Fix bug in
            maskload else patch.

Diff:
---
 gcc/config/gcn/gcn-valu.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md
index ce7a68f0e2d3..f7ed0b825a16 100644
--- a/gcc/config/gcn/gcn-valu.md
+++ b/gcc/config/gcn/gcn-valu.md
@@ -4038,16 +4038,17 @@
     if (GET_MODE (addr) == <VnDI>mode)
       emit_insn (gen_gather<mode>_insn_1offset_exec (operands[0], addr,
                                                     const0_rtx, const0_rtx,
+                                                    const0_rtx,
                                                     gcn_gen_undef
                                                        (<MODE>mode),
-                                                    operands[0], exec));
+                                                    exec));
     else
       emit_insn (gen_gather<mode>_insn_2offsets_exec (operands[0], operands[1],
                                                      addr, const0_rtx,
-                                                     const0_rtx,
+                                                     const0_rtx, const0_rtx,
                                                      gcn_gen_undef
                                                        (<MODE>mode),
-                                                     operands[0], exec));
+                                                     exec));
     DONE;
   })

Reply via email to