| 125 | |
| 126 | template<int> |
| 127 | void array_reverse_extra() |
| 128 | { |
| 129 | Vector4f x; x << 1, 2, 3, 4; |
| 130 | Vector4f y; y << 4, 3, 2, 1; |
| 131 | VERIFY(x.reverse()[1] == 3); |
| 132 | VERIFY(x.reverse() == y); |
| 133 | } |
| 134 | |
| 135 | // Simpler version of reverseInPlace leveraging a bug |
| 136 | // in clang 6/7 with -O2 and AVX or AVX512 enabled. |