llvm.org GIT mirror llvm / 4edb79d
AMDGPU: Add v_mad 16-bit instructions definition. Differential Revision: http://reviews.llvm.org/D21362 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272919 91177308-0d34-0410-b5e6-96231b3b80d8 Wei Ding 4 years ago
2 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
14461446 def VOP_F16_F16_I16 : VOPProfile <[f16, f16, i32, untyped]>;
14471447 def VOP_I16_I16_I16 : VOPProfile <[i32, i32, i32, untyped]>;
14481448
1449 def VOP_I16_I16_I16_I16 : VOPProfile <[i32, i32, i32, i32, untyped]>;
1450 def VOP_F16_F16_F16_F16 : VOPProfile <[f16, f16, f16, f16, untyped]>;
1451
14491452 def VOP_NONE : VOPProfile <[untyped, untyped, untyped, untyped]>;
14501453
14511454 def VOP_F32_F32 : VOPProfile <[f32, f32, untyped, untyped]>;
7474 } // End isCommutable = 1
7575 defm V_LDEXP_F16 : VOP2Inst , "v_ldexp_f16", VOP_F16_F16_I16>;
7676
77 //===----------------------------------------------------------------------===//
78 // VOP3 Instructions
79 //===----------------------------------------------------------------------===//
80 let isCommutable = 1 in {
81 defm V_MAD_F16 : VOP3Inst , "v_mad_f16", VOP_F16_F16_F16_F16>;
82 defm V_MAD_U16 : VOP3Inst , "v_mad_u16", VOP_I16_I16_I16_I16>;
83 defm V_MAD_I16 : VOP3Inst , "v_mad_i16", VOP_I16_I16_I16_I16>;
84 }
7785 } // let DisableSIDecoder = 1
7886
7987 // Aliases to simplify matching of floating-point instructions that