Tests: Fix division-by-zero warning in packetmath_gather

libeigen/eigen!3376

diff --git a/test/packetmath_gather.cpp b/test/packetmath_gather.cpp
index 4a68fa2..e8482d8 100644
--- a/test/packetmath_gather.cpp
+++ b/test/packetmath_gather.cpp
@@ -50,7 +50,8 @@
 // The largest stride whose lane offsets fit in an int, the next one, and its negation.
 template <typename Packet>
 std::vector<Index> large_strides() {
-  const Index fits = Index(NumTraits<int>::highest()) / (internal::unpacket_traits<Packet>::size - 1);
+  const int last_lane = numext::maxi<int>(1, internal::unpacket_traits<Packet>::size - 1);
+  const Index fits = Index(NumTraits<int>::highest()) / last_lane;
   return {fits, fits + 1, -(fits + 1)};
 }