Commit fda71f4c authored by jameslahm's avatar jameslahm Committed by V8 LUCI CQ

[test] Move cctest/test-pointer-auth-arm64 to unittests

... /codegen/pointer-auth-arm64-unittest.

Bug: v8:12781
Change-Id: Ibce77b62650c7a5f84b62282861297b9d4b2e591
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3724790Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: 王澳 <wangao.james@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#81389}
parent 917f793d
......@@ -252,7 +252,6 @@ v8_source_set("cctest_sources") {
"test-javascript-arm64.cc",
"test-js-arm64-variables.cc",
"test-macro-assembler-arm64.cc",
"test-pointer-auth-arm64.cc",
"test-sync-primitives-arm64.cc",
"test-utils-arm64.cc",
"test-utils-arm64.h",
......
......@@ -531,6 +531,7 @@ v8_source_set("unittests_sources") {
sources += [
"assembler/disasm-arm64-unittest.cc",
"assembler/turbo-assembler-arm64-unittest.cc",
"codegen/pointer-auth-arm64-unittest.cc",
"compiler/arm64/instruction-selector-arm64-unittest.cc",
]
} else if (v8_current_cpu == "x86") {
......
......@@ -4,14 +4,16 @@
#include "src/codegen/arm64/decoder-arm64-inl.h"
#include "src/execution/arm64/simulator-arm64.h"
#include "test/cctest/cctest.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
using PointerAuthArm64Test = TestWithIsolate;
#ifdef USE_SIMULATOR
TEST(compute_pac) {
TEST_F(PointerAuthArm64Test, compute_pac) {
Decoder<DispatchingDecoderVisitor>* decoder =
new Decoder<DispatchingDecoderVisitor>();
Simulator simulator(decoder);
......@@ -29,7 +31,7 @@ TEST(compute_pac) {
CHECK_NE(pac1, pac2);
}
TEST(add_and_auth_pac) {
TEST_F(PointerAuthArm64Test, add_and_auth_pac) {
i::FLAG_sim_abort_on_bad_auth = false;
Decoder<DispatchingDecoderVisitor>* decoder =
new Decoder<DispatchingDecoderVisitor>();
......@@ -59,7 +61,7 @@ TEST(add_and_auth_pac) {
CHECK_NE(fail, ptr);
}
TEST(add_and_strip_pac) {
TEST_F(PointerAuthArm64Test, add_and_strip_pac) {
Decoder<DispatchingDecoderVisitor>* decoder =
new Decoder<DispatchingDecoderVisitor>();
Simulator simulator(decoder);
......
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