Home
last modified time | relevance | path

Searched refs:UINT_MAX (Results 1 – 25 of 120) sorted by relevance

12345

/llvm-project-15.0.7/clang/test/Analysis/
H A Dadditive-folding.cpp5 #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 Dadditive-folding-range-constraints.c5 #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 Dconstraint_manager_negate.c11 #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 Dconstraint_manager_negate_difference.c10 #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 Dindex-type.c5 #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 Dconstant-folding.c3 #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 DSystemZHazardRecognizer.cpp86 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 Dmemchr-4.ll14 ; 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 Dstrncmp-3.ll17 ; 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 Dlimits_h.pass.cpp63 #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 Dclimits.pass.cpp63 #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 Dmax.pass.cpp51 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 Dlimits.h34 #undef UINT_MAX
56 #define UINT_MAX (__INT_MAX__ *2U +1U) macro
/llvm-project-15.0.7/clang/test/Headers/
H A Dlimits.cpp17 _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 Dmul_hi.cl23 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 Dstrings_test.cpp104 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 Dsanitizer_printf_test.cpp116 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 Dsingle_loop_uint_max_iterations.ll15 ; 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 Ddefinitions.h14 #define UINT_MAX 0xffffffff macro
/llvm-project-15.0.7/llvm/test/DebugInfo/X86/
H A Ddw_op_constu.mir48 ; 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 Dtypes.h14 #if UINT_MAX == 4294967295
/llvm-project-15.0.7/openmp/runtime/test/atomic/
H A Domp-atomic-compare-signedness.c32 unsigned xu = UINT_MAX; in main()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DLoopPeel.h36 ScalarEvolution &SE, unsigned Threshold = UINT_MAX);
/llvm-project-15.0.7/openmp/libomptarget/test/offloading/
H A Datomic-compare-signedness.c33 unsigned xu = UINT_MAX; in main()
/llvm-project-15.0.7/libcxx/include/
H A Dclimits30 UINT_MAX

12345