diff options
author | Benoit Jacob <benoitjacob@google.com> | 2020-05-26 23:24:32 +0300 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-05-26 23:24:50 +0300 |
commit | a0ca5e6d3d1b1771197368c5cf38de1f9fe7f1e0 (patch) | |
tree | c5d87009a263d429e8f724b3df3bd9b69c28c7fe /ruy/ctx_test.cc | |
parent | 736429b486f57a018dff732e816a5ad8db278c28 (diff) |
Add -Wundef to ruy_copts, and remove RUY_PLATFORM(X). Call site simplification:
RUY_PLATFORM(X) --> RUY_X.
PiperOrigin-RevId: 313256786
Diffstat (limited to 'ruy/ctx_test.cc')
-rw-r--r-- | ruy/ctx_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ruy/ctx_test.cc b/ruy/ctx_test.cc index e65b85b..f57ec64 100644 --- a/ruy/ctx_test.cc +++ b/ruy/ctx_test.cc @@ -30,16 +30,16 @@ TEST(ContextInternalTest, EnabledPathsGeneral) { EXPECT_EQ(ruy_paths & Path::kStandardCpp, Path::kStandardCpp); } -#if RUY_PLATFORM(X86) +#if RUY_PLATFORM_X86 TEST(ContextInternalTest, EnabledPathsX86Explicit) { CtxImpl ctx; ctx.SetRuntimeEnabledPaths(Path::kAvx2); const auto ruy_paths = ctx.GetRuntimeEnabledPaths(); EXPECT_EQ(ruy_paths, Path::kStandardCpp | Path::kAvx2); } -#endif // RUY_PLATFORM(X86) +#endif // RUY_PLATFORM_X86 -#if RUY_PLATFORM(ARM) +#if RUY_PLATFORM_ARM TEST(ContextInternalTest, EnabledPathsX86Explicit) { CtxImpl ctx; ctx.SetRuntimeEnabledPaths(Path::kNeonDotprod); @@ -54,7 +54,7 @@ TEST(ContextInternalTest, EnabledPathsArmDefault) { // NEON is always assumed to be supported at the moment. EXPECT_EQ(ruy_paths & Path::kNeon, Path::kNeon); } -#endif // RUY_PLATFORM(ARM) +#endif // RUY_PLATFORM_ARM TEST(ContextInternalTest, ThreadSpecificResources) { CtxImpl ctx; |