[llvm] [AMDGPU][True16][MC] true16 for minimummaximum/max/min/max3/min3 (PR #124184)

Brox Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 08:09:16 PST 2025


================
@@ -1960,6 +1957,16 @@ multiclass VOP3_Realtriple_t16_and_fake16_gfx12<bits<10> op, string asmName, str
   defm _fake16:VOP3_Realtriple_t16_gfx12<op, asmName, opName#"_fake16", pseudo_mnemonic, isSingle>;
 }
 
+multiclass VOP3Only_Realtriple_t16_gfx12<bits<10> op, string asmName,
+                                     string opName = NAME, string pseudo_mnemonic = "">
+  : VOP3_Realtriple_t16_gfx12<op, asmName, opName, pseudo_mnemonic, 1>;
+
+multiclass VOP3Only_Realtriple_t16_and_fake16_gfx12<bits<10> op, string asmName,
+                                     string opName = NAME, string pseudo_mnemonic = ""> {
+  defm _t16 : VOP3Only_Realtriple_t16_gfx12<op, asmName, opName#"_t16", pseudo_mnemonic>;
----------------
broxigarchen wrote:

For now "t16_and_fake16" define t16 and fake16 together. 

In the end the fake16 will be removed and the change will be something like `VOP3Only_Realtriple_t16_and_fake16_gfx12` -> `VOP3Only_Realtriple_t16_gfx12`. There seems no necessary to add a fake16 function

https://github.com/llvm/llvm-project/pull/124184


More information about the llvm-commits mailing list