llvm.org GIT mirror llvm / 91d79de
[X86][AVX] Renamed VPERMILPI shuffle comment macros to be more specific git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274467 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 4 years ago
1 changed file(s) with 27 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
109109 CASE_MASKZ_INS_COMMON(Inst, Z256, r##src##i) \
110110 CASE_MASKZ_INS_COMMON(Inst, Z128, r##src##i)
111111
112 #define CASE_VPERM(Inst, src) \
112 #define CASE_VPERMILPI(Inst, src) \
113113 CASE_AVX512_INS_COMMON(Inst, Z, src##i) \
114114 CASE_AVX512_INS_COMMON(Inst, Z256, src##i) \
115115 CASE_AVX512_INS_COMMON(Inst, Z128, src##i) \
116116 CASE_AVX_INS_COMMON(Inst, , src##i) \
117117 CASE_AVX_INS_COMMON(Inst, Y, src##i)
118118
119 #define CASE_MASK_VPERM(Inst, src) \
119 #define CASE_MASK_VPERMILPI(Inst, src) \
120120 CASE_MASK_INS_COMMON(Inst, Z, src##i) \
121121 CASE_MASK_INS_COMMON(Inst, Z256, src##i) \
122122 CASE_MASK_INS_COMMON(Inst, Z128, src##i)
123123
124 #define CASE_MASKZ_VPERM(Inst, src) \
124 #define CASE_MASKZ_VPERMILPI(Inst, src) \
125125 CASE_MASKZ_INS_COMMON(Inst, Z, src##i) \
126126 CASE_MASKZ_INS_COMMON(Inst, Z256, src##i) \
127127 CASE_MASKZ_INS_COMMON(Inst, Z128, src##i)
245245 CASE_MASKZ_SHUF(SHUFPD, r)
246246 CASE_MASKZ_SHUF(SHUFPS, m)
247247 CASE_MASKZ_SHUF(SHUFPS, r)
248 CASE_MASKZ_VPERM(PERMILPD, m)
249 CASE_MASKZ_VPERM(PERMILPD, r)
250 CASE_MASKZ_VPERM(PERMILPS, m)
251 CASE_MASKZ_VPERM(PERMILPS, r)
252 CASE_MASKZ_VPERM(PSHUFD, m)
253 CASE_MASKZ_VPERM(PSHUFD, r)
254 CASE_MASKZ_VPERM(PSHUFHW, m)
255 CASE_MASKZ_VPERM(PSHUFHW, r)
256 CASE_MASKZ_VPERM(PSHUFLW, m)
257 CASE_MASKZ_VPERM(PSHUFLW, r)
248 CASE_MASKZ_VPERMILPI(PERMILPD, m)
249 CASE_MASKZ_VPERMILPI(PERMILPD, r)
250 CASE_MASKZ_VPERMILPI(PERMILPS, m)
251 CASE_MASKZ_VPERMILPI(PERMILPS, r)
252 CASE_MASKZ_VPERMILPI(PSHUFD, m)
253 CASE_MASKZ_VPERMILPI(PSHUFD, r)
254 CASE_MASKZ_VPERMILPI(PSHUFHW, m)
255 CASE_MASKZ_VPERMILPI(PSHUFHW, r)
256 CASE_MASKZ_VPERMILPI(PSHUFLW, m)
257 CASE_MASKZ_VPERMILPI(PSHUFLW, r)
258258 CASE_MASKZ_VSHUF(64X2, m)
259259 CASE_MASKZ_VSHUF(64X2, r)
260260 CASE_MASKZ_VSHUF(32X4, m)
306306 CASE_MASK_SHUF(SHUFPD, r)
307307 CASE_MASK_SHUF(SHUFPS, m)
308308 CASE_MASK_SHUF(SHUFPS, r)
309 CASE_MASK_VPERM(PERMILPD, m)
310 CASE_MASK_VPERM(PERMILPD, r)
311 CASE_MASK_VPERM(PERMILPS, m)
312 CASE_MASK_VPERM(PERMILPS, r)
313 CASE_MASK_VPERM(PSHUFD, m)
314 CASE_MASK_VPERM(PSHUFD, r)
315 CASE_MASK_VPERM(PSHUFHW, m)
316 CASE_MASK_VPERM(PSHUFHW, r)
317 CASE_MASK_VPERM(PSHUFLW, m)
318 CASE_MASK_VPERM(PSHUFLW, r)
309 CASE_MASK_VPERMILPI(PERMILPD, m)
310 CASE_MASK_VPERMILPI(PERMILPD, r)
311 CASE_MASK_VPERMILPI(PERMILPS, m)
312 CASE_MASK_VPERMILPI(PERMILPS, r)
313 CASE_MASK_VPERMILPI(PSHUFD, m)
314 CASE_MASK_VPERMILPI(PSHUFD, r)
315 CASE_MASK_VPERMILPI(PSHUFHW, m)
316 CASE_MASK_VPERMILPI(PSHUFHW, r)
317 CASE_MASK_VPERMILPI(PSHUFLW, m)
318 CASE_MASK_VPERMILPI(PSHUFLW, r)
319319 CASE_MASK_VSHUF(64X2, m)
320320 CASE_MASK_VSHUF(64X2, r)
321321 CASE_MASK_VSHUF(32X4, m)
788788 DestName = getRegName(MI->getOperand(0).getReg());
789789 break;
790790
791 CASE_VPERM(PERMILPS, r)
791 CASE_VPERMILPI(PERMILPS, r)
792792 Src1Name = getRegName(MI->getOperand(NumOperands - 2).getReg());
793793 // FALL THROUGH.
794 CASE_VPERM(PERMILPS, m)
794 CASE_VPERMILPI(PERMILPS, m)
795795 if (MI->getOperand(NumOperands - 1).isImm())
796796 DecodePSHUFMask(getRegOperandVectorVT(MI, MVT::f32, 0),
797797 MI->getOperand(NumOperands - 1).getImm(),
799799 DestName = getRegName(MI->getOperand(0).getReg());
800800 break;
801801
802 CASE_VPERM(PERMILPD, r)
802 CASE_VPERMILPI(PERMILPD, r)
803803 Src1Name = getRegName(MI->getOperand(NumOperands - 2).getReg());
804804 // FALL THROUGH.
805 CASE_VPERM(PERMILPD, m)
805 CASE_VPERMILPI(PERMILPD, m)
806806 if (MI->getOperand(NumOperands - 1).isImm())
807807 DecodePSHUFMask(getRegOperandVectorVT(MI, MVT::f64, 0),
808808 MI->getOperand(NumOperands - 1).getImm(),