From 234da38a0e68a204a59562fcca2aa6d297bc21ed Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Tue, 19 Nov 2024 12:01:22 +0000 Subject: [PATCH] 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. --- 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) == 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; }) -- 2.47.2