From 96c9ebbd0444ad33a64e8dac7394e0142e5f71e4 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 7 Oct 2014 23:51:39 +0000 Subject: [PATCH] R600/SI: Refactor VOPC instruction defs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219255 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/SIInstrInfo.td | 38 +-- lib/Target/R600/SIInstructions.td | 392 +++++++++++++++--------------- 2 files changed, 217 insertions(+), 213 deletions(-) diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index e5ef53ff2ac..ec3cffe48f7 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -11,6 +11,12 @@ class vop { field bits<9> SI3; } +class vopc si> : vop { + field bits<8> SI = si; + + field bits<9> SI3 = {0, si{7-0}}; +} + class vop1 si> : vop { field bits<8> SI = si; @@ -688,17 +694,15 @@ multiclass VOP3b_2_m op, dag outs, dag ins, string asm, } // End sdst = SIOperand.VCC, Defs = [VCC] } -multiclass VOP3_C_m op, dag outs, dag ins, string asm, +multiclass VOP3_C_m pattern, string opName, bit HasMods, bit defExec> { def "" : VOP3_Pseudo ; - def _si : VOP3_Real_si < - {0, op{7}, op{6}, op{5}, op{4}, op{3}, op{2}, op{1}, op{0}}, - outs, ins, asm, opName>, + def _si : VOP3_Real_si , VOP3DisableFields<1, 0, HasMods> { - let Defs = !if(defExec, [EXEC], []); + let Defs = !if(defExec, [EXEC], []); } } @@ -784,11 +788,11 @@ multiclass VOP2bInst op, string opName, VOPProfile P, revOp, P.HasModifiers >; -multiclass VOPC_Helper op, string opName, +multiclass VOPC_Helper pat32, dag out64, dag ins64, string asm64, list pat64, bit HasMods, bit DefExec> { - def _e32 : VOPC , VOP { + def _e32 : VOPC , VOP { let Defs = !if(DefExec, [EXEC], []); } @@ -796,7 +800,7 @@ multiclass VOPC_Helper op, string opName, HasMods, DefExec>; } -multiclass VOPCInst op, string opName, +multiclass VOPCInst : VOPC_Helper < op, opName, @@ -812,33 +816,33 @@ multiclass VOPCInst op, string opName, P.HasModifiers, DefExec >; -multiclass VOPC_F32 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPC_F32 : VOPCInst ; -multiclass VOPC_F64 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPC_F64 : VOPCInst ; -multiclass VOPC_I32 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPC_I32 : VOPCInst ; -multiclass VOPC_I64 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPC_I64 : VOPCInst ; -multiclass VOPCX op, string opName, VOPProfile P, +multiclass VOPCX : VOPCInst ; -multiclass VOPCX_F32 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPCX_F32 : VOPCX ; -multiclass VOPCX_F64 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPCX_F64 : VOPCX ; -multiclass VOPCX_I32 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPCX_I32 : VOPCX ; -multiclass VOPCX_I64 op, string opName, PatLeaf cond = COND_NULL> : +multiclass VOPCX_I64 : VOPCX ; multiclass VOP3_Helper op, string opName, dag outs, dag ins, string asm, diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td index 27da84d3f2c..86f9c22b087 100644 --- a/lib/Target/R600/SIInstructions.td +++ b/lib/Target/R600/SIInstructions.td @@ -470,256 +470,256 @@ let Uses = [EXEC] in { let isCompare = 1 in { -defm V_CMP_F_F32 : VOPC_F32 <0x00000000, "V_CMP_F_F32">; -defm V_CMP_LT_F32 : VOPC_F32 <0x00000001, "V_CMP_LT_F32", COND_OLT>; -defm V_CMP_EQ_F32 : VOPC_F32 <0x00000002, "V_CMP_EQ_F32", COND_OEQ>; -defm V_CMP_LE_F32 : VOPC_F32 <0x00000003, "V_CMP_LE_F32", COND_OLE>; -defm V_CMP_GT_F32 : VOPC_F32 <0x00000004, "V_CMP_GT_F32", COND_OGT>; -defm V_CMP_LG_F32 : VOPC_F32 <0x00000005, "V_CMP_LG_F32">; -defm V_CMP_GE_F32 : VOPC_F32 <0x00000006, "V_CMP_GE_F32", COND_OGE>; -defm V_CMP_O_F32 : VOPC_F32 <0x00000007, "V_CMP_O_F32", COND_O>; -defm V_CMP_U_F32 : VOPC_F32 <0x00000008, "V_CMP_U_F32", COND_UO>; -defm V_CMP_NGE_F32 : VOPC_F32 <0x00000009, "V_CMP_NGE_F32">; -defm V_CMP_NLG_F32 : VOPC_F32 <0x0000000a, "V_CMP_NLG_F32">; -defm V_CMP_NGT_F32 : VOPC_F32 <0x0000000b, "V_CMP_NGT_F32">; -defm V_CMP_NLE_F32 : VOPC_F32 <0x0000000c, "V_CMP_NLE_F32">; -defm V_CMP_NEQ_F32 : VOPC_F32 <0x0000000d, "V_CMP_NEQ_F32", COND_UNE>; -defm V_CMP_NLT_F32 : VOPC_F32 <0x0000000e, "V_CMP_NLT_F32">; -defm V_CMP_TRU_F32 : VOPC_F32 <0x0000000f, "V_CMP_TRU_F32">; +defm V_CMP_F_F32 : VOPC_F32 , "V_CMP_F_F32">; +defm V_CMP_LT_F32 : VOPC_F32 , "V_CMP_LT_F32", COND_OLT>; +defm V_CMP_EQ_F32 : VOPC_F32 , "V_CMP_EQ_F32", COND_OEQ>; +defm V_CMP_LE_F32 : VOPC_F32 , "V_CMP_LE_F32", COND_OLE>; +defm V_CMP_GT_F32 : VOPC_F32 , "V_CMP_GT_F32", COND_OGT>; +defm V_CMP_LG_F32 : VOPC_F32 , "V_CMP_LG_F32">; +defm V_CMP_GE_F32 : VOPC_F32 , "V_CMP_GE_F32", COND_OGE>; +defm V_CMP_O_F32 : VOPC_F32 , "V_CMP_O_F32", COND_O>; +defm V_CMP_U_F32 : VOPC_F32 , "V_CMP_U_F32", COND_UO>; +defm V_CMP_NGE_F32 : VOPC_F32 , "V_CMP_NGE_F32">; +defm V_CMP_NLG_F32 : VOPC_F32 , "V_CMP_NLG_F32">; +defm V_CMP_NGT_F32 : VOPC_F32 , "V_CMP_NGT_F32">; +defm V_CMP_NLE_F32 : VOPC_F32 , "V_CMP_NLE_F32">; +defm V_CMP_NEQ_F32 : VOPC_F32 , "V_CMP_NEQ_F32", COND_UNE>; +defm V_CMP_NLT_F32 : VOPC_F32 , "V_CMP_NLT_F32">; +defm V_CMP_TRU_F32 : VOPC_F32 , "V_CMP_TRU_F32">; let hasSideEffects = 1 in { -defm V_CMPX_F_F32 : VOPCX_F32 <0x00000010, "V_CMPX_F_F32">; -defm V_CMPX_LT_F32 : VOPCX_F32 <0x00000011, "V_CMPX_LT_F32">; -defm V_CMPX_EQ_F32 : VOPCX_F32 <0x00000012, "V_CMPX_EQ_F32">; -defm V_CMPX_LE_F32 : VOPCX_F32 <0x00000013, "V_CMPX_LE_F32">; -defm V_CMPX_GT_F32 : VOPCX_F32 <0x00000014, "V_CMPX_GT_F32">; -defm V_CMPX_LG_F32 : VOPCX_F32 <0x00000015, "V_CMPX_LG_F32">; -defm V_CMPX_GE_F32 : VOPCX_F32 <0x00000016, "V_CMPX_GE_F32">; -defm V_CMPX_O_F32 : VOPCX_F32 <0x00000017, "V_CMPX_O_F32">; -defm V_CMPX_U_F32 : VOPCX_F32 <0x00000018, "V_CMPX_U_F32">; -defm V_CMPX_NGE_F32 : VOPCX_F32 <0x00000019, "V_CMPX_NGE_F32">; -defm V_CMPX_NLG_F32 : VOPCX_F32 <0x0000001a, "V_CMPX_NLG_F32">; -defm V_CMPX_NGT_F32 : VOPCX_F32 <0x0000001b, "V_CMPX_NGT_F32">; -defm V_CMPX_NLE_F32 : VOPCX_F32 <0x0000001c, "V_CMPX_NLE_F32">; -defm V_CMPX_NEQ_F32 : VOPCX_F32 <0x0000001d, "V_CMPX_NEQ_F32">; -defm V_CMPX_NLT_F32 : VOPCX_F32 <0x0000001e, "V_CMPX_NLT_F32">; -defm V_CMPX_TRU_F32 : VOPCX_F32 <0x0000001f, "V_CMPX_TRU_F32">; +defm V_CMPX_F_F32 : VOPCX_F32 , "V_CMPX_F_F32">; +defm V_CMPX_LT_F32 : VOPCX_F32 , "V_CMPX_LT_F32">; +defm V_CMPX_EQ_F32 : VOPCX_F32 , "V_CMPX_EQ_F32">; +defm V_CMPX_LE_F32 : VOPCX_F32 , "V_CMPX_LE_F32">; +defm V_CMPX_GT_F32 : VOPCX_F32 , "V_CMPX_GT_F32">; +defm V_CMPX_LG_F32 : VOPCX_F32 , "V_CMPX_LG_F32">; +defm V_CMPX_GE_F32 : VOPCX_F32 , "V_CMPX_GE_F32">; +defm V_CMPX_O_F32 : VOPCX_F32 , "V_CMPX_O_F32">; +defm V_CMPX_U_F32 : VOPCX_F32 , "V_CMPX_U_F32">; +defm V_CMPX_NGE_F32 : VOPCX_F32 , "V_CMPX_NGE_F32">; +defm V_CMPX_NLG_F32 : VOPCX_F32 , "V_CMPX_NLG_F32">; +defm V_CMPX_NGT_F32 : VOPCX_F32 , "V_CMPX_NGT_F32">; +defm V_CMPX_NLE_F32 : VOPCX_F32 , "V_CMPX_NLE_F32">; +defm V_CMPX_NEQ_F32 : VOPCX_F32 , "V_CMPX_NEQ_F32">; +defm V_CMPX_NLT_F32 : VOPCX_F32 , "V_CMPX_NLT_F32">; +defm V_CMPX_TRU_F32 : VOPCX_F32 , "V_CMPX_TRU_F32">; } // End hasSideEffects = 1 -defm V_CMP_F_F64 : VOPC_F64 <0x00000020, "V_CMP_F_F64">; -defm V_CMP_LT_F64 : VOPC_F64 <0x00000021, "V_CMP_LT_F64", COND_OLT>; -defm V_CMP_EQ_F64 : VOPC_F64 <0x00000022, "V_CMP_EQ_F64", COND_OEQ>; -defm V_CMP_LE_F64 : VOPC_F64 <0x00000023, "V_CMP_LE_F64", COND_OLE>; -defm V_CMP_GT_F64 : VOPC_F64 <0x00000024, "V_CMP_GT_F64", COND_OGT>; -defm V_CMP_LG_F64 : VOPC_F64 <0x00000025, "V_CMP_LG_F64">; -defm V_CMP_GE_F64 : VOPC_F64 <0x00000026, "V_CMP_GE_F64", COND_OGE>; -defm V_CMP_O_F64 : VOPC_F64 <0x00000027, "V_CMP_O_F64", COND_O>; -defm V_CMP_U_F64 : VOPC_F64 <0x00000028, "V_CMP_U_F64", COND_UO>; -defm V_CMP_NGE_F64 : VOPC_F64 <0x00000029, "V_CMP_NGE_F64">; -defm V_CMP_NLG_F64 : VOPC_F64 <0x0000002a, "V_CMP_NLG_F64">; -defm V_CMP_NGT_F64 : VOPC_F64 <0x0000002b, "V_CMP_NGT_F64">; -defm V_CMP_NLE_F64 : VOPC_F64 <0x0000002c, "V_CMP_NLE_F64">; -defm V_CMP_NEQ_F64 : VOPC_F64 <0x0000002d, "V_CMP_NEQ_F64", COND_UNE>; -defm V_CMP_NLT_F64 : VOPC_F64 <0x0000002e, "V_CMP_NLT_F64">; -defm V_CMP_TRU_F64 : VOPC_F64 <0x0000002f, "V_CMP_TRU_F64">; +defm V_CMP_F_F64 : VOPC_F64 , "V_CMP_F_F64">; +defm V_CMP_LT_F64 : VOPC_F64 , "V_CMP_LT_F64", COND_OLT>; +defm V_CMP_EQ_F64 : VOPC_F64 , "V_CMP_EQ_F64", COND_OEQ>; +defm V_CMP_LE_F64 : VOPC_F64 , "V_CMP_LE_F64", COND_OLE>; +defm V_CMP_GT_F64 : VOPC_F64 , "V_CMP_GT_F64", COND_OGT>; +defm V_CMP_LG_F64 : VOPC_F64 , "V_CMP_LG_F64">; +defm V_CMP_GE_F64 : VOPC_F64 , "V_CMP_GE_F64", COND_OGE>; +defm V_CMP_O_F64 : VOPC_F64 , "V_CMP_O_F64", COND_O>; +defm V_CMP_U_F64 : VOPC_F64 , "V_CMP_U_F64", COND_UO>; +defm V_CMP_NGE_F64 : VOPC_F64 , "V_CMP_NGE_F64">; +defm V_CMP_NLG_F64 : VOPC_F64 , "V_CMP_NLG_F64">; +defm V_CMP_NGT_F64 : VOPC_F64 , "V_CMP_NGT_F64">; +defm V_CMP_NLE_F64 : VOPC_F64 , "V_CMP_NLE_F64">; +defm V_CMP_NEQ_F64 : VOPC_F64 , "V_CMP_NEQ_F64", COND_UNE>; +defm V_CMP_NLT_F64 : VOPC_F64 , "V_CMP_NLT_F64">; +defm V_CMP_TRU_F64 : VOPC_F64 , "V_CMP_TRU_F64">; let hasSideEffects = 1 in { -defm V_CMPX_F_F64 : VOPCX_F64 <0x00000030, "V_CMPX_F_F64">; -defm V_CMPX_LT_F64 : VOPCX_F64 <0x00000031, "V_CMPX_LT_F64">; -defm V_CMPX_EQ_F64 : VOPCX_F64 <0x00000032, "V_CMPX_EQ_F64">; -defm V_CMPX_LE_F64 : VOPCX_F64 <0x00000033, "V_CMPX_LE_F64">; -defm V_CMPX_GT_F64 : VOPCX_F64 <0x00000034, "V_CMPX_GT_F64">; -defm V_CMPX_LG_F64 : VOPCX_F64 <0x00000035, "V_CMPX_LG_F64">; -defm V_CMPX_GE_F64 : VOPCX_F64 <0x00000036, "V_CMPX_GE_F64">; -defm V_CMPX_O_F64 : VOPCX_F64 <0x00000037, "V_CMPX_O_F64">; -defm V_CMPX_U_F64 : VOPCX_F64 <0x00000038, "V_CMPX_U_F64">; -defm V_CMPX_NGE_F64 : VOPCX_F64 <0x00000039, "V_CMPX_NGE_F64">; -defm V_CMPX_NLG_F64 : VOPCX_F64 <0x0000003a, "V_CMPX_NLG_F64">; -defm V_CMPX_NGT_F64 : VOPCX_F64 <0x0000003b, "V_CMPX_NGT_F64">; -defm V_CMPX_NLE_F64 : VOPCX_F64 <0x0000003c, "V_CMPX_NLE_F64">; -defm V_CMPX_NEQ_F64 : VOPCX_F64 <0x0000003d, "V_CMPX_NEQ_F64">; -defm V_CMPX_NLT_F64 : VOPCX_F64 <0x0000003e, "V_CMPX_NLT_F64">; -defm V_CMPX_TRU_F64 : VOPCX_F64 <0x0000003f, "V_CMPX_TRU_F64">; +defm V_CMPX_F_F64 : VOPCX_F64 , "V_CMPX_F_F64">; +defm V_CMPX_LT_F64 : VOPCX_F64 , "V_CMPX_LT_F64">; +defm V_CMPX_EQ_F64 : VOPCX_F64 , "V_CMPX_EQ_F64">; +defm V_CMPX_LE_F64 : VOPCX_F64 , "V_CMPX_LE_F64">; +defm V_CMPX_GT_F64 : VOPCX_F64 , "V_CMPX_GT_F64">; +defm V_CMPX_LG_F64 : VOPCX_F64 , "V_CMPX_LG_F64">; +defm V_CMPX_GE_F64 : VOPCX_F64 , "V_CMPX_GE_F64">; +defm V_CMPX_O_F64 : VOPCX_F64 , "V_CMPX_O_F64">; +defm V_CMPX_U_F64 : VOPCX_F64 , "V_CMPX_U_F64">; +defm V_CMPX_NGE_F64 : VOPCX_F64 , "V_CMPX_NGE_F64">; +defm V_CMPX_NLG_F64 : VOPCX_F64 , "V_CMPX_NLG_F64">; +defm V_CMPX_NGT_F64 : VOPCX_F64 , "V_CMPX_NGT_F64">; +defm V_CMPX_NLE_F64 : VOPCX_F64 , "V_CMPX_NLE_F64">; +defm V_CMPX_NEQ_F64 : VOPCX_F64 , "V_CMPX_NEQ_F64">; +defm V_CMPX_NLT_F64 : VOPCX_F64 , "V_CMPX_NLT_F64">; +defm V_CMPX_TRU_F64 : VOPCX_F64 , "V_CMPX_TRU_F64">; } // End hasSideEffects = 1 -defm V_CMPS_F_F32 : VOPC_F32 <0x00000040, "V_CMPS_F_F32">; -defm V_CMPS_LT_F32 : VOPC_F32 <0x00000041, "V_CMPS_LT_F32">; -defm V_CMPS_EQ_F32 : VOPC_F32 <0x00000042, "V_CMPS_EQ_F32">; -defm V_CMPS_LE_F32 : VOPC_F32 <0x00000043, "V_CMPS_LE_F32">; -defm V_CMPS_GT_F32 : VOPC_F32 <0x00000044, "V_CMPS_GT_F32">; -defm V_CMPS_LG_F32 : VOPC_F32 <0x00000045, "V_CMPS_LG_F32">; -defm V_CMPS_GE_F32 : VOPC_F32 <0x00000046, "V_CMPS_GE_F32">; -defm V_CMPS_O_F32 : VOPC_F32 <0x00000047, "V_CMPS_O_F32">; -defm V_CMPS_U_F32 : VOPC_F32 <0x00000048, "V_CMPS_U_F32">; -defm V_CMPS_NGE_F32 : VOPC_F32 <0x00000049, "V_CMPS_NGE_F32">; -defm V_CMPS_NLG_F32 : VOPC_F32 <0x0000004a, "V_CMPS_NLG_F32">; -defm V_CMPS_NGT_F32 : VOPC_F32 <0x0000004b, "V_CMPS_NGT_F32">; -defm V_CMPS_NLE_F32 : VOPC_F32 <0x0000004c, "V_CMPS_NLE_F32">; -defm V_CMPS_NEQ_F32 : VOPC_F32 <0x0000004d, "V_CMPS_NEQ_F32">; -defm V_CMPS_NLT_F32 : VOPC_F32 <0x0000004e, "V_CMPS_NLT_F32">; -defm V_CMPS_TRU_F32 : VOPC_F32 <0x0000004f, "V_CMPS_TRU_F32">; +defm V_CMPS_F_F32 : VOPC_F32 , "V_CMPS_F_F32">; +defm V_CMPS_LT_F32 : VOPC_F32 , "V_CMPS_LT_F32">; +defm V_CMPS_EQ_F32 : VOPC_F32 , "V_CMPS_EQ_F32">; +defm V_CMPS_LE_F32 : VOPC_F32 , "V_CMPS_LE_F32">; +defm V_CMPS_GT_F32 : VOPC_F32 , "V_CMPS_GT_F32">; +defm V_CMPS_LG_F32 : VOPC_F32 , "V_CMPS_LG_F32">; +defm V_CMPS_GE_F32 : VOPC_F32 , "V_CMPS_GE_F32">; +defm V_CMPS_O_F32 : VOPC_F32 , "V_CMPS_O_F32">; +defm V_CMPS_U_F32 : VOPC_F32 , "V_CMPS_U_F32">; +defm V_CMPS_NGE_F32 : VOPC_F32 , "V_CMPS_NGE_F32">; +defm V_CMPS_NLG_F32 : VOPC_F32 , "V_CMPS_NLG_F32">; +defm V_CMPS_NGT_F32 : VOPC_F32 , "V_CMPS_NGT_F32">; +defm V_CMPS_NLE_F32 : VOPC_F32 , "V_CMPS_NLE_F32">; +defm V_CMPS_NEQ_F32 : VOPC_F32 , "V_CMPS_NEQ_F32">; +defm V_CMPS_NLT_F32 : VOPC_F32 , "V_CMPS_NLT_F32">; +defm V_CMPS_TRU_F32 : VOPC_F32 , "V_CMPS_TRU_F32">; let hasSideEffects = 1 in { -defm V_CMPSX_F_F32 : VOPCX_F32 <0x00000050, "V_CMPSX_F_F32">; -defm V_CMPSX_LT_F32 : VOPCX_F32 <0x00000051, "V_CMPSX_LT_F32">; -defm V_CMPSX_EQ_F32 : VOPCX_F32 <0x00000052, "V_CMPSX_EQ_F32">; -defm V_CMPSX_LE_F32 : VOPCX_F32 <0x00000053, "V_CMPSX_LE_F32">; -defm V_CMPSX_GT_F32 : VOPCX_F32 <0x00000054, "V_CMPSX_GT_F32">; -defm V_CMPSX_LG_F32 : VOPCX_F32 <0x00000055, "V_CMPSX_LG_F32">; -defm V_CMPSX_GE_F32 : VOPCX_F32 <0x00000056, "V_CMPSX_GE_F32">; -defm V_CMPSX_O_F32 : VOPCX_F32 <0x00000057, "V_CMPSX_O_F32">; -defm V_CMPSX_U_F32 : VOPCX_F32 <0x00000058, "V_CMPSX_U_F32">; -defm V_CMPSX_NGE_F32 : VOPCX_F32 <0x00000059, "V_CMPSX_NGE_F32">; -defm V_CMPSX_NLG_F32 : VOPCX_F32 <0x0000005a, "V_CMPSX_NLG_F32">; -defm V_CMPSX_NGT_F32 : VOPCX_F32 <0x0000005b, "V_CMPSX_NGT_F32">; -defm V_CMPSX_NLE_F32 : VOPCX_F32 <0x0000005c, "V_CMPSX_NLE_F32">; -defm V_CMPSX_NEQ_F32 : VOPCX_F32 <0x0000005d, "V_CMPSX_NEQ_F32">; -defm V_CMPSX_NLT_F32 : VOPCX_F32 <0x0000005e, "V_CMPSX_NLT_F32">; -defm V_CMPSX_TRU_F32 : VOPCX_F32 <0x0000005f, "V_CMPSX_TRU_F32">; +defm V_CMPSX_F_F32 : VOPCX_F32 , "V_CMPSX_F_F32">; +defm V_CMPSX_LT_F32 : VOPCX_F32 , "V_CMPSX_LT_F32">; +defm V_CMPSX_EQ_F32 : VOPCX_F32 , "V_CMPSX_EQ_F32">; +defm V_CMPSX_LE_F32 : VOPCX_F32 , "V_CMPSX_LE_F32">; +defm V_CMPSX_GT_F32 : VOPCX_F32 , "V_CMPSX_GT_F32">; +defm V_CMPSX_LG_F32 : VOPCX_F32 , "V_CMPSX_LG_F32">; +defm V_CMPSX_GE_F32 : VOPCX_F32 , "V_CMPSX_GE_F32">; +defm V_CMPSX_O_F32 : VOPCX_F32 , "V_CMPSX_O_F32">; +defm V_CMPSX_U_F32 : VOPCX_F32 , "V_CMPSX_U_F32">; +defm V_CMPSX_NGE_F32 : VOPCX_F32 , "V_CMPSX_NGE_F32">; +defm V_CMPSX_NLG_F32 : VOPCX_F32 , "V_CMPSX_NLG_F32">; +defm V_CMPSX_NGT_F32 : VOPCX_F32 , "V_CMPSX_NGT_F32">; +defm V_CMPSX_NLE_F32 : VOPCX_F32 , "V_CMPSX_NLE_F32">; +defm V_CMPSX_NEQ_F32 : VOPCX_F32 , "V_CMPSX_NEQ_F32">; +defm V_CMPSX_NLT_F32 : VOPCX_F32 , "V_CMPSX_NLT_F32">; +defm V_CMPSX_TRU_F32 : VOPCX_F32 , "V_CMPSX_TRU_F32">; } // End hasSideEffects = 1 -defm V_CMPS_F_F64 : VOPC_F64 <0x00000060, "V_CMPS_F_F64">; -defm V_CMPS_LT_F64 : VOPC_F64 <0x00000061, "V_CMPS_LT_F64">; -defm V_CMPS_EQ_F64 : VOPC_F64 <0x00000062, "V_CMPS_EQ_F64">; -defm V_CMPS_LE_F64 : VOPC_F64 <0x00000063, "V_CMPS_LE_F64">; -defm V_CMPS_GT_F64 : VOPC_F64 <0x00000064, "V_CMPS_GT_F64">; -defm V_CMPS_LG_F64 : VOPC_F64 <0x00000065, "V_CMPS_LG_F64">; -defm V_CMPS_GE_F64 : VOPC_F64 <0x00000066, "V_CMPS_GE_F64">; -defm V_CMPS_O_F64 : VOPC_F64 <0x00000067, "V_CMPS_O_F64">; -defm V_CMPS_U_F64 : VOPC_F64 <0x00000068, "V_CMPS_U_F64">; -defm V_CMPS_NGE_F64 : VOPC_F64 <0x00000069, "V_CMPS_NGE_F64">; -defm V_CMPS_NLG_F64 : VOPC_F64 <0x0000006a, "V_CMPS_NLG_F64">; -defm V_CMPS_NGT_F64 : VOPC_F64 <0x0000006b, "V_CMPS_NGT_F64">; -defm V_CMPS_NLE_F64 : VOPC_F64 <0x0000006c, "V_CMPS_NLE_F64">; -defm V_CMPS_NEQ_F64 : VOPC_F64 <0x0000006d, "V_CMPS_NEQ_F64">; -defm V_CMPS_NLT_F64 : VOPC_F64 <0x0000006e, "V_CMPS_NLT_F64">; -defm V_CMPS_TRU_F64 : VOPC_F64 <0x0000006f, "V_CMPS_TRU_F64">; +defm V_CMPS_F_F64 : VOPC_F64 , "V_CMPS_F_F64">; +defm V_CMPS_LT_F64 : VOPC_F64 , "V_CMPS_LT_F64">; +defm V_CMPS_EQ_F64 : VOPC_F64 , "V_CMPS_EQ_F64">; +defm V_CMPS_LE_F64 : VOPC_F64 , "V_CMPS_LE_F64">; +defm V_CMPS_GT_F64 : VOPC_F64 , "V_CMPS_GT_F64">; +defm V_CMPS_LG_F64 : VOPC_F64 , "V_CMPS_LG_F64">; +defm V_CMPS_GE_F64 : VOPC_F64 , "V_CMPS_GE_F64">; +defm V_CMPS_O_F64 : VOPC_F64 , "V_CMPS_O_F64">; +defm V_CMPS_U_F64 : VOPC_F64 , "V_CMPS_U_F64">; +defm V_CMPS_NGE_F64 : VOPC_F64 , "V_CMPS_NGE_F64">; +defm V_CMPS_NLG_F64 : VOPC_F64 , "V_CMPS_NLG_F64">; +defm V_CMPS_NGT_F64 : VOPC_F64 , "V_CMPS_NGT_F64">; +defm V_CMPS_NLE_F64 : VOPC_F64 , "V_CMPS_NLE_F64">; +defm V_CMPS_NEQ_F64 : VOPC_F64 , "V_CMPS_NEQ_F64">; +defm V_CMPS_NLT_F64 : VOPC_F64 , "V_CMPS_NLT_F64">; +defm V_CMPS_TRU_F64 : VOPC_F64 , "V_CMPS_TRU_F64">; let hasSideEffects = 1, Defs = [EXEC] in { -defm V_CMPSX_F_F64 : VOPC_F64 <0x00000070, "V_CMPSX_F_F64">; -defm V_CMPSX_LT_F64 : VOPC_F64 <0x00000071, "V_CMPSX_LT_F64">; -defm V_CMPSX_EQ_F64 : VOPC_F64 <0x00000072, "V_CMPSX_EQ_F64">; -defm V_CMPSX_LE_F64 : VOPC_F64 <0x00000073, "V_CMPSX_LE_F64">; -defm V_CMPSX_GT_F64 : VOPC_F64 <0x00000074, "V_CMPSX_GT_F64">; -defm V_CMPSX_LG_F64 : VOPC_F64 <0x00000075, "V_CMPSX_LG_F64">; -defm V_CMPSX_GE_F64 : VOPC_F64 <0x00000076, "V_CMPSX_GE_F64">; -defm V_CMPSX_O_F64 : VOPC_F64 <0x00000077, "V_CMPSX_O_F64">; -defm V_CMPSX_U_F64 : VOPC_F64 <0x00000078, "V_CMPSX_U_F64">; -defm V_CMPSX_NGE_F64 : VOPC_F64 <0x00000079, "V_CMPSX_NGE_F64">; -defm V_CMPSX_NLG_F64 : VOPC_F64 <0x0000007a, "V_CMPSX_NLG_F64">; -defm V_CMPSX_NGT_F64 : VOPC_F64 <0x0000007b, "V_CMPSX_NGT_F64">; -defm V_CMPSX_NLE_F64 : VOPC_F64 <0x0000007c, "V_CMPSX_NLE_F64">; -defm V_CMPSX_NEQ_F64 : VOPC_F64 <0x0000007d, "V_CMPSX_NEQ_F64">; -defm V_CMPSX_NLT_F64 : VOPC_F64 <0x0000007e, "V_CMPSX_NLT_F64">; -defm V_CMPSX_TRU_F64 : VOPC_F64 <0x0000007f, "V_CMPSX_TRU_F64">; +defm V_CMPSX_F_F64 : VOPC_F64 , "V_CMPSX_F_F64">; +defm V_CMPSX_LT_F64 : VOPC_F64 , "V_CMPSX_LT_F64">; +defm V_CMPSX_EQ_F64 : VOPC_F64 , "V_CMPSX_EQ_F64">; +defm V_CMPSX_LE_F64 : VOPC_F64 , "V_CMPSX_LE_F64">; +defm V_CMPSX_GT_F64 : VOPC_F64 , "V_CMPSX_GT_F64">; +defm V_CMPSX_LG_F64 : VOPC_F64 , "V_CMPSX_LG_F64">; +defm V_CMPSX_GE_F64 : VOPC_F64 , "V_CMPSX_GE_F64">; +defm V_CMPSX_O_F64 : VOPC_F64 , "V_CMPSX_O_F64">; +defm V_CMPSX_U_F64 : VOPC_F64 , "V_CMPSX_U_F64">; +defm V_CMPSX_NGE_F64 : VOPC_F64 , "V_CMPSX_NGE_F64">; +defm V_CMPSX_NLG_F64 : VOPC_F64 , "V_CMPSX_NLG_F64">; +defm V_CMPSX_NGT_F64 : VOPC_F64 , "V_CMPSX_NGT_F64">; +defm V_CMPSX_NLE_F64 : VOPC_F64 , "V_CMPSX_NLE_F64">; +defm V_CMPSX_NEQ_F64 : VOPC_F64 , "V_CMPSX_NEQ_F64">; +defm V_CMPSX_NLT_F64 : VOPC_F64 , "V_CMPSX_NLT_F64">; +defm V_CMPSX_TRU_F64 : VOPC_F64 , "V_CMPSX_TRU_F64">; } // End hasSideEffects = 1, Defs = [EXEC] -defm V_CMP_F_I32 : VOPC_I32 <0x00000080, "V_CMP_F_I32">; -defm V_CMP_LT_I32 : VOPC_I32 <0x00000081, "V_CMP_LT_I32", COND_SLT>; -defm V_CMP_EQ_I32 : VOPC_I32 <0x00000082, "V_CMP_EQ_I32", COND_EQ>; -defm V_CMP_LE_I32 : VOPC_I32 <0x00000083, "V_CMP_LE_I32", COND_SLE>; -defm V_CMP_GT_I32 : VOPC_I32 <0x00000084, "V_CMP_GT_I32", COND_SGT>; -defm V_CMP_NE_I32 : VOPC_I32 <0x00000085, "V_CMP_NE_I32", COND_NE>; -defm V_CMP_GE_I32 : VOPC_I32 <0x00000086, "V_CMP_GE_I32", COND_SGE>; -defm V_CMP_T_I32 : VOPC_I32 <0x00000087, "V_CMP_T_I32">; +defm V_CMP_F_I32 : VOPC_I32 , "V_CMP_F_I32">; +defm V_CMP_LT_I32 : VOPC_I32 , "V_CMP_LT_I32", COND_SLT>; +defm V_CMP_EQ_I32 : VOPC_I32 , "V_CMP_EQ_I32", COND_EQ>; +defm V_CMP_LE_I32 : VOPC_I32 , "V_CMP_LE_I32", COND_SLE>; +defm V_CMP_GT_I32 : VOPC_I32 , "V_CMP_GT_I32", COND_SGT>; +defm V_CMP_NE_I32 : VOPC_I32 , "V_CMP_NE_I32", COND_NE>; +defm V_CMP_GE_I32 : VOPC_I32 , "V_CMP_GE_I32", COND_SGE>; +defm V_CMP_T_I32 : VOPC_I32 , "V_CMP_T_I32">; let hasSideEffects = 1 in { -defm V_CMPX_F_I32 : VOPCX_I32 <0x00000090, "V_CMPX_F_I32">; -defm V_CMPX_LT_I32 : VOPCX_I32 <0x00000091, "V_CMPX_LT_I32">; -defm V_CMPX_EQ_I32 : VOPCX_I32 <0x00000092, "V_CMPX_EQ_I32">; -defm V_CMPX_LE_I32 : VOPCX_I32 <0x00000093, "V_CMPX_LE_I32">; -defm V_CMPX_GT_I32 : VOPCX_I32 <0x00000094, "V_CMPX_GT_I32">; -defm V_CMPX_NE_I32 : VOPCX_I32 <0x00000095, "V_CMPX_NE_I32">; -defm V_CMPX_GE_I32 : VOPCX_I32 <0x00000096, "V_CMPX_GE_I32">; -defm V_CMPX_T_I32 : VOPCX_I32 <0x00000097, "V_CMPX_T_I32">; +defm V_CMPX_F_I32 : VOPCX_I32 , "V_CMPX_F_I32">; +defm V_CMPX_LT_I32 : VOPCX_I32 , "V_CMPX_LT_I32">; +defm V_CMPX_EQ_I32 : VOPCX_I32 , "V_CMPX_EQ_I32">; +defm V_CMPX_LE_I32 : VOPCX_I32 , "V_CMPX_LE_I32">; +defm V_CMPX_GT_I32 : VOPCX_I32 , "V_CMPX_GT_I32">; +defm V_CMPX_NE_I32 : VOPCX_I32 , "V_CMPX_NE_I32">; +defm V_CMPX_GE_I32 : VOPCX_I32 , "V_CMPX_GE_I32">; +defm V_CMPX_T_I32 : VOPCX_I32 , "V_CMPX_T_I32">; } // End hasSideEffects = 1 -defm V_CMP_F_I64 : VOPC_I64 <0x000000a0, "V_CMP_F_I64">; -defm V_CMP_LT_I64 : VOPC_I64 <0x000000a1, "V_CMP_LT_I64", COND_SLT>; -defm V_CMP_EQ_I64 : VOPC_I64 <0x000000a2, "V_CMP_EQ_I64", COND_EQ>; -defm V_CMP_LE_I64 : VOPC_I64 <0x000000a3, "V_CMP_LE_I64", COND_SLE>; -defm V_CMP_GT_I64 : VOPC_I64 <0x000000a4, "V_CMP_GT_I64", COND_SGT>; -defm V_CMP_NE_I64 : VOPC_I64 <0x000000a5, "V_CMP_NE_I64", COND_NE>; -defm V_CMP_GE_I64 : VOPC_I64 <0x000000a6, "V_CMP_GE_I64", COND_SGE>; -defm V_CMP_T_I64 : VOPC_I64 <0x000000a7, "V_CMP_T_I64">; +defm V_CMP_F_I64 : VOPC_I64 , "V_CMP_F_I64">; +defm V_CMP_LT_I64 : VOPC_I64 , "V_CMP_LT_I64", COND_SLT>; +defm V_CMP_EQ_I64 : VOPC_I64 , "V_CMP_EQ_I64", COND_EQ>; +defm V_CMP_LE_I64 : VOPC_I64 , "V_CMP_LE_I64", COND_SLE>; +defm V_CMP_GT_I64 : VOPC_I64 , "V_CMP_GT_I64", COND_SGT>; +defm V_CMP_NE_I64 : VOPC_I64 , "V_CMP_NE_I64", COND_NE>; +defm V_CMP_GE_I64 : VOPC_I64 , "V_CMP_GE_I64", COND_SGE>; +defm V_CMP_T_I64 : VOPC_I64 , "V_CMP_T_I64">; let hasSideEffects = 1 in { -defm V_CMPX_F_I64 : VOPCX_I64 <0x000000b0, "V_CMPX_F_I64">; -defm V_CMPX_LT_I64 : VOPCX_I64 <0x000000b1, "V_CMPX_LT_I64">; -defm V_CMPX_EQ_I64 : VOPCX_I64 <0x000000b2, "V_CMPX_EQ_I64">; -defm V_CMPX_LE_I64 : VOPCX_I64 <0x000000b3, "V_CMPX_LE_I64">; -defm V_CMPX_GT_I64 : VOPCX_I64 <0x000000b4, "V_CMPX_GT_I64">; -defm V_CMPX_NE_I64 : VOPCX_I64 <0x000000b5, "V_CMPX_NE_I64">; -defm V_CMPX_GE_I64 : VOPCX_I64 <0x000000b6, "V_CMPX_GE_I64">; -defm V_CMPX_T_I64 : VOPCX_I64 <0x000000b7, "V_CMPX_T_I64">; +defm V_CMPX_F_I64 : VOPCX_I64 , "V_CMPX_F_I64">; +defm V_CMPX_LT_I64 : VOPCX_I64 , "V_CMPX_LT_I64">; +defm V_CMPX_EQ_I64 : VOPCX_I64 , "V_CMPX_EQ_I64">; +defm V_CMPX_LE_I64 : VOPCX_I64 , "V_CMPX_LE_I64">; +defm V_CMPX_GT_I64 : VOPCX_I64 , "V_CMPX_GT_I64">; +defm V_CMPX_NE_I64 : VOPCX_I64 , "V_CMPX_NE_I64">; +defm V_CMPX_GE_I64 : VOPCX_I64 , "V_CMPX_GE_I64">; +defm V_CMPX_T_I64 : VOPCX_I64 , "V_CMPX_T_I64">; } // End hasSideEffects = 1 -defm V_CMP_F_U32 : VOPC_I32 <0x000000c0, "V_CMP_F_U32">; -defm V_CMP_LT_U32 : VOPC_I32 <0x000000c1, "V_CMP_LT_U32", COND_ULT>; -defm V_CMP_EQ_U32 : VOPC_I32 <0x000000c2, "V_CMP_EQ_U32", COND_EQ>; -defm V_CMP_LE_U32 : VOPC_I32 <0x000000c3, "V_CMP_LE_U32", COND_ULE>; -defm V_CMP_GT_U32 : VOPC_I32 <0x000000c4, "V_CMP_GT_U32", COND_UGT>; -defm V_CMP_NE_U32 : VOPC_I32 <0x000000c5, "V_CMP_NE_U32", COND_NE>; -defm V_CMP_GE_U32 : VOPC_I32 <0x000000c6, "V_CMP_GE_U32", COND_UGE>; -defm V_CMP_T_U32 : VOPC_I32 <0x000000c7, "V_CMP_T_U32">; +defm V_CMP_F_U32 : VOPC_I32 , "V_CMP_F_U32">; +defm V_CMP_LT_U32 : VOPC_I32 , "V_CMP_LT_U32", COND_ULT>; +defm V_CMP_EQ_U32 : VOPC_I32 , "V_CMP_EQ_U32", COND_EQ>; +defm V_CMP_LE_U32 : VOPC_I32 , "V_CMP_LE_U32", COND_ULE>; +defm V_CMP_GT_U32 : VOPC_I32 , "V_CMP_GT_U32", COND_UGT>; +defm V_CMP_NE_U32 : VOPC_I32 , "V_CMP_NE_U32", COND_NE>; +defm V_CMP_GE_U32 : VOPC_I32 , "V_CMP_GE_U32", COND_UGE>; +defm V_CMP_T_U32 : VOPC_I32 , "V_CMP_T_U32">; let hasSideEffects = 1 in { -defm V_CMPX_F_U32 : VOPCX_I32 <0x000000d0, "V_CMPX_F_U32">; -defm V_CMPX_LT_U32 : VOPCX_I32 <0x000000d1, "V_CMPX_LT_U32">; -defm V_CMPX_EQ_U32 : VOPCX_I32 <0x000000d2, "V_CMPX_EQ_U32">; -defm V_CMPX_LE_U32 : VOPCX_I32 <0x000000d3, "V_CMPX_LE_U32">; -defm V_CMPX_GT_U32 : VOPCX_I32 <0x000000d4, "V_CMPX_GT_U32">; -defm V_CMPX_NE_U32 : VOPCX_I32 <0x000000d5, "V_CMPX_NE_U32">; -defm V_CMPX_GE_U32 : VOPCX_I32 <0x000000d6, "V_CMPX_GE_U32">; -defm V_CMPX_T_U32 : VOPCX_I32 <0x000000d7, "V_CMPX_T_U32">; +defm V_CMPX_F_U32 : VOPCX_I32 , "V_CMPX_F_U32">; +defm V_CMPX_LT_U32 : VOPCX_I32 , "V_CMPX_LT_U32">; +defm V_CMPX_EQ_U32 : VOPCX_I32 , "V_CMPX_EQ_U32">; +defm V_CMPX_LE_U32 : VOPCX_I32 , "V_CMPX_LE_U32">; +defm V_CMPX_GT_U32 : VOPCX_I32 , "V_CMPX_GT_U32">; +defm V_CMPX_NE_U32 : VOPCX_I32 , "V_CMPX_NE_U32">; +defm V_CMPX_GE_U32 : VOPCX_I32 , "V_CMPX_GE_U32">; +defm V_CMPX_T_U32 : VOPCX_I32 , "V_CMPX_T_U32">; } // End hasSideEffects = 1 -defm V_CMP_F_U64 : VOPC_I64 <0x000000e0, "V_CMP_F_U64">; -defm V_CMP_LT_U64 : VOPC_I64 <0x000000e1, "V_CMP_LT_U64", COND_ULT>; -defm V_CMP_EQ_U64 : VOPC_I64 <0x000000e2, "V_CMP_EQ_U64", COND_EQ>; -defm V_CMP_LE_U64 : VOPC_I64 <0x000000e3, "V_CMP_LE_U64", COND_ULE>; -defm V_CMP_GT_U64 : VOPC_I64 <0x000000e4, "V_CMP_GT_U64", COND_UGT>; -defm V_CMP_NE_U64 : VOPC_I64 <0x000000e5, "V_CMP_NE_U64", COND_NE>; -defm V_CMP_GE_U64 : VOPC_I64 <0x000000e6, "V_CMP_GE_U64", COND_UGE>; -defm V_CMP_T_U64 : VOPC_I64 <0x000000e7, "V_CMP_T_U64">; +defm V_CMP_F_U64 : VOPC_I64 , "V_CMP_F_U64">; +defm V_CMP_LT_U64 : VOPC_I64 , "V_CMP_LT_U64", COND_ULT>; +defm V_CMP_EQ_U64 : VOPC_I64 , "V_CMP_EQ_U64", COND_EQ>; +defm V_CMP_LE_U64 : VOPC_I64 , "V_CMP_LE_U64", COND_ULE>; +defm V_CMP_GT_U64 : VOPC_I64 , "V_CMP_GT_U64", COND_UGT>; +defm V_CMP_NE_U64 : VOPC_I64 , "V_CMP_NE_U64", COND_NE>; +defm V_CMP_GE_U64 : VOPC_I64 , "V_CMP_GE_U64", COND_UGE>; +defm V_CMP_T_U64 : VOPC_I64 , "V_CMP_T_U64">; let hasSideEffects = 1 in { -defm V_CMPX_F_U64 : VOPCX_I64 <0x000000f0, "V_CMPX_F_U64">; -defm V_CMPX_LT_U64 : VOPCX_I64 <0x000000f1, "V_CMPX_LT_U64">; -defm V_CMPX_EQ_U64 : VOPCX_I64 <0x000000f2, "V_CMPX_EQ_U64">; -defm V_CMPX_LE_U64 : VOPCX_I64 <0x000000f3, "V_CMPX_LE_U64">; -defm V_CMPX_GT_U64 : VOPCX_I64 <0x000000f4, "V_CMPX_GT_U64">; -defm V_CMPX_NE_U64 : VOPCX_I64 <0x000000f5, "V_CMPX_NE_U64">; -defm V_CMPX_GE_U64 : VOPCX_I64 <0x000000f6, "V_CMPX_GE_U64">; -defm V_CMPX_T_U64 : VOPCX_I64 <0x000000f7, "V_CMPX_T_U64">; +defm V_CMPX_F_U64 : VOPCX_I64 , "V_CMPX_F_U64">; +defm V_CMPX_LT_U64 : VOPCX_I64 , "V_CMPX_LT_U64">; +defm V_CMPX_EQ_U64 : VOPCX_I64 , "V_CMPX_EQ_U64">; +defm V_CMPX_LE_U64 : VOPCX_I64 , "V_CMPX_LE_U64">; +defm V_CMPX_GT_U64 : VOPCX_I64 , "V_CMPX_GT_U64">; +defm V_CMPX_NE_U64 : VOPCX_I64 , "V_CMPX_NE_U64">; +defm V_CMPX_GE_U64 : VOPCX_I64 , "V_CMPX_GE_U64">; +defm V_CMPX_T_U64 : VOPCX_I64 , "V_CMPX_T_U64">; } // End hasSideEffects = 1 -defm V_CMP_CLASS_F32 : VOPC_F32 <0x00000088, "V_CMP_CLASS_F32">; +defm V_CMP_CLASS_F32 : VOPC_F32 , "V_CMP_CLASS_F32">; let hasSideEffects = 1 in { -defm V_CMPX_CLASS_F32 : VOPCX_F32 <0x00000098, "V_CMPX_CLASS_F32">; +defm V_CMPX_CLASS_F32 : VOPCX_F32 , "V_CMPX_CLASS_F32">; } // End hasSideEffects = 1 -defm V_CMP_CLASS_F64 : VOPC_F64 <0x000000a8, "V_CMP_CLASS_F64">; +defm V_CMP_CLASS_F64 : VOPC_F64 , "V_CMP_CLASS_F64">; let hasSideEffects = 1 in { -defm V_CMPX_CLASS_F64 : VOPCX_F64 <0x000000b8, "V_CMPX_CLASS_F64">; +defm V_CMPX_CLASS_F64 : VOPCX_F64 , "V_CMPX_CLASS_F64">; } // End hasSideEffects = 1 } // End isCompare = 1