[PATCH] D127253: [AMDGPU] Use v_mad_u64_u32 for IMAD32

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 14:54:23 PDT 2022


rampitec added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/mad_u64_u32.ll:6
+
+define amdgpu_ps float @mad_i32_vvv(i32 %a, i32 %b, i32 %c) {
+; GFX9-LABEL: mad_i32_vvv:
----------------
arsenm wrote:
> Should also test globalisel
GlobalISel does not work:

VOP3Instructions.td:582:1: warning: Skipped pattern: Could not infer class for EXTRACT_SUBREG operand #0
def : IMAD32_Pats<V_MAD_U64_U32_e64>;

This instruction has 2 results, gisel does not handle it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127253/new/

https://reviews.llvm.org/D127253



More information about the llvm-commits mailing list