3 // { dg-options "-O2 -std=c++14 -fdump-tree-forwprop1" }
4 // { dg-final { scan-tree-dump-times " (?:(?:<|>=) \{ 0\[, \]|>> (?:7|15|31|63))" 120 "forwprop1" } }
6 template <typename T, int N>
7 using V [[gnu::vector_size (sizeof (T) * N)]] = T;
11 template <typename T, int N, T max, T maxp1>
12 __attribute__((noipa)) void
15 V<T, N> *x = (V<T, N> *) foo ();
22 template <typename T, int N>
23 __attribute__((noipa)) void
26 V<T, N> *x = (V<T, N> *) foo ();
34 __attribute__((noipa)) void
37 test_uns<unsigned char, N, __SCHAR_MAX__, 1U + __SCHAR_MAX__> ();
38 test<signed char, N> ();
39 test_uns<unsigned short int, N, __SHRT_MAX__, 1U + __SHRT_MAX__> ();
40 test<short int, N> ();
41 test_uns<unsigned int, N, __INT_MAX__, 1U + __INT_MAX__> ();
43 test_uns<unsigned long int, N, __LONG_MAX__, 1UL + __LONG_MAX__> ();
45 test_uns<unsigned long long int, N, __LONG_LONG_MAX__, 1ULL + __LONG_LONG_MAX__> ();
46 test<long long int, N> ();