]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: Fix build failure (PR117657)
authorAndrew Stubbs <ams@baylibre.com>
Tue, 19 Nov 2024 12:01:22 +0000 (12:01 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Tue, 19 Nov 2024 13:53:01 +0000 (13:53 +0000)
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.

gcc/config/gcn/gcn-valu.md

index ce7a68f0e2d3acfd6dca85e1a28304d5636abccc..f7ed0b825a160fd97a7c525ab867ee9a29e01df2 100644 (file)
     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;
   })