Skip to content

Commit

Permalink
fix the test cases for input data (#93301)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Oct 11, 2023
1 parent 565ee96 commit 5685318
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace JIT.HardwareIntrinsics.Arm
throw new ArgumentException("Invalid value of alignment");
}

this.inArray = new byte[alignment * 2];
this.inArray = new byte[alignment * 2 * 2];
this.outArray1 = new byte[alignment * 2];
this.outArray2 = new byte[alignment * 2];

Expand Down Expand Up @@ -142,7 +142,7 @@ namespace JIT.HardwareIntrinsics.Arm
public {TestName}Test()
{
Succeeded = true;
for (var i = 0; i < OpElementCount; i++) { _data[i] = {NextValueOp2}; }
for (var i = 0; i < DestElementCount; i++) { _data[i] = {NextValueOp2}; }
_dataTable = new DataTable(new {Op1BaseType}[OpElementCount], new {Op1BaseType}[OpElementCount], _data, LargestVectorSize);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace JIT.HardwareIntrinsics.Arm
throw new ArgumentException("Invalid value of alignment");
}

this.inArray = new byte[alignment * 3];
this.inArray = new byte[alignment * 2 * 3];
this.outArray1 = new byte[alignment * 2];
this.outArray2 = new byte[alignment * 2];
this.outArray3 = new byte[alignment * 2];
Expand Down Expand Up @@ -151,7 +151,7 @@ namespace JIT.HardwareIntrinsics.Arm
public {TestName}Test()
{
Succeeded = true;
for (var i = 0; i < OpElementCount; i++) { _data[i] = {NextValueOp2}; }
for (var i = 0; i < DestElementCount; i++) { _data[i] = {NextValueOp2}; }
_dataTable = new DataTable(new {Op1BaseType}[OpElementCount], new {Op1BaseType}[OpElementCount], new {Op1BaseType}[OpElementCount], _data, LargestVectorSize);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace JIT.HardwareIntrinsics.Arm
throw new ArgumentException("Invalid value of alignment");
}

this.inArray = new byte[alignment * 4];
this.inArray = new byte[alignment * 2 * 4];
this.outArray1 = new byte[alignment * 2];
this.outArray2 = new byte[alignment * 2];
this.outArray3 = new byte[alignment * 2];
Expand Down Expand Up @@ -160,7 +160,7 @@ namespace JIT.HardwareIntrinsics.Arm
public {TestName}Test()
{
Succeeded = true;
for (var i = 0; i < OpElementCount; i++) { _data[i] = {NextValueOp2}; }
for (var i = 0; i < DestElementCount; i++) { _data[i] = {NextValueOp2}; }
_dataTable = new DataTable(new {Op1BaseType}[OpElementCount], new {Op1BaseType}[OpElementCount], new {Op1BaseType}[OpElementCount], new {Op1BaseType}[OpElementCount], _data, LargestVectorSize);
}

Expand Down

0 comments on commit 5685318

Please sign in to comment.