[llvm] r334785 - [X86] Add 'Z' to the internal names of various EVEX instructions for overall consistency.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 14 21:42:54 PDT 2018
Author: ctopper
Date: Thu Jun 14 21:42:54 2018
New Revision: 334785
URL: http://llvm.org/viewvc/llvm-project?rev=334785&view=rev
Log:
[X86] Add 'Z' to the internal names of various EVEX instructions for overall consistency.
Modified:
llvm/trunk/lib/Target/X86/X86EvexToVex.cpp
llvm/trunk/lib/Target/X86/X86InstrAVX512.td
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
llvm/trunk/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
Modified: llvm/trunk/lib/Target/X86/X86EvexToVex.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86EvexToVex.cpp?rev=334785&r1=334784&r2=334785&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86EvexToVex.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86EvexToVex.cpp Thu Jun 14 21:42:54 2018
@@ -205,14 +205,14 @@ static bool performCustomAdjustments(Mac
case X86::VRNDSCALEPDZ256rmi:
case X86::VRNDSCALEPSZ256rri:
case X86::VRNDSCALEPSZ256rmi:
- case X86::VRNDSCALESDr:
- case X86::VRNDSCALESDm:
- case X86::VRNDSCALESSr:
- case X86::VRNDSCALESSm:
- case X86::VRNDSCALESDr_Int:
- case X86::VRNDSCALESDm_Int:
- case X86::VRNDSCALESSr_Int:
- case X86::VRNDSCALESSm_Int:
+ case X86::VRNDSCALESDZr:
+ case X86::VRNDSCALESDZm:
+ case X86::VRNDSCALESSZr:
+ case X86::VRNDSCALESSZm:
+ case X86::VRNDSCALESDZr_Int:
+ case X86::VRNDSCALESDZm_Int:
+ case X86::VRNDSCALESSZr_Int:
+ case X86::VRNDSCALESSZm_Int:
const MachineOperand &Imm = MI.getOperand(MI.getNumExplicitOperands()-1);
int64_t ImmVal = Imm.getImm();
// Ensure that only bits 3:0 of the immediate are used.
Modified: llvm/trunk/lib/Target/X86/X86InstrAVX512.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrAVX512.td?rev=334785&r1=334784&r2=334785&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrAVX512.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrAVX512.td Thu Jun 14 21:42:54 2018
@@ -8292,18 +8292,18 @@ multiclass avx512_fp14_s<bits<8> opc, st
}
}
-defm VRCP14SS : avx512_fp14_s<0x4D, "vrcp14ss", X86rcp14s, SchedWriteFRcp.Scl,
- f32x_info>, EVEX_CD8<32, CD8VT1>,
- T8PD;
-defm VRCP14SD : avx512_fp14_s<0x4D, "vrcp14sd", X86rcp14s, SchedWriteFRcp.Scl,
- f64x_info>, VEX_W, EVEX_CD8<64, CD8VT1>,
- T8PD;
-defm VRSQRT14SS : avx512_fp14_s<0x4F, "vrsqrt14ss", X86rsqrt14s,
- SchedWriteFRsqrt.Scl, f32x_info>,
- EVEX_CD8<32, CD8VT1>, T8PD;
-defm VRSQRT14SD : avx512_fp14_s<0x4F, "vrsqrt14sd", X86rsqrt14s,
- SchedWriteFRsqrt.Scl, f64x_info>, VEX_W,
- EVEX_CD8<64, CD8VT1>, T8PD;
+defm VRCP14SSZ : avx512_fp14_s<0x4D, "vrcp14ss", X86rcp14s, SchedWriteFRcp.Scl,
+ f32x_info>, EVEX_CD8<32, CD8VT1>,
+ T8PD;
+defm VRCP14SDZ : avx512_fp14_s<0x4D, "vrcp14sd", X86rcp14s, SchedWriteFRcp.Scl,
+ f64x_info>, VEX_W, EVEX_CD8<64, CD8VT1>,
+ T8PD;
+defm VRSQRT14SSZ : avx512_fp14_s<0x4F, "vrsqrt14ss", X86rsqrt14s,
+ SchedWriteFRsqrt.Scl, f32x_info>,
+ EVEX_CD8<32, CD8VT1>, T8PD;
+defm VRSQRT14SDZ : avx512_fp14_s<0x4F, "vrsqrt14sd", X86rsqrt14s,
+ SchedWriteFRsqrt.Scl, f64x_info>, VEX_W,
+ EVEX_CD8<64, CD8VT1>, T8PD;
/// avx512_fp14_p rcp14ps, rcp14pd, rsqrt14ps, rsqrt14pd
multiclass avx512_fp14_p<bits<8> opc, string OpcodeStr, SDNode OpNode,
@@ -8383,10 +8383,10 @@ multiclass avx512_fp28_s<bits<8> opc, st
multiclass avx512_eri_s<bits<8> opc, string OpcodeStr, SDNode OpNode,
X86FoldableSchedWrite sched> {
- defm SS : avx512_fp28_s<opc, OpcodeStr#"ss", f32x_info, OpNode, sched>,
- EVEX_CD8<32, CD8VT1>;
- defm SD : avx512_fp28_s<opc, OpcodeStr#"sd", f64x_info, OpNode, sched>,
- EVEX_CD8<64, CD8VT1>, VEX_W;
+ defm SSZ : avx512_fp28_s<opc, OpcodeStr#"ss", f32x_info, OpNode, sched>,
+ EVEX_CD8<32, CD8VT1>;
+ defm SDZ : avx512_fp28_s<opc, OpcodeStr#"sd", f64x_info, OpNode, sched>,
+ EVEX_CD8<64, CD8VT1>, VEX_W;
}
let Predicates = [HasERI] in {
@@ -8436,12 +8436,12 @@ multiclass avx512_fp28_p_round<bits<8> o
multiclass avx512_eri<bits<8> opc, string OpcodeStr, SDNode OpNode,
X86SchedWriteWidths sched> {
- defm PS : avx512_fp28_p<opc, OpcodeStr#"ps", v16f32_info, OpNode, sched.ZMM>,
- avx512_fp28_p_round<opc, OpcodeStr#"ps", v16f32_info, OpNode, sched.ZMM>,
- T8PD, EVEX_V512, EVEX_CD8<32, CD8VF>;
- defm PD : avx512_fp28_p<opc, OpcodeStr#"pd", v8f64_info, OpNode, sched.ZMM>,
- avx512_fp28_p_round<opc, OpcodeStr#"pd", v8f64_info, OpNode, sched.ZMM>,
- T8PD, EVEX_V512, VEX_W, EVEX_CD8<64, CD8VF>;
+ defm PSZ : avx512_fp28_p<opc, OpcodeStr#"ps", v16f32_info, OpNode, sched.ZMM>,
+ avx512_fp28_p_round<opc, OpcodeStr#"ps", v16f32_info, OpNode, sched.ZMM>,
+ T8PD, EVEX_V512, EVEX_CD8<32, CD8VF>;
+ defm PDZ : avx512_fp28_p<opc, OpcodeStr#"pd", v8f64_info, OpNode, sched.ZMM>,
+ avx512_fp28_p_round<opc, OpcodeStr#"pd", v8f64_info, OpNode, sched.ZMM>,
+ T8PD, EVEX_V512, VEX_W, EVEX_CD8<64, CD8VF>;
}
multiclass avx512_fp_unaryop_packed<bits<8> opc, string OpcodeStr,
@@ -8683,15 +8683,15 @@ multiclass avx512_rndscale_scalar<bits<8
}
}
-defm VRNDSCALESS : avx512_rndscale_scalar<0x0A, "vrndscaless",
- SchedWriteFRnd.Scl, f32x_info>,
- AVX512AIi8Base, EVEX_4V,
- EVEX_CD8<32, CD8VT1>;
-
-defm VRNDSCALESD : avx512_rndscale_scalar<0x0B, "vrndscalesd",
- SchedWriteFRnd.Scl, f64x_info>,
- VEX_W, AVX512AIi8Base, EVEX_4V,
- EVEX_CD8<64, CD8VT1>;
+defm VRNDSCALESSZ : avx512_rndscale_scalar<0x0A, "vrndscaless",
+ SchedWriteFRnd.Scl, f32x_info>,
+ AVX512AIi8Base, EVEX_4V,
+ EVEX_CD8<32, CD8VT1>;
+
+defm VRNDSCALESDZ : avx512_rndscale_scalar<0x0B, "vrndscalesd",
+ SchedWriteFRnd.Scl, f64x_info>,
+ VEX_W, AVX512AIi8Base, EVEX_4V,
+ EVEX_CD8<64, CD8VT1>;
multiclass avx512_masked_scalar<SDNode OpNode, string OpcPrefix, SDNode Move,
dag Mask, X86VectorVTInfo _, PatLeaf ZeroFP,
@@ -11096,12 +11096,12 @@ multiclass avx512_fixupimm_packed_all<X8
}
}
-defm VFIXUPIMMSS : avx512_fixupimm_scalar<0x55, "vfixupimm", X86VFixupimmScalar,
- SchedWriteFAdd.Scl, f32x_info, v4i32x_info>,
- AVX512AIi8Base, VEX_LIG, EVEX_4V, EVEX_CD8<32, CD8VT1>;
-defm VFIXUPIMMSD : avx512_fixupimm_scalar<0x55, "vfixupimm", X86VFixupimmScalar,
- SchedWriteFAdd.Scl, f64x_info, v2i64x_info>,
- AVX512AIi8Base, VEX_LIG, EVEX_4V, EVEX_CD8<64, CD8VT1>, VEX_W;
+defm VFIXUPIMMSSZ : avx512_fixupimm_scalar<0x55, "vfixupimm", X86VFixupimmScalar,
+ SchedWriteFAdd.Scl, f32x_info, v4i32x_info>,
+ AVX512AIi8Base, VEX_LIG, EVEX_4V, EVEX_CD8<32, CD8VT1>;
+defm VFIXUPIMMSDZ : avx512_fixupimm_scalar<0x55, "vfixupimm", X86VFixupimmScalar,
+ SchedWriteFAdd.Scl, f64x_info, v2i64x_info>,
+ AVX512AIi8Base, VEX_LIG, EVEX_4V, EVEX_CD8<64, CD8VT1>, VEX_W;
defm VFIXUPIMMPS : avx512_fixupimm_packed_all<SchedWriteFAdd, avx512vl_f32_info>,
EVEX_CD8<32, CD8VF>;
defm VFIXUPIMMPD : avx512_fixupimm_packed_all<SchedWriteFAdd, avx512vl_f64_info>,
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=334785&r1=334784&r2=334785&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Thu Jun 14 21:42:54 2018
@@ -1010,12 +1010,12 @@ X86InstrInfo::X86InstrInfo(X86Subtarget
{ X86::VPSRLWZri, X86::VPSRLWZmi, 0 },
{ X86::VRCP14PDZr, X86::VRCP14PDZm, 0 },
{ X86::VRCP14PSZr, X86::VRCP14PSZm, 0 },
- { X86::VRCP28PDr, X86::VRCP28PDm, 0 },
- { X86::VRCP28PSr, X86::VRCP28PSm, 0 },
+ { X86::VRCP28PDZr, X86::VRCP28PDZm, 0 },
+ { X86::VRCP28PSZr, X86::VRCP28PSZm, 0 },
{ X86::VRSQRT14PDZr, X86::VRSQRT14PDZm, 0 },
{ X86::VRSQRT14PSZr, X86::VRSQRT14PSZm, 0 },
- { X86::VRSQRT28PDr, X86::VRSQRT28PDm, 0 },
- { X86::VRSQRT28PSr, X86::VRSQRT28PSm, 0 },
+ { X86::VRSQRT28PDZr, X86::VRSQRT28PDZm, 0 },
+ { X86::VRSQRT28PSZr, X86::VRSQRT28PSZm, 0 },
{ X86::VSQRTPDZr, X86::VSQRTPDZm, 0 },
{ X86::VSQRTPSZr, X86::VSQRTPSZm, 0 },
{ X86::VUCOMISDZrr, X86::VUCOMISDZrm, 0 },
@@ -2189,20 +2189,20 @@ X86InstrInfo::X86InstrInfo(X86Subtarget
{ X86::VRANGEPSZrri, X86::VRANGEPSZrmi, 0 },
{ X86::VRANGESDZrri, X86::VRANGESDZrmi, TB_NO_REVERSE },
{ X86::VRANGESSZrri, X86::VRANGESSZrmi, TB_NO_REVERSE },
- { X86::VRCP14SDrr, X86::VRCP14SDrm, TB_NO_REVERSE },
- { X86::VRCP14SSrr, X86::VRCP14SSrm, TB_NO_REVERSE },
- { X86::VRCP28SDr, X86::VRCP28SDm, TB_NO_REVERSE },
- { X86::VRCP28SSr, X86::VRCP28SSm, TB_NO_REVERSE },
+ { X86::VRCP14SDZrr, X86::VRCP14SDZrm, TB_NO_REVERSE },
+ { X86::VRCP14SSZrr, X86::VRCP14SSZrm, TB_NO_REVERSE },
+ { X86::VRCP28SDZr, X86::VRCP28SDZm, TB_NO_REVERSE },
+ { X86::VRCP28SSZr, X86::VRCP28SSZm, TB_NO_REVERSE },
{ X86::VREDUCESDZrri, X86::VREDUCESDZrmi, TB_NO_REVERSE },
{ X86::VREDUCESSZrri, X86::VREDUCESSZrmi, TB_NO_REVERSE },
- { X86::VRNDSCALESDr, X86::VRNDSCALESDm, 0 },
- { X86::VRNDSCALESDr_Int, X86::VRNDSCALESDm_Int, TB_NO_REVERSE },
- { X86::VRNDSCALESSr, X86::VRNDSCALESSm, 0 },
- { X86::VRNDSCALESSr_Int, X86::VRNDSCALESSm_Int, TB_NO_REVERSE },
- { X86::VRSQRT14SDrr, X86::VRSQRT14SDrm, TB_NO_REVERSE },
- { X86::VRSQRT14SSrr, X86::VRSQRT14SSrm, TB_NO_REVERSE },
- { X86::VRSQRT28SDr, X86::VRSQRT28SDm, TB_NO_REVERSE },
- { X86::VRSQRT28SSr, X86::VRSQRT28SSm, TB_NO_REVERSE },
+ { X86::VRNDSCALESDZr, X86::VRNDSCALESDZm, 0 },
+ { X86::VRNDSCALESDZr_Int, X86::VRNDSCALESDZm_Int, TB_NO_REVERSE },
+ { X86::VRNDSCALESSZr, X86::VRNDSCALESSZm, 0 },
+ { X86::VRNDSCALESSZr_Int, X86::VRNDSCALESSZm_Int, TB_NO_REVERSE },
+ { X86::VRSQRT14SDZrr, X86::VRSQRT14SDZrm, TB_NO_REVERSE },
+ { X86::VRSQRT14SSZrr, X86::VRSQRT14SSZrm, TB_NO_REVERSE },
+ { X86::VRSQRT28SDZr, X86::VRSQRT28SDZm, TB_NO_REVERSE },
+ { X86::VRSQRT28SSZr, X86::VRSQRT28SSZm, TB_NO_REVERSE },
{ X86::VSCALEFPDZrr, X86::VSCALEFPDZrm, 0 },
{ X86::VSCALEFPSZrr, X86::VSCALEFPSZrm, 0 },
{ X86::VSCALEFSDZrr, X86::VSCALEFSDZrm, TB_NO_REVERSE },
@@ -2817,8 +2817,8 @@ X86InstrInfo::X86InstrInfo(X86Subtarget
// AVX-512 instructions with 3 source operands.
{ X86::VFIXUPIMMPDZrri, X86::VFIXUPIMMPDZrmi, 0 },
{ X86::VFIXUPIMMPSZrri, X86::VFIXUPIMMPSZrmi, 0 },
- { X86::VFIXUPIMMSDrri, X86::VFIXUPIMMSDrmi, TB_NO_REVERSE },
- { X86::VFIXUPIMMSSrri, X86::VFIXUPIMMSSrmi, TB_NO_REVERSE },
+ { X86::VFIXUPIMMSDZrri, X86::VFIXUPIMMSDZrmi, TB_NO_REVERSE },
+ { X86::VFIXUPIMMSSZrri, X86::VFIXUPIMMSSZrmi, TB_NO_REVERSE },
{ X86::VPDPBUSDSZr, X86::VPDPBUSDSZm, 0 },
{ X86::VPDPBUSDZr, X86::VPDPBUSDZm, 0 },
{ X86::VPDPWSSDSZr, X86::VPDPWSSDSZm, 0 },
@@ -8444,20 +8444,20 @@ static bool hasUndefRegUpdate(unsigned O
case X86::VCVTSS2SDZrrb_Int:
case X86::VCVTSS2SDZrm:
case X86::VCVTSS2SDZrm_Int:
- case X86::VRNDSCALESDr:
- case X86::VRNDSCALESDr_Int:
- case X86::VRNDSCALESDrb_Int:
- case X86::VRNDSCALESDm:
- case X86::VRNDSCALESDm_Int:
- case X86::VRNDSCALESSr:
- case X86::VRNDSCALESSr_Int:
- case X86::VRNDSCALESSrb_Int:
- case X86::VRNDSCALESSm:
- case X86::VRNDSCALESSm_Int:
- case X86::VRCP14SSrr:
- case X86::VRCP14SSrm:
- case X86::VRSQRT14SSrr:
- case X86::VRSQRT14SSrm:
+ case X86::VRNDSCALESDZr:
+ case X86::VRNDSCALESDZr_Int:
+ case X86::VRNDSCALESDZrb_Int:
+ case X86::VRNDSCALESDZm:
+ case X86::VRNDSCALESDZm_Int:
+ case X86::VRNDSCALESSZr:
+ case X86::VRNDSCALESSZr_Int:
+ case X86::VRNDSCALESSZrb_Int:
+ case X86::VRNDSCALESSZm:
+ case X86::VRNDSCALESSZm_Int:
+ case X86::VRCP14SSZrr:
+ case X86::VRCP14SSZrm:
+ case X86::VRSQRT14SSZrr:
+ case X86::VRSQRT14SSZrm:
case X86::VSQRTSSZr:
case X86::VSQRTSSZr_Int:
case X86::VSQRTSSZrb_Int:
Modified: llvm/trunk/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp?rev=334785&r1=334784&r2=334785&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp Thu Jun 14 21:42:54 2018
@@ -172,14 +172,14 @@ void X86EVEX2VEXTablesEmitter::printTabl
{"VRNDSCALEPDZ256rmi", "VROUNDPDYm", false},
{"VRNDSCALEPSZ256rri", "VROUNDPSYr", false},
{"VRNDSCALEPSZ256rmi", "VROUNDPSYm", false},
- {"VRNDSCALESDr", "VROUNDSDr", true},
- {"VRNDSCALESDm", "VROUNDSDm", true},
- {"VRNDSCALESSr", "VROUNDSSr", true},
- {"VRNDSCALESSm", "VROUNDSSm", true},
- {"VRNDSCALESDr_Int", "VROUNDSDr_Int", true},
- {"VRNDSCALESDm_Int", "VROUNDSDm_Int", true},
- {"VRNDSCALESSr_Int", "VROUNDSSr_Int", true},
- {"VRNDSCALESSm_Int", "VROUNDSSm_Int", true},
+ {"VRNDSCALESDZr", "VROUNDSDr", true},
+ {"VRNDSCALESDZm", "VROUNDSDm", true},
+ {"VRNDSCALESSZr", "VROUNDSSr", true},
+ {"VRNDSCALESSZm", "VROUNDSSm", true},
+ {"VRNDSCALESDZr_Int", "VROUNDSDr_Int", true},
+ {"VRNDSCALESDZm_Int", "VROUNDSDm_Int", true},
+ {"VRNDSCALESSZr_Int", "VROUNDSSr_Int", true},
+ {"VRNDSCALESSZm_Int", "VROUNDSSm_Int", true},
};
// Print the manually added entries
More information about the llvm-commits
mailing list