Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 2835) sorted by relevance

12345678910>>...114

/llvm-project-15.0.7/polly/lib/External/isl/test_inputs/codegen/omega/
H A Dwak1-1.c9 for (int c0 = max(max(a3, b3 + 1), a2); c0 <= min(a1 - 1, b2); c0 += 1)
21 for (int c0 = max(max(a1, a3), b3 + 1); c0 <= min(b1, a2 - 1); c0 += 1)
23 for (int c0 = max(max(a1, a3), a2); c0 <= min(min(b1, b3), b2); c0 += 1) {
28 for (int c0 = max(max(max(a1, a3), b3 + 1), a2); c0 <= min(b1, b2); c0 += 1) {
32 for (int c0 = max(max(a1, a2), b2 + 1); c0 <= min(b1, a3 - 1); c0 += 1)
34 for (int c0 = max(max(a3, a2), b2 + 1); c0 <= min(a1 - 1, b3); c0 += 1)
36 for (int c0 = max(max(max(a1, a3), a2), b2 + 1); c0 <= min(b1, b3); c0 += 1) {
40 for (int c0 = max(max(max(max(a1, a3), b3 + 1), a2), b2 + 1); c0 <= b1; c0 += 1)
46 for (int c0 = max(max(max(a1, b1 + 1), a3), a2); c0 <= min(b3, b2); c0 += 1) {
50 for (int c0 = max(max(max(max(a1, b1 + 1), a3), b3 + 1), a2); c0 <= b2; c0 += 1)
[all …]
H A Dlefur04-0.c2 for (int c1 = max(0, 2 * c0 - 3); c1 <= min(c0 + 1, -c0 + 6); c1 += 1)
4 …for (int c3 = max(max(max(0, c1 - (-c1 + 3) / 3), c0 - (-c2 + 3) / 3), c2 + floord(3 * c1 - c2 - 1…
5 …for (int c5 = max(max(max(max(0, 2 * c3 - 4), c1 - (-c1 + 3) / 3), c2 - (c2 + 3) / 3), c3 - (c3 + …
6 …for (int c6 = max(max(max(max(max(-200 * c1 + 400 * c3 - 199, 250 * c3 + 1), 1000 * c0 - 500 * c5 …
7 …for (int c7 = max(max(max(max(500 * c5 + 2, c6), 1000 * c0 - c6), 1000 * c3 - 2 * c6 + 2), 500 * c…
H A Dlefur03-0.c2 for (int c1 = max(0, 2 * c0 - 3); c1 <= min(3, c0 + 1); c1 += 1)
4 …for (int c3 = max(max(max(0, c1 - (-c1 + 3) / 3), c0 - (-c2 + 3) / 3), c2 + floord(3 * c1 - c2 - 1…
5 …for (int c4 = max(max(max(max(-200 * c1 + 400 * c3 - 199, 250 * c3 + 1), 667 * c0 - 333 * c1 - (c0…
6 …for (int c5 = max(max(max(c4, 1000 * c0 - c4), 1000 * c3 - 2 * c4 + 2), 500 * c1 + (c4 + 1) / 2); …
/llvm-project-15.0.7/libcxx/test/std/time/time.traits/time.traits.duration_values/
H A Dmax.pass.cpp22 assert(std::chrono::duration_values<int>::max() == in main()
23 std::numeric_limits<int>::max()); in main()
24 assert(std::chrono::duration_values<double>::max() == in main()
25 std::numeric_limits<double>::max()); in main()
26 assert(std::chrono::duration_values<Rep>::max() == in main()
27 std::numeric_limits<Rep>::max()); in main()
29 static_assert(std::chrono::duration_values<int>::max() == in main()
30 std::numeric_limits<int>::max(), ""); in main()
32 std::numeric_limits<double>::max(), ""); in main()
33 static_assert(std::chrono::duration_values<Rep>::max() == in main()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.arguments/format.args/
H A Dget.pass.cpp182 std::numeric_limits<signed char>::max()); in test()
194 std::numeric_limits<unsigned char>::max()); in test()
198 std::numeric_limits<unsigned char>::max()); in test()
213 std::numeric_limits<unsigned char>::max()); in test()
217 std::numeric_limits<unsigned>::max()); in test()
219 std::numeric_limits<unsigned long>::max()); in test()
227 std::numeric_limits<unsigned>::max()); in test()
240 std::numeric_limits<unsigned int>::max()); in test()
246 std::numeric_limits<__uint128_t>::max()); in test()
266 -std::numeric_limits<long double>::max()); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.arguments/format.arg/
H A Dvisit_format_arg.pass.cpp195 std::numeric_limits<signed char>::max()); in test()
207 std::numeric_limits<unsigned char>::max()); in test()
211 std::numeric_limits<unsigned char>::max()); in test()
226 std::numeric_limits<unsigned char>::max()); in test()
230 std::numeric_limits<unsigned>::max()); in test()
232 std::numeric_limits<unsigned long>::max()); in test()
240 std::numeric_limits<unsigned>::max()); in test()
253 std::numeric_limits<unsigned int>::max()); in test()
259 std::numeric_limits<__uint128_t>::max()); in test()
279 -std::numeric_limits<long double>::max()); in test()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dadditive-folding-range-constraints.c165 int max = INT_MAX; in mixedComparisons9() local
176 unsigned max = UINT_MAX; in mixedSignedness1() local
177 clang_analyzer_eval(a < max); // expected-warning{{UNKNOWN}} in mixedSignedness1()
183 unsigned max = UINT_MAX; in mixedSignedness2() local
184 clang_analyzer_eval(a <= max); // expected-warning{{TRUE}} in mixedSignedness2()
190 int max = INT_MAX; in mixedSignedness3() local
197 int max = INT_MAX; in mixedSignedness4() local
260 unsigned max = INT_MAX; in mixedSignedness13() local
267 unsigned max = INT_MAX; in mixedSignedness14() local
288 unsigned max = INT_MAX; in mixedSignedness17() local
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/
H A Disl_scan.c22 isl_int max; member
34 if (isl_int_is_zero(cnt->max) || isl_int_lt(cnt->count, cnt->max)) in increment_counter()
47 if (isl_int_is_zero(cnt->max) || isl_int_lt(cnt->count, cnt->max)) in increment_range()
109 struct isl_vec *max; in isl_basic_set_scan() local
164 isl_int_neg(max->el[level], max->el[level]); in isl_basic_set_scan()
211 isl_vec_free(max); in isl_basic_set_scan()
219 isl_vec_free(max); in isl_basic_set_scan()
260 isl_int_init(cnt.max); in isl_basic_set_count_upto()
263 isl_int_set(cnt.max, max); in isl_basic_set_count_upto()
286 isl_int_init(cnt.max); in isl_set_count_upto()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/LoopVectorize/
H A Dminmax_reduction.ll27 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
55 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
82 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
110 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
139 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
167 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
194 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
222 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
250 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
278 %max.red.08 = phi i32 [ %max, %entry ], [ %max.red.0, %for.body ]
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/SPIRV/Transforms/
H A Dgl-canonicalize.mlir9 %1 = spv.FOrdLessThan %mid, %max : f32
10 %2 = spv.Select %1, %mid, %max : i1, f32
24 %1 = spv.FOrdLessThan %max, %input : f32
25 %2 = spv.Select %1, %max, %mid : i1, f32
40 %2 = spv.Select %1, %mid, %max : i1, f32
55 %2 = spv.Select %1, %max, %mid : i1, f32
69 %1 = spv.SLessThan %mid, %max : si32
70 %2 = spv.Select %1, %mid, %max : i1, si32
84 %1 = spv.SLessThan %max, %input : si32
129 %1 = spv.ULessThan %mid, %max : i32
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dwarn-max-unsigned-zero.cpp6 T max(const T &, const T &);
10 auto a = std::max(55u, 0u); in test()
15 auto b = std::max(u, 0u); in test()
20 auto c = std::max(0u, 55u); in test()
25 auto d = std::max(0u, u); in test()
33 auto a = std::max(0, s); in negative_test()
34 auto b = std::max(s, 0); in negative_test()
35 auto c = std::max(22, 0); in negative_test()
36 auto d = std::max(0, 22); in negative_test()
41 return std::max(x, 0u); in template_test()
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/test_inputs/codegen/cloog/
H A Dclassen2.c1 for (int c0 = max(max(max(max(max(max(4, 5 * outerTimeTileScatter), 5 * outerProcTileScatter1), 5 *…
2 …for (int c1 = max(max(max(max(5 * outerProcTileScatter1, 5 * outerProcTileScatter2 + 1), -5 * oute…
3 …for (int c2 = max(max(5 * outerProcTileScatter2, -N + c1 + 2), c0 - c1 + 3); c2 <= min(min(5 * out…
H A Dotl.c3 …for (int c1 = max(c0 - (M + 2) / 5, (c0 + 1) / 2); c1 <= min(min(c0, (M + 2 * N) / 5 - 1), (2 * N …
4 …for (int c2 = max(max(max(max(0, c0 - c1 - 1), c1 - (N + 6) / 5 + 1), c0 - (M + N + 4) / 5 + 1), f…
5 …for (int c3 = max(max(max(c0, 2 * c1 - (2 * N + 5) / 5 + 1), c1 + c2 - (N + 3) / 5), 2 * c2 - (N +…
6 …for (int c4 = max(max(max(max(c1, c0 - c2), c0 - (M + 6) / 5 + 1), c3 - (M + 2) / 5), (c3 + 1) / 2…
/llvm-project-15.0.7/libcxx/test/libcxx/numerics/
H A Dclamp_to_integral.pass.cpp35 {static_cast<double>(Lim::max()), Lim::max(), MaxIsRepresentable}, in test()
36 {static_cast<double>(Lim::max()) + 1, Lim::max(), false}, in test()
37 {static_cast<double>(Lim::max()) + 1024, Lim::max(), false}, in test()
38 {nextafter(static_cast<double>(Lim::max()), INFINITY), Lim::max(), false}, in test()
47 assert(res == Lim::min() || res == Lim::max()); in test()
67 {static_cast<float>(Lim::max()), Lim::max(), MaxIsRepresentable }, in test_float()
68 {nextafter(static_cast<float>(Lim::max()), INFINITY), Lim::max(), false}, in test_float()
77 assert(res == Lim::min() || res == Lim::max()); in test_float()
/llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/
H A Deval.pass.cpp38 assert(d.min() <= v && v <= d.max()); in tests()
57 assert(d.min() <= v && v <= d.max()); in tests()
76 assert(d.min() <= v && v <= d.max()); in tests()
95 assert(d.min() <= v && v <= d.max()); in tests()
114 assert(d.min() <= v && v <= d.max()); in tests()
133 assert(d.min() <= v && v <= d.max()); in tests()
152 assert(d.min() <= v && v <= d.max()); in tests()
174 assert(d.min() <= v && v <= d.max()); in tests()
196 assert(d.min() <= v && v <= d.max()); in tests()
218 assert(d.min() <= v && v <= d.max()); in tests()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.min.max/
H A Dranges.minmax_element.pass.cpp114 assert(ret.max == a + 0); in test_borrowed_range_and_sentinel()
116 assert(*ret.max == 7); in test_borrowed_range_and_sentinel()
123 assert(ret.max == a + 5); in test_comparator()
125 assert(*ret.max == 1); in test_comparator()
134 assert(ret.max == a + 2); in test_projection()
136 assert(*ret.max == 9); in test_projection()
145 assert(*ret.max == 4); in test_projection()
278 assert(*ret.max == 3); in test()
286 assert(*ret.max == 3); in test()
297 assert(*ret.max == 3); in test()
[all …]
H A Dranges.max.pass.cpp80 assert(std::ranges::max(1, 2) == 2); in test_2_arguments()
81 assert(std::ranges::max(2, 1) == 2); in test_2_arguments()
83 assert(std::ranges::max(1, 2, std::ranges::greater{}) == 1); in test_2_arguments()
90 decltype(auto) ret = std::ranges::max(a[0], a[1], {}, &S::i); in test_2_arguments()
99 auto ret = std::ranges::max(a[0], a[1]); in test_2_arguments()
114 auto ret = std::ranges::max(1, 2, comparator, projection); in test_2_arguments()
182 int ret = std::ranges::max(range); in test_range_types()
198 int ret = std::ranges::max(a, std::ranges::less{}, proj); in test_range()
203 int ret = std::ranges::max(a, std::ranges::greater{}); in test_range()
235 auto ret = std::ranges::max(b, {}, &S::check); in test_range()
[all …]
H A Dmax_init_list.pass.cpp24 int i = std::max({2, 3, 1}); in main()
26 i = std::max({2, 1, 3}); in main()
28 i = std::max({3, 1, 2}); in main()
30 i = std::max({3, 2, 1}); in main()
32 i = std::max({1, 2, 3}); in main()
34 i = std::max({1, 3, 2}); in main()
38 static_assert(std::max({1, 3, 2}) == 3, ""); in main()
39 static_assert(std::max({2, 1, 3}) == 3, ""); in main()
40 static_assert(std::max({3, 2, 1}) == 3, ""); in main()
H A Dranges.minmax.pass.cpp134 assert(ret.max == 9); in test_initializer_list()
141 assert(ret.max == 1); in test_initializer_list()
158 assert(ret.max == 3); in test_initializer_list()
188 assert(ret.max == 1); in test_initializer_list()
195 assert(ret.max == 3); in test_initializer_list()
202 assert(ret.max == 3); in test_initializer_list()
215 assert(ret.max == 9); in test_range_types()
224 assert(ret.max == 1); in test_range_types()
243 assert(ret.max == 3); in test_range_types()
254 assert(ret.max == 1); in test_range_types()
[all …]
/llvm-project-15.0.7/libc/src/__support/CPP/
H A DLimits.h21 static constexpr T max();
29 static constexpr int max() { return INT_MAX; } in max() function
34 static constexpr unsigned int max() { return UINT_MAX; } in max() function
39 static constexpr long max() { return LONG_MAX; } in max() function
44 static constexpr unsigned long max() { return ULONG_MAX; } in max() function
49 static constexpr long long max() { return LLONG_MAX; } in max() function
59 static constexpr short max() { return SHRT_MAX; } in max() function
64 static constexpr unsigned short max() { return USHRT_MAX; } in max() function
69 static constexpr char max() { return CHAR_MAX; } in max() function
74 static constexpr unsigned char max() { return UCHAR_MAX; } in max() function
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dminmax-of-minmax.ll13 %cmp3 = icmp sgt i32 %max, %min
27 %cmp3 = icmp sgt i32 %max, %min
41 %cmp3 = icmp slt i32 %min, %max
69 %cmp3 = icmp sgt i32 %max, %min
83 %cmp3 = icmp sgt i32 %max, %min
111 %cmp3 = icmp slt i32 %min, %max
125 %cmp3 = icmp ugt i32 %max, %min
139 %cmp3 = icmp ugt i32 %max, %min
153 %cmp3 = icmp ult i32 %min, %max
181 %cmp3 = icmp ugt i32 %max, %min
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/template.bitset/bitset.members/
H A Dto_ulong.pass.cpp25 …const std::size_t max = is_M_zero ? 0 : std::size_t(std::numeric_limits<unsigned long>::max()) >> … in test_to_ulong() local
28 std::min<std::size_t>(1, max), in test_to_ulong()
29 std::min<std::size_t>(2, max), in test_to_ulong()
30 std::min<std::size_t>(3, max), in test_to_ulong()
31 std::min(max, max-3), in test_to_ulong()
32 std::min(max, max-2), in test_to_ulong()
33 std::min(max, max-1), in test_to_ulong()
34 max in test_to_ulong()
H A Dto_ullong.pass.cpp24 const unsigned long long max = is_M_zero ? 0 : (unsigned long long)(-1) >> X; in test_to_ullong() local
27 std::min<unsigned long long>(1, max), in test_to_ullong()
28 std::min<unsigned long long>(2, max), in test_to_ullong()
29 std::min<unsigned long long>(3, max), in test_to_ullong()
30 std::min(max, max-3), in test_to_ullong()
31 std::min(max, max-2), in test_to_ullong()
32 std::min(max, max-1), in test_to_ullong()
33 max in test_to_ullong()
/llvm-project-15.0.7/llvm/test/Transforms/ConstraintElimination/
H A Dpointercast.ll42 %max.c = bitcast i32* %max to i16*
47 %c.max.3 = icmp ugt i16* %gep.3.c, %max.c
57 %c.3.max = icmp ult i32* %gep.3, %max
62 %c.1.max = icmp ult i32* %gep.1, %max
67 %c.2.max = icmp ult i32* %gep.2, %max
72 %c.4.max = icmp ult i32* %gep.4, %max
133 %c.3.max = icmp ult i32* %gep.3, %max
138 %c.1.max = icmp ult i32* %gep.1, %max
143 %c.2.max = icmp ult i32* %gep.2, %max
148 %c.4.max = icmp ult i32* %gep.4, %max
[all …]
/llvm-project-15.0.7/libcxx/test/std/numerics/bit/bitops.rot/
H A Drotl.pass.cpp32 T max = std::numeric_limits<T>::max(); in test() local
34 assert(std::rotl(T(max - 1), 0) == T(max - 1)); in test()
35 assert(std::rotl(T(max - 1), 1) == T(max - 2)); in test()
36 assert(std::rotl(T(max - 1), 2) == T(max - 4)); in test()
37 assert(std::rotl(T(max - 1), 3) == T(max - 8)); in test()
38 assert(std::rotl(T(max - 1), 4) == T(max - 16)); in test()
39 assert(std::rotl(T(max - 1), 5) == T(max - 32)); in test()
40 assert(std::rotl(T(max - 1), 6) == T(max - 64)); in test()
41 assert(std::rotl(T(max - 1), 7) == T(max - 128)); in test()

12345678910>>...114