Commit 5e29a9bc authored by Georgia Kouveli's avatar Georgia Kouveli Committed by Commit Bot

[arm64] Only run FJCVTZS test when the instruction is available

Change-Id: I3d2da18477df775b6ecc8e358a02f4e838961831
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2241522
Commit-Queue: Georgia Kouveli <georgia.kouveli@arm.com>
Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68365}
parent 518f5c0f
......@@ -11156,10 +11156,13 @@ static void FjcvtzsHelper(uint64_t value, uint64_t expected,
__ Fjcvtzs(w0, d0);
__ Mrs(x1, NZCV);
END();
RUN();
CHECK_EQUAL_64(expected, x0);
CHECK_EQUAL_32(expected_z, w1);
if (CpuFeatures::IsSupported(JSCVT)) {
RUN();
CHECK_EQUAL_64(expected, x0);
CHECK_EQUAL_32(expected_z, w1);
}
}
TEST(fjcvtzs) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment