From 7ac67e2711bb6a3f7ff9b6741afd67194fa6ecdf Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Thu, 30 Oct 2025 09:28:29 +0100 Subject: [PATCH] aco/isel: emit vop2 v_max_f64 for gfx12+ Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/instruction_selection/aco_select_nir_alu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/compiler/instruction_selection/aco_select_nir_alu.cpp b/src/amd/compiler/instruction_selection/aco_select_nir_alu.cpp index 0ba5da2e0db..a7b3f7c94da 100644 --- a/src/amd/compiler/instruction_selection/aco_select_nir_alu.cpp +++ b/src/amd/compiler/instruction_selection/aco_select_nir_alu.cpp @@ -1969,6 +1969,8 @@ visit_alu_instr(isel_context* ctx, nir_alu_instr* instr) } else if (dst.regClass() == v1) { emit_vop2_instruction(ctx, instr, aco_opcode::v_max_f32, dst, true, false, ctx->block->fp_mode.must_flush_denorms32); + } else if (dst.regClass() == v2 && ctx->options->gfx_level >= GFX12) { + emit_vop2_instruction(ctx, instr, aco_opcode::v_max_f64, dst, true); } else if (dst.regClass() == v2) { emit_vop3a_instruction(ctx, instr, aco_opcode::v_max_f64_e64, dst, ctx->block->fp_mode.must_flush_denorms16_64);