| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | additive-folding-range-constraints.c | 75 int min = INT_MIN; in mixedComparisons1() local 143 int min = INT_MIN; in mixedComparisons7() local 204 int min = INT_MIN; in mixedSignedness5() local 211 int min = INT_MIN; in mixedSignedness6() local 218 unsigned min = 0; in mixedSignedness7() local 225 unsigned min = 0; in mixedSignedness8() local 232 int min = 0; in mixedSignedness9() local 239 int min = 0; in mixedSignedness10() local 246 int min = 0; in mixedSignedness11() local 253 int min = 0; in mixedSignedness12() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.util/rand.util.canonical/ |
| H A D | generate_canonical.pass.cpp | 27 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main() 34 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main() 41 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main() 48 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main() 55 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main() 78 (16807 - E::min() + in main() 79 (282475249 - E::min()) * (static_cast<F>(E::max() - E::min()) + F(1))) / in main() 88 (16807 - E::min() + in main() 89 (282475249 - E::min()) * (static_cast<F>(E::max() - E::min()) + F(1))) / in main() 98 (16807 - E::min() + in main() [all …]
|
| /llvm-project-15.0.7/polly/lib/External/isl/test_inputs/codegen/cloog/ |
| H A D | otl.c | 3 …for (int c1 = max(c0 - (M + 2) / 5, (c0 + 1) / 2); c1 <= min(min(c0, (M + 2 * N) / 5 - 1), (2 * N … 4 …1), c0 - (M + N + 4) / 5 + 1), floord(-N + 5 * c0 - 3, 10) + 1); c2 <= min(min(min(c1, (M + N - 2)… 5 … 5) / 5 + 1), c1 + c2 - (N + 3) / 5), 2 * c2 - (N + 2) / 5); c3 <= min(min(min(min(min(c0 + 1, c1 … 6 …c0 - (M + 6) / 5 + 1), c3 - (M + 2) / 5), (c3 + 1) / 2); c4 <= min(min(min(min(min(min(min(c0, c1 …
|
| H A D | classen2.c | 1 …catter2 - N + 1), 10 * outerProcTileScatter1 - 2 * N + 2); c0 <= min(min(min(min(min(min(5 * outer… 2 …erProcTileScatter2 + c0 - 1), -M + c0 + 2), (c0 + 1) / 2 + 2); c1 <= min(min(min(min(5 * outerProc… 3 …for (int c2 = max(max(5 * outerProcTileScatter2, -N + c1 + 2), c0 - c1 + 3); c2 <= min(min(5 * out…
|
| /llvm-project-15.0.7/polly/lib/External/isl/test_inputs/codegen/omega/ |
| H A D | wak1-1.c | 1 for (int c0 = a2; c0 <= min(min(a1 - 1, a3 - 1), b2); c0 += 1) 3 for (int c0 = a3; c0 <= min(min(a1 - 1, b3), a2 - 1); c0 += 1) 5 for (int c0 = max(a3, a2); c0 <= min(min(a1 - 1, b3), b2); c0 += 1) { 9 for (int c0 = max(max(a3, b3 + 1), a2); c0 <= min(a1 - 1, b2); c0 += 1) 11 for (int c0 = a1; c0 <= min(min(b1, a3 - 1), a2 - 1); c0 += 1) 13 for (int c0 = max(a1, a2); c0 <= min(min(b1, a3 - 1), b2); c0 += 1) { 17 for (int c0 = max(a1, a3); c0 <= min(min(b1, b3), a2 - 1); 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) { 32 for (int c0 = max(max(a1, a2), b2 + 1); c0 <= min(b1, a3 - 1); c0 += 1) [all …]
|
| H A D | lefur04-0.c | 2 for (int c1 = max(0, 2 * c0 - 3); c1 <= min(c0 + 1, -c0 + 6); c1 += 1) 3 for (int c2 = c0; c2 <= min(min(3, 2 * c0 - c1 + 1), 3 * c1 + 2); c2 += 1) 4 …c1 + 3) / 3), c0 - (-c2 + 3) / 3), c2 + floord(3 * c1 - c2 - 1, 6)); c3 <= min(3, c0 + 1); c3 += 1) 5 …- 4), c1 - (-c1 + 3) / 3), c2 - (c2 + 3) / 3), c3 - (c3 + 3) / 3); c5 <= min(min(c1 + 1, c3), -c2 … 6 … / 3 - 332), 333 * c1 + c1 / 3), 333 * c2 + (c2 + 1) / 3); c6 <= min(min(min(min(min(min(1000, 500… 7 …* c0 - c6), 1000 * c3 - 2 * c6 + 2), 500 * c1 + (c6 + 1) / 2); c7 <= min(min(min(min(500 * c5 + 50…
|
| H A D | ts1d-mp-i_ts-m_b-0.c | 13 …for (int c4 = max(500 * c1 + 1, 1000 * c1 + 4000 * c3 - 3999); c4 <= min(min(N + T - 3, 1000 * c1 … 14 …for (int c5 = max(0, -N - 500 * c1 + c4 + 2); c5 <= min(min(T - 500 * c1 - 1, -500 * c1 + c4 - 1),… 17 …for (int c4 = max(1000 * c1 + 4000 * c3 - 3999, -4000 * c3 + 4000); c4 <= min(min(2 * T + 4000 * c… 19 …for (int c3 = -((c1 + 7) / 8) + 1; c3 <= min(floord(N + T - 1000 * c1 - 1004, 4000) + 1, floord(N … 20 …for (int c4 = max(500 * c1 + 1, 1000 * c1 + 4000 * c3 - 2999); c4 <= min(min(N + T - 3, N + 500 * … 21 …for (int c5 = max(0, -N - 500 * c1 + c4 + 2); c5 <= min(min(499, T - 500 * c1 - 1), -500 * c1 + c4… 24 …for (int c4 = max(-4000 * c3, 1000 * c1 + 4000 * c3 + 1); c4 <= min(min(2 * N - 4000 * c3 - 5, 2 *… 26 …for (int c3 = -((c1 + 8) / 8) + 1; c3 <= min(floord(N + T - 1000 * c1 - 4, 4000), floord(N - 500 *… 27 …for (int c4 = max(1000 * c1 + 4000 * c3 + 1, -4000 * c3 + 2); c4 <= min(min(min(N + T - 3, N + 500… 28 …max(-N - 500 * c1 + c4 + 2, -500 * c1 - 2000 * c3 + (c4 + 1) / 2); c5 <= min(min(499, T - 500 * c1… [all …]
|
| H A D | lefur03-0.c | 2 for (int c1 = max(0, 2 * c0 - 3); c1 <= min(3, c0 + 1); c1 += 1) 3 for (int c2 = c0; c2 <= min(min(3, 2 * c0 - c1 + 1), 3 * c1 + 2); c2 += 1) 4 …c1 + 3) / 3), c0 - (-c2 + 3) / 3), c2 + floord(3 * c1 - c2 - 1, 6)); c3 <= min(3, c0 + 1); c3 += 1) 5 …+ 3) / 3 - 332), 333 * c1 + c1 / 3), 333 * c2 + (c2 + 1) / 3); c4 <= min(min(min(min(1000, 500 * c… 6 …0 * c0 - c4), 1000 * c3 - 2 * c4 + 2), 500 * c1 + (c4 + 1) / 2); c5 <= min(min(min(2 * c4 + 1, 100…
|
| /llvm-project-15.0.7/polly/lib/External/isl/test_inputs/codegen/ |
| H A D | shift2.c | 6 for (int c6 = max(0, -c3 + 1); c6 <= min(31, length - c3); c6 += 1) 8 for (int c5 = max(0, -c2 + 1); c5 <= min(31, (c3 / 2) - c2 - 1); c5 += 1) 9 for (int c6 = 0; c6 <= min(31, length - c3); c6 += 1) 11 …for (int c5 = max(max(0, -c2 + 1), (c3 / 2) - c2); c5 <= min(min(31, length - c2 - 1), (c3 / 2) - … 17 for (int c6 = 2 * c2 - c3 + 2 * c5 + 1; c6 <= min(31, length - c3); c6 += 1) 20 for (int c5 = max(0, (c3 / 2) - c2 + 16); c5 <= min(31, length - c2 - 1); c5 += 1) 21 for (int c6 = max(0, -c3 + 1); c6 <= min(31, length - c3); c6 += 1) 26 for (int c4 = 1; c4 <= min(min(31, length - 2), (c3 / 2) + 14); c4 += 1) 31 for (int c4 = 0; c4 <= min(31, length - 2); c4 += 1) { 47 for (int c3 = c2; c3 <= min(length - 1, c2 + 31); c3 += 16) [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/ConstraintElimination/ |
| H A D | pointercast.ll | 41 %min.c = bitcast i32* %min to i8* 46 %c.min.0 = icmp ult i8* %src.c, %min.c 56 %c.3.min = icmp ult i32* %gep.3, %min 61 %c.1.min = icmp ult i32* %gep.1, %min 66 %c.2.min = icmp ult i32* %gep.2, %min 71 %c.4.min = icmp ult i32* %gep.4, %min 132 %c.3.min = icmp ult i32* %gep.3, %min 137 %c.1.min = icmp ult i32* %gep.1, %min 142 %c.2.min = icmp ult i32* %gep.2, %min 147 %c.4.min = icmp ult i32* %gep.4, %min [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/SPIRV/Transforms/ |
| H A D | gl-canonicalize.mlir | 7 %0 = spv.FOrdLessThan %min, %input : f32 8 %mid = spv.Select %0, %input, %min : i1, f32 22 %0 = spv.FOrdLessThan %input, %min : f32 23 %mid = spv.Select %0, %min, %input : i1, f32 37 %0 = spv.FOrdLessThanEqual %min, %input : f32 38 %mid = spv.Select %0, %input, %min : i1, f32 53 %mid = spv.Select %0, %min, %input : i1, f32 67 %0 = spv.SLessThan %min, %input : si32 82 %0 = spv.SLessThan %input, %min : si32 127 %0 = spv.ULessThan %min, %input : i32 [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/time/time.traits/time.traits.duration_values/ |
| H A D | min.pass.cpp | 22 assert(std::chrono::duration_values<int>::min() == in main() 24 assert(std::chrono::duration_values<double>::min() == in main() 26 assert(std::chrono::duration_values<Rep>::min() == in main() 29 static_assert(std::chrono::duration_values<int>::min() == in main() 31 static_assert(std::chrono::duration_values<double>::min() == in main() 33 static_assert(std::chrono::duration_values<Rep>::min() == in main() 37 LIBCPP_ASSERT_NOEXCEPT(std::chrono::duration_values<int>::min()); in main() 39 LIBCPP_ASSERT_NOEXCEPT(std::chrono::duration_values<Rep>::min()); in main() 41 ASSERT_NOEXCEPT(std::chrono::duration_values<int>::min()); in main() 42 ASSERT_NOEXCEPT(std::chrono::duration_values<double>::min()); in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.min.max/ |
| H A D | ranges.minmax_element.pass.cpp | 113 assert(ret.min == a + 2); in test_borrowed_range_and_sentinel() 115 assert(*ret.min == 1); in test_borrowed_range_and_sentinel() 122 assert(ret.min == a + 2); in test_comparator() 124 assert(*ret.min == 9); in test_comparator() 133 assert(ret.min == a + 4); in test_projection() 135 assert(*ret.min == 5); in test_projection() 144 assert(*ret.min == 7); in test_projection() 277 assert(*ret.min == 1); in test() 285 assert(*ret.min == 1); in test() 296 assert(*ret.min == 1); in test() [all …]
|
| H A D | ranges.min.pass.cpp | 78 assert(std::ranges::min(1, 2) == 1); in test_2_arguments() 79 assert(std::ranges::min(2, 1) == 1); in test_2_arguments() 81 assert(std::ranges::min(1, 2, std::ranges::greater{}) == 2); in test_2_arguments() 97 auto ret = std::ranges::min(a[0], a[1]); in test_2_arguments() 112 auto ret = std::ranges::min(1, 2, comparator, projection); in test_2_arguments() 168 auto ret = std::ranges::min(range); in test_initializer_list() 177 int ret = std::ranges::min(range); in test_range_types() 194 int ret = std::ranges::min(a, std::ranges::less{}, proj); in test_range() 200 int ret = std::ranges::min(a, std::ranges::greater{}); in test_range() 232 auto ret = std::ranges::min(b, {}, &S::check); in test_range() [all …]
|
| H A D | ranges.minmax.pass.cpp | 133 assert(ret.min == 5); in test_initializer_list() 140 assert(ret.min == 9); in test_initializer_list() 157 assert(ret.min == 1); in test_initializer_list() 187 assert(ret.min == 1); in test_initializer_list() 194 assert(ret.min == 1); in test_initializer_list() 201 assert(ret.min == 1); in test_initializer_list() 214 assert(ret.min == 5); in test_range_types() 223 assert(ret.min == 9); in test_range_types() 242 assert(ret.min == 1); in test_range_types() 253 assert(ret.min == 1); in test_range_types() [all …]
|
| H A D | min_init_list.pass.cpp | 24 int i = std::min({2, 3, 1}); in main() 26 i = std::min({2, 1, 3}); in main() 28 i = std::min({3, 1, 2}); in main() 30 i = std::min({3, 2, 1}); in main() 32 i = std::min({1, 2, 3}); in main() 34 i = std::min({1, 3, 2}); in main() 38 static_assert(std::min({1, 3, 2}) == 1, ""); in main() 39 static_assert(std::min({2, 1, 3}) == 1, ""); in main() 40 static_assert(std::min({3, 2, 1}) == 1, ""); in main()
|
| H A D | min_init_list_comp.pass.cpp | 25 int i = std::min({2, 3, 1}, std::greater<int>()); in main() 27 i = std::min({2, 1, 3}, std::greater<int>()); in main() 29 i = std::min({3, 1, 2}, std::greater<int>()); in main() 31 i = std::min({3, 2, 1}, std::greater<int>()); in main() 33 i = std::min({1, 2, 3}, std::greater<int>()); in main() 35 i = std::min({1, 3, 2}, std::greater<int>()); in main() 39 static_assert(std::min({1, 3, 2}, std::greater<int>()) == 3, ""); in main() 40 static_assert(std::min({2, 1, 3}, std::greater<int>()) == 3, ""); in main() 41 static_assert(std::min({3, 2, 1}, std::greater<int>()) == 3, ""); in main()
|
| /llvm-project-15.0.7/libc/src/__support/CPP/ |
| H A D | Limits.h | 22 static constexpr T min(); 30 static constexpr int min() { return INT_MIN; } in min() function 35 static constexpr unsigned int min() { return 0; } in min() function 40 static constexpr long min() { return LONG_MIN; } in min() function 45 static constexpr unsigned long min() { return 0; } in min() function 60 static constexpr short min() { return SHRT_MIN; } in min() function 65 static constexpr unsigned short min() { return 0; } in min() function 70 static constexpr char min() { return CHAR_MIN; } in min() function 75 static constexpr unsigned char min() { return 0; } in min() function 85 static constexpr UInt<128> min() { return 0; } in min() function [all …]
|
| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | FModTest.h | 42 TEST_SPECIAL(0.0, nl::min(), 0.0, false, 0); in testSpecialNumbers() 100 TEST_SPECIAL(nl::min(), inf, nl::min(), false, 0); in testSpecialNumbers() 107 TEST_SPECIAL(nl::min(), neg_inf, nl::min(), false, 0); in testSpecialNumbers() 206 TEST_SPECIAL(nl::min(), nl::max(), nl::min(), false, 0); in testSpecialNumbers() 207 TEST_SPECIAL(nl::min(), -nl::max(), nl::min(), false, 0); in testSpecialNumbers() 208 TEST_SPECIAL(nl::min(), nl::min(), 0.0, false, 0); in testSpecialNumbers() 209 TEST_SPECIAL(nl::min(), -nl::min(), 0.0, false, 0); in testSpecialNumbers() 212 TEST_SPECIAL(-nl::min(), nl::max(), -nl::min(), false, 0); in testSpecialNumbers() 213 TEST_SPECIAL(-nl::min(), -nl::max(), -nl::min(), false, 0); in testSpecialNumbers() 214 TEST_SPECIAL(-nl::min(), nl::min(), neg_zero, false, 0); in testSpecialNumbers() [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | minmax-of-minmax.ll | 10 %min = select i1 %cmp1, i32 %x, i32 %y 13 %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 [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.arguments/format.args/ |
| H A D | get.pass.cpp | 133 test<Context, int, short>(std::numeric_limits<short>::min()); in test() 139 test<Context, int, int>(std::numeric_limits<int>::min()); in test() 140 test<Context, int, int>(std::numeric_limits<short>::min()); in test() 141 test<Context, int, int>(std::numeric_limits<signed char>::min()); in test() 150 test<Context, LongToType, long>(std::numeric_limits<long>::min()); in test() 151 test<Context, LongToType, long>(std::numeric_limits<int>::min()); in test() 179 std::numeric_limits<signed char>::min()); in test() 252 test<Context, float, float>(-std::numeric_limits<float>::min()); in test() 255 test<Context, float, float>(std::numeric_limits<float>::min()); in test() 268 -std::numeric_limits<long double>::min()); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_equal/ |
| H A D | cmp_equal.pass.cpp | 26 T min; member 30 min = std::numeric_limits<T>::min(); in Tuple() 32 mid = std::midpoint(min, max); in Tuple() 41 assert(std::cmp_equal(tup.min, tup.min)); in test_cmp_equal1() 47 assert(!std::cmp_equal(tup.min, tup.max)); in test_cmp_equal1() 48 assert(!std::cmp_equal(tup.max, tup.min)); in test_cmp_equal1() 51 assert(!std::cmp_equal(1, tup.min)); in test_cmp_equal1() 52 assert(!std::cmp_equal(tup.min, 1)); in test_cmp_equal1() 54 assert(!std::cmp_equal(-2, tup.min)); in test_cmp_equal1() 55 assert(!std::cmp_equal(tup.min, -2)); in test_cmp_equal1() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_not_equal/ |
| H A D | cmp_not_equal.pass.cpp | 26 T min; member 30 min = std::numeric_limits<T>::min(); in Tuple() 32 mid = std::midpoint(min, max); in Tuple() 41 assert(!std::cmp_not_equal(tup.min, tup.min)); in test_cmp_not_equal1() 47 assert(std::cmp_not_equal(tup.min, tup.max)); in test_cmp_not_equal1() 48 assert(std::cmp_not_equal(tup.max, tup.min)); in test_cmp_not_equal1() 51 assert(std::cmp_not_equal(1, tup.min)); in test_cmp_not_equal1() 52 assert(std::cmp_not_equal(tup.min, 1)); in test_cmp_not_equal1() 53 assert(std::cmp_not_equal(-2, tup.min)); in test_cmp_not_equal1() 54 assert(std::cmp_not_equal(tup.min, -2)); in test_cmp_not_equal1() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater/ |
| H A D | cmp_greater.pass.cpp | 25 T min; member 29 min = std::numeric_limits<T>::min(); in Tuple() 31 mid = std::midpoint(min, max); in Tuple() 40 assert(!std::cmp_greater(tup.min, tup.max)); in test_cmp_greater1() 41 assert(!std::cmp_greater(tup.min, tup.mid)); in test_cmp_greater1() 45 assert(std::cmp_greater(tup.max, tup.min)); in test_cmp_greater1() 46 assert(std::cmp_greater(tup.mid, tup.min)); in test_cmp_greater1() 48 assert(!std::cmp_greater(tup.min, tup.min)); in test_cmp_greater1() 51 assert(std::cmp_greater(1, tup.min)); in test_cmp_greater1() 53 assert(std::cmp_greater(-2, tup.min) == std::is_signed_v<T>); in test_cmp_greater1() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less/ |
| H A D | cmp_less.pass.cpp | 26 T min; member 30 min = std::numeric_limits<T>::min(); in Tuple() 32 mid = std::midpoint(min, max); in Tuple() 41 assert(std::cmp_less(tup.min, tup.max)); in test_cmp_less1() 42 assert(std::cmp_less(tup.min, tup.mid)); in test_cmp_less1() 46 assert(!std::cmp_less(tup.max, tup.min)); in test_cmp_less1() 47 assert(!std::cmp_less(tup.mid, tup.min)); in test_cmp_less1() 49 assert(!std::cmp_less(tup.min, tup.min)); in test_cmp_less1() 52 assert(!std::cmp_less(1, tup.min)); in test_cmp_less1() 54 assert(!std::cmp_less(-2, tup.min) == std::is_signed_v<T>); in test_cmp_less1() [all …]
|