Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve code readability by operating byte-sized elements.
  • Loading branch information
mikabl-arm committed May 10, 2024
commit 7fee93222228e1172600d4a9d17a503fba414fb5
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace JIT.HardwareIntrinsics.Arm
throw new Exception("Incorrect esize");
}

int elements = (int)(Sve.Count64BitElements()) * 64 / esize;
int elements = (int)(Sve.Count8BitElements()) * 8 / esize;
switch (bitpattern)
{
case {Op1Type}.LargestPowerOf2:
Expand Down Expand Up @@ -128,7 +128,7 @@ namespace JIT.HardwareIntrinsics.Arm

private static {RetVectorType}<{RetBaseType}> PtrueOp({Op1Type} bitpattern, int esize)
{
int VL = (int)(Sve.Count64BitElements()) * 64;
int VL = (int)(Sve.Count8BitElements()) * 8;
int PL = VL / 8;
int elements = VL / esize;
int count = DecodePredCount(bitpattern, esize);
Expand Down