From: Andrew Stubbs Date: Tue, 19 Nov 2024 12:01:22 +0000 (+0000) Subject: amdgcn: Fix build failure (PR117657) X-Git-Tag: basepoints/gcc-16~4094 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=234da38a0e68a204a59562fcca2aa6d297bc21ed;p=thirdparty%2Fgcc.git 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): Fix bug in maskload else patch. --- 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) == mode) emit_insn (gen_gather_insn_1offset_exec (operands[0], addr, const0_rtx, const0_rtx, + const0_rtx, gcn_gen_undef (mode), - operands[0], exec)); + exec)); else emit_insn (gen_gather_insn_2offsets_exec (operands[0], operands[1], addr, const0_rtx, - const0_rtx, + const0_rtx, const0_rtx, gcn_gen_undef (mode), - operands[0], exec)); + exec)); DONE; })