| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | additive-folding.cpp | 5 #define UINT_MAX (~0U) macro 6 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1)) 44 if (a == UINT_MAX) { in eq_ne() 75 if (a >= UINT_MAX) in baselineGE() 76 clang_analyzer_eval(a == UINT_MAX); // expected-warning{{TRUE}} in baselineGE() 78 clang_analyzer_eval(a != UINT_MAX); // expected-warning{{TRUE}} in baselineGE() 82 if (a < UINT_MAX) in baselineLT() 83 clang_analyzer_eval(a != UINT_MAX); // expected-warning{{TRUE}} in baselineLT() 104 if (a-1 >= UINT_MAX-1) in adjustedGE() 124 clang_analyzer_eval(a <= UINT_MAX); // expected-warning{{TRUE}} in tautologies() [all …]
|
| H A D | additive-folding-range-constraints.c | 5 #define UINT_MAX (~0U) macro 6 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1)) 15 clang_analyzer_eval(a < UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGT() 17 clang_analyzer_eval(a == UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGT() 22 clang_analyzer_eval(a < UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGE() 24 clang_analyzer_eval(a == UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGE() 42 if (a-2 > UINT_MAX-1) in largeAdjustmentGT() 49 if (a-2 >= UINT_MAX-1) in largeAdjustmentGE() 64 clang_analyzer_eval(a == UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in largeAdjustmentLE() 176 unsigned max = UINT_MAX; in mixedSignedness1() [all …]
|
| H A D | constraint_manager_negate.c | 11 #define UINT_MAX (~UINT_MIN) macro 12 #define UINT_MID (UINT_MAX / 2 + 1) 13 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1)) 14 #define INT_MIN (UINT_MAX & ~(UINT_MAX >> 1)) 77 _Static_assert(-4u == UINT_MAX - 3u, ""); 82 clang_analyzer_eval(-a == UINT_MAX - 3u); // expected-warning{{TRUE}} in negate_unsigned_4() 99 clang_analyzer_eval(-a <= UINT_MAX); // expected-warning{{TRUE}} in negate_unsigned_mid2() 102 _Static_assert(1u - 2u == UINT_MAX, ""); 105 assert(a == UINT_MAX); in negate_unsigned_max() 111 clang_analyzer_eval(-a == UINT_MAX); // expected-warning{{TRUE}} in negate_unsigned_one() [all …]
|
| H A D | constraint_manager_negate_difference.c | 10 #define UINT_MAX (~UINT_MIN) macro 11 #define UINT_MID (UINT_MAX / 2 + 1) 12 #define INT_MAX (UINT_MAX & (UINT_MAX >> 1)) 13 #define INT_MIN (UINT_MAX & ~(UINT_MAX >> 1)) 131 clang_analyzer_eval(n - m <= UINT_MAX); // expected-warning{{TRUE}} in negate_unsigned_mid2() 134 _Static_assert(1u - 2u == UINT_MAX, ""); 137 assert(m - n == UINT_MAX); in negate_unsigned_max() 144 clang_analyzer_eval(n - m == UINT_MAX); // expected-warning{{TRUE}} in negate_unsigned_one() 145 clang_analyzer_eval(n - m < UINT_MAX); // expected-warning{{FALSE}} in negate_unsigned_one()
|
| H A D | index-type.c | 5 #define UINT_MAX (~0u) macro 9 #define X86_ARRAY_SIZE (UINT_MAX/2 + 4) 13 char *ptr = arr + UINT_MAX/2; in testIndexTooBig() 24 char *ptr = arr + UINT_MAX/2; in testIndexOverflow64()
|
| H A D | constant-folding.c | 3 #define UINT_MAX (~0U) macro 4 #define INT_MAX (int)(UINT_MAX & (UINT_MAX >> 1)) 5 #define INT_MIN (int)(UINT_MAX & ~(UINT_MAX >> 1))
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZHazardRecognizer.cpp | 86 LastFPdOpCycleIdx = UINT_MAX; in Reset() 158 if (CriticalResourceIdx != UINT_MAX && in nextGroup() 161 CriticalResourceIdx = UINT_MAX; in nextGroup() 242 if (CriticalResourceIdx != UINT_MAX) in dumpProcResourceCounters() 253 if (LastFPdOpCycleIdx != UINT_MAX) in dumpState() 261 CriticalResourceIdx = UINT_MAX; in clearProcResCounters() 307 (CriticalResourceIdx == UINT_MAX || in EmitInstruction() 374 if (LastFPdOpCycleIdx == UINT_MAX) in isFPdOpPreferred_distance() 399 else if (CriticalResourceIdx != UINT_MAX) { in resourcesCost()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | memchr-4.ll | 14 ; Do not fold memchr(ax, 1, UINT_MAX + (size_t)1) to null. Only the first 29 ; Do not fold memchr(ax, 1, UINT_MAX + (size_t)2) to *ax == 1 ? ax : null. 44 ; Fold memchr(a12345, 3, UINT_MAX + (size_t)2) to a12345 + 2 (and not to 58 ; Do not fold memchr(a12345, c, UINT_MAX + (size_t)2).
|
| H A D | strncmp-3.ll | 17 ; Do not fold strncmp(ax, bx, UINT_MAX + (size_t)1) to 0. 32 ; Do not fold strncmp(ax, bx, UINT_MAX + (size_t)2) to *ax - *bx. 47 ; Fold strncmp(a12345, a123456, UINT_MAX + (size_t)2) to -1 (and not to 0). 61 ; Fold strncmp(a123456, a12345, UINT_MAX + (size_t)3) to +1 (and not to 0).
|
| /llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/ |
| H A D | limits_h.pass.cpp | 63 #ifndef UINT_MAX 64 #error UINT_MAX not defined
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/support.limits/c.limits/ |
| H A D | climits.pass.cpp | 63 #ifndef UINT_MAX 64 #error UINT_MAX not defined
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/ |
| H A D | max.pass.cpp | 51 test<char32_t>(UINT_MAX); in main() 55 test<unsigned int>(UINT_MAX); in main()
|
| /llvm-project-15.0.7/clang/lib/Headers/ |
| H A D | limits.h | 34 #undef UINT_MAX 56 #define UINT_MAX (__INT_MAX__ *2U +1U) macro
|
| /llvm-project-15.0.7/clang/test/Headers/ |
| H A D | limits.cpp | 17 _Static_assert(INT_MAX == UINT_MAX/2, ""); 27 _Static_assert(UINT_MAX == (unsigned int)~0ULL, "");
|
| /llvm-project-15.0.7/libclc/generic/lib/integer/ |
| H A D | mul_hi.cl | 23 long x_lo = x & UINT_MAX; 25 long y_lo = y & UINT_MAX; 51 ulong x_lo = x & UINT_MAX; 53 ulong y_lo = y & UINT_MAX;
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | strings_test.cpp | 104 testAgainstLibc<unsigned>("%u-%u", 0, UINT_MAX); in TEST() 105 testAgainstLibc<unsigned>("%x-%x", 0, UINT_MAX); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_printf_test.cpp | 116 TestAgainstLibc<unsigned>("%u-%u", 0, UINT_MAX); in TEST() 117 TestAgainstLibc<unsigned>("%x-%x", 0, UINT_MAX); in TEST()
|
| /llvm-project-15.0.7/polly/test/IstAstInfo/ |
| H A D | single_loop_uint_max_iterations.ll | 15 ; for (i = 0; i < UINT_MAX; i++) 20 ; if (A[0] == UINT_MAX - 1)
|
| /llvm-project-15.0.7/libclc/generic/include/clc/integer/ |
| H A D | definitions.h | 14 #define UINT_MAX 0xffffffff macro
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | dw_op_constu.mir | 48 ; UINT_MAX 52 ; UINT_MAX+1 81 ; UINT_MAX 85 ; UINT_MAX+1 114 ; UINT_MAX 118 ; UINT_MAX+1
|
| /llvm-project-15.0.7/libc/AOR_v20.02/math/test/rtest/ |
| H A D | types.h | 14 #if UINT_MAX == 4294967295
|
| /llvm-project-15.0.7/openmp/runtime/test/atomic/ |
| H A D | omp-atomic-compare-signedness.c | 32 unsigned xu = UINT_MAX; in main()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | LoopPeel.h | 36 ScalarEvolution &SE, unsigned Threshold = UINT_MAX);
|
| /llvm-project-15.0.7/openmp/libomptarget/test/offloading/ |
| H A D | atomic-compare-signedness.c | 33 unsigned xu = UINT_MAX; in main()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | climits | 30 UINT_MAX
|