From 8609008aeb19704e4a73d6881ef5c77f0d66f272 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 12 Jun 2025 11:10:29 +0100 Subject: [PATCH] ac/llvm: fix mul24 intrinsic overloading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Fixes: e3edc6029b25 ("ac/llvm: use mul24 intrinsics") Reviewed-by: Georg Lehmann Reviewed-by: Marek Olšák Part-of: --- src/amd/llvm/ac_nir_to_llvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c index 8f1869cc116..20fcb7f3685 100644 --- a/src/amd/llvm/ac_nir_to_llvm.c +++ b/src/amd/llvm/ac_nir_to_llvm.c @@ -613,10 +613,10 @@ static bool visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr) result = LLVMBuildSub(ctx->ac.builder, src[0], src[1], ""); break; case nir_op_imul24_relaxed: - result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.i24", ctx->ac.i32, src, 2, 0); + result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.i24.i32", ctx->ac.i32, src, 2, 0); break; case nir_op_umul24_relaxed: - result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.u24", ctx->ac.i32, src, 2, 0); + result = ac_build_intrinsic(&ctx->ac, "llvm.amdgcn.mul.u24.i32", ctx->ac.i32, src, 2, 0); break; case nir_op_imul: if (instr->no_unsigned_wrap)