Skip to content

Commit

Permalink
Skip CndSel tests for different in/out sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
amanasifkhalid committed Jul 16, 2024
1 parent 87a56a6 commit 956f37c
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ namespace JIT.HardwareIntrinsics.Arm
// Validates passing an instance member of a struct works
test.RunStructFldScenario();

// Validates executing the test inside conditional, with op3 as falseValue
test.ConditionalSelect_FalseOp();
if (sizeof({Op1BaseType}) == sizeof({RetBaseType}))
{
// Validates executing the test inside conditional, with op3 as falseValue
test.ConditionalSelect_FalseOp();

// Validates executing the test inside conditional, with op3 as zero
test.ConditionalSelect_ZeroOp();
// Validates executing the test inside conditional, with op3 as zero
test.ConditionalSelect_ZeroOp();
}
}
else
{
Expand Down Expand Up @@ -355,10 +358,8 @@ namespace JIT.HardwareIntrinsics.Arm
TestLibrary.TestFramework.LogInformation($"{nameof({Isa})}.{nameof({Isa}.{Method})}<{RetBaseType}>({Op1VectorType}<{Op1BaseType}>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" mask: ({string.Join(", ", mask)})");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" helper: ({string.Join(", ", vectorResult)})");
TestLibrary.TestFramework.LogInformation($" falseOp: ({string.Join(", ", falseVal)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation($" ours: ({string.Join(", ", maskedVectorResult)})");
TestLibrary.TestFramework.LogInformation(string.Empty);

Succeeded = false;
Expand Down

0 comments on commit 956f37c

Please sign in to comment.