disable RISC-V tests - CI will only build, not run them. Also fix unused param.
PiperOrigin-RevId: 407341568
diff --git a/hwy/ops/rvv-inl.h b/hwy/ops/rvv-inl.h
index ad7ddf6..dc74bce 100644
--- a/hwy/ops/rvv-inl.h
+++ b/hwy/ops/rvv-inl.h
@@ -1548,7 +1548,7 @@
template <class D, class VI>
HWY_API VFromD<RebindToUnsigned<D>> IndicesFromVec(D d, VI vec) {
static_assert(sizeof(TFromD<D>) == sizeof(TFromV<VI>), "Index != lane");
- const RebindToUnsigned<D> du;
+ const RebindToUnsigned<decltype(d)> du;
const auto indices = BitCast(du, vec);
#if HWY_IS_DEBUG_BUILD
HWY_DASSERT(AllTrue(du, Lt(indices, Set(du, Lanes(d)))));
diff --git a/hwy/tests/arithmetic_test.cc b/hwy/tests/arithmetic_test.cc
index 6408acb..4469fbf 100644
--- a/hwy/tests/arithmetic_test.cc
+++ b/hwy/tests/arithmetic_test.cc
@@ -1426,6 +1426,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/blockwise_test.cc b/hwy/tests/blockwise_test.cc
index eb4e0ee..5a414bb 100644
--- a/hwy/tests/blockwise_test.cc
+++ b/hwy/tests/blockwise_test.cc
@@ -639,6 +639,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/combine_test.cc b/hwy/tests/combine_test.cc
index ba37f39..c0afbe4 100644
--- a/hwy/tests/combine_test.cc
+++ b/hwy/tests/combine_test.cc
@@ -268,6 +268,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/compare_test.cc b/hwy/tests/compare_test.cc
index 85cc802..8a706d9 100644
--- a/hwy/tests/compare_test.cc
+++ b/hwy/tests/compare_test.cc
@@ -237,6 +237,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/convert_test.cc b/hwy/tests/convert_test.cc
index aeed5cc..80156e1 100644
--- a/hwy/tests/convert_test.cc
+++ b/hwy/tests/convert_test.cc
@@ -805,6 +805,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/crypto_test.cc b/hwy/tests/crypto_test.cc
index c85d63a..2966299 100644
--- a/hwy/tests/crypto_test.cc
+++ b/hwy/tests/crypto_test.cc
@@ -543,6 +543,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/logical_test.cc b/hwy/tests/logical_test.cc
index bc9835e..131657c 100644
--- a/hwy/tests/logical_test.cc
+++ b/hwy/tests/logical_test.cc
@@ -278,6 +278,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/mask_test.cc b/hwy/tests/mask_test.cc
index 8d07178..4ad9059 100644
--- a/hwy/tests/mask_test.cc
+++ b/hwy/tests/mask_test.cc
@@ -461,6 +461,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/memory_test.cc b/hwy/tests/memory_test.cc
index 3f72809..1830083 100644
--- a/hwy/tests/memory_test.cc
+++ b/hwy/tests/memory_test.cc
@@ -415,6 +415,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}
diff --git a/hwy/tests/swizzle_test.cc b/hwy/tests/swizzle_test.cc
index ea14514..cc6fe36 100644
--- a/hwy/tests/swizzle_test.cc
+++ b/hwy/tests/swizzle_test.cc
@@ -493,6 +493,11 @@
// Ought not to be necessary, but without this, no tests run on RVV.
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+ // For RISC-V, we can currently only build the tests without running.
+ // TODO(janwas): enable once supported.
+#if HWY_ARCH_RVV
+ return GTEST_SKIP();
+#endif
return RUN_ALL_TESTS();
}