-
Notifications
You must be signed in to change notification settings - Fork 5.2k
ARM64-SVE: gathervector #103159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARM64-SVE: gathervector #103159
Changes from 2 commits
7ed74a3
c7d4fc4
42dc35c
f3c5eb4
60dc92f
747aa17
1942bde
d41d2c2
8066bbb
5a62f7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1845,6 +1845,38 @@ void CodeGen::genHWIntrinsic(GenTreeHWIntrinsic* node) | |
break; | ||
} | ||
|
||
case NI_Sve_GatherVector: | ||
{ | ||
if (!varTypeIsSIMD(intrin.op2->gtType)) | ||
{ | ||
// GatherVector(Vector<T> mask, T* address, Vector<T2> indices) | ||
|
||
var_types auxType = node->GetAuxiliaryType(); | ||
emitAttr auxSize = emitActualTypeSize(auxType); | ||
|
||
if (auxSize == EA_8BYTE) | ||
{ | ||
opt = varTypeIsUnsigned(auxType) ? INS_OPTS_SCALABLE_D_UXTW : INS_OPTS_SCALABLE_D_SXTW; | ||
|
||
} | ||
else | ||
{ | ||
assert(auxSize == EA_4BYTE); | ||
opt = varTypeIsUnsigned(auxType) ? INS_OPTS_SCALABLE_S_UXTW : INS_OPTS_SCALABLE_S_SXTW; | ||
} | ||
|
||
GetEmitter()->emitIns_R_R_R_R(ins, emitSize, targetReg, op1Reg, op2Reg, op3Reg, opt, | ||
INS_SCALABLE_OPTS_MOD_N); | ||
} | ||
else | ||
{ | ||
// GatherVector(Vector<T> mask, Vector<T2> addresses) | ||
|
||
GetEmitter()->emitIns_R_R_R_I(ins, emitSize, targetReg, op1Reg, op2Reg, 0, opt); | ||
} | ||
|
||
break; | ||
} | ||
|
||
case NI_Sve_ReverseElement: | ||
// Use non-predicated version explicitly | ||
GetEmitter()->emitIns_R_R(ins, emitSize, targetReg, op1Reg, opt, INS_SCALABLE_OPTS_UNPREDICATED); | ||
|
Uh oh!
There was an error while loading. Please reload this page.