Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 025ba02

Browse files
authored
Merge pull request #15869 from sdmaclea/PR-ARM64-is16Byte
[Arm64] Use is16Byte
2 parents 5bcfde4 + 41ed1d7 commit 025ba02

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/jit/codegenarm64.cpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,7 +3843,7 @@ void CodeGen::genSIMDIntrinsic(GenTreeSIMD* simdNode)
38433843
}
38443844
}
38453845

3846-
insOpts CodeGen::genGetSimdInsOpt(bool is16B, var_types elementType)
3846+
insOpts CodeGen::genGetSimdInsOpt(bool is16Byte, var_types elementType)
38473847
{
38483848
insOpts result = INS_OPTS_NONE;
38493849

@@ -3852,20 +3852,20 @@ insOpts CodeGen::genGetSimdInsOpt(bool is16B, var_types elementType)
38523852
case TYP_DOUBLE:
38533853
case TYP_ULONG:
38543854
case TYP_LONG:
3855-
result = is16B ? INS_OPTS_2D : INS_OPTS_1D;
3855+
result = is16Byte ? INS_OPTS_2D : INS_OPTS_1D;
38563856
break;
38573857
case TYP_FLOAT:
38583858
case TYP_UINT:
38593859
case TYP_INT:
3860-
result = is16B ? INS_OPTS_4S : INS_OPTS_2S;
3860+
result = is16Byte ? INS_OPTS_4S : INS_OPTS_2S;
38613861
break;
38623862
case TYP_USHORT:
38633863
case TYP_SHORT:
3864-
result = is16B ? INS_OPTS_8H : INS_OPTS_4H;
3864+
result = is16Byte ? INS_OPTS_8H : INS_OPTS_4H;
38653865
break;
38663866
case TYP_UBYTE:
38673867
case TYP_BYTE:
3868-
result = is16B ? INS_OPTS_16B : INS_OPTS_8B;
3868+
result = is16Byte ? INS_OPTS_16B : INS_OPTS_8B;
38693869
break;
38703870
default:
38713871
assert(!"Unsupported element type");
@@ -4090,9 +4090,9 @@ void CodeGen::genSIMDIntrinsicInit(GenTreeSIMD* simdNode)
40904090
assert(genIsValidFloatReg(targetReg));
40914091
assert(genIsValidIntReg(op1Reg) || genIsValidFloatReg(op1Reg));
40924092

4093-
bool is16B = (simdNode->gtSIMDSize > 8);
4094-
emitAttr attr = is16B ? EA_16BYTE : EA_8BYTE;
4095-
insOpts opt = genGetSimdInsOpt(is16B, baseType);
4093+
bool is16Byte = (simdNode->gtSIMDSize > 8);
4094+
emitAttr attr = is16Byte ? EA_16BYTE : EA_8BYTE;
4095+
insOpts opt = genGetSimdInsOpt(is16Byte, baseType);
40964096

40974097
if (genIsValidIntReg(op1Reg))
40984098
{
@@ -4218,9 +4218,9 @@ void CodeGen::genSIMDIntrinsicUnOp(GenTreeSIMD* simdNode)
42184218

42194219
instruction ins = getOpForSIMDIntrinsic(simdNode->gtSIMDIntrinsicID, baseType);
42204220

4221-
bool is16B = (simdNode->gtSIMDSize > 8);
4222-
emitAttr attr = is16B ? EA_16BYTE : EA_8BYTE;
4223-
insOpts opt = (ins == INS_mov) ? INS_OPTS_NONE : genGetSimdInsOpt(is16B, baseType);
4221+
bool is16Byte = (simdNode->gtSIMDSize > 8);
4222+
emitAttr attr = is16Byte ? EA_16BYTE : EA_8BYTE;
4223+
insOpts opt = (ins == INS_mov) ? INS_OPTS_NONE : genGetSimdInsOpt(is16Byte, baseType);
42244224

42254225
getEmitter()->emitIns_R_R(ins, attr, targetReg, op1Reg, opt);
42264226

@@ -4260,10 +4260,10 @@ void CodeGen::genSIMDIntrinsicWiden(GenTreeSIMD* simdNode)
42604260
}
42614261
else
42624262
{
4263-
bool is16B = (simdNode->gtSIMDIntrinsicID == SIMDIntrinsicWidenHi);
4264-
insOpts opt = genGetSimdInsOpt(is16B, baseType);
4263+
bool is16Byte = (simdNode->gtSIMDIntrinsicID == SIMDIntrinsicWidenHi);
4264+
insOpts opt = genGetSimdInsOpt(is16Byte, baseType);
42654265

4266-
getEmitter()->emitIns_R_R(ins, is16B ? EA_16BYTE : EA_8BYTE, targetReg, op1Reg, opt);
4266+
getEmitter()->emitIns_R_R(ins, is16Byte ? EA_16BYTE : EA_8BYTE, targetReg, op1Reg, opt);
42674267
}
42684268

42694269
genProduceReg(simdNode);
@@ -4388,9 +4388,9 @@ void CodeGen::genSIMDIntrinsicBinOp(GenTreeSIMD* simdNode)
43884388

43894389
instruction ins = getOpForSIMDIntrinsic(simdNode->gtSIMDIntrinsicID, baseType);
43904390

4391-
bool is16B = (simdNode->gtSIMDSize > 8);
4392-
emitAttr attr = is16B ? EA_16BYTE : EA_8BYTE;
4393-
insOpts opt = genGetSimdInsOpt(is16B, baseType);
4391+
bool is16Byte = (simdNode->gtSIMDSize > 8);
4392+
emitAttr attr = is16Byte ? EA_16BYTE : EA_8BYTE;
4393+
insOpts opt = genGetSimdInsOpt(is16Byte, baseType);
43944394

43954395
getEmitter()->emitIns_R_R_R(ins, attr, targetReg, op1Reg, op2Reg, opt);
43964396

@@ -4425,9 +4425,9 @@ void CodeGen::genSIMDIntrinsicRelOp(GenTreeSIMD* simdNode)
44254425

44264426
instruction ins = getOpForSIMDIntrinsic(SIMDIntrinsicEqual, baseType);
44274427

4428-
bool is16B = (simdNode->gtSIMDSize > 8);
4429-
emitAttr attr = is16B ? EA_16BYTE : EA_8BYTE;
4430-
insOpts opt = genGetSimdInsOpt(is16B, baseType);
4428+
bool is16Byte = (simdNode->gtSIMDSize > 8);
4429+
emitAttr attr = is16Byte ? EA_16BYTE : EA_8BYTE;
4430+
insOpts opt = genGetSimdInsOpt(is16Byte, baseType);
44314431

44324432
// TODO-ARM64-CQ Contain integer constants where posible
44334433

@@ -4494,9 +4494,9 @@ void CodeGen::genSIMDIntrinsicDotProduct(GenTreeSIMD* simdNode)
44944494

44954495
instruction ins = getOpForSIMDIntrinsic(SIMDIntrinsicMul, baseType);
44964496

4497-
bool is16B = (simdNode->gtSIMDSize > 8);
4498-
emitAttr attr = is16B ? EA_16BYTE : EA_8BYTE;
4499-
insOpts opt = genGetSimdInsOpt(is16B, baseType);
4497+
bool is16Byte = (simdNode->gtSIMDSize > 8);
4498+
emitAttr attr = is16Byte ? EA_16BYTE : EA_8BYTE;
4499+
insOpts opt = genGetSimdInsOpt(is16Byte, baseType);
45004500

45014501
// Vector multiply
45024502
getEmitter()->emitIns_R_R_R(ins, attr, tmpReg, op1Reg, op2Reg, opt);

0 commit comments

Comments
 (0)