Home
last modified time | relevance | path

Searched refs:overflow (Results 1 – 25 of 2452) sorted by relevance

12345678910>>...99

/external/python/cpython3/Modules/_testlimitedcapi/
Dlong.c129 int overflow; in _testlimitedcapi_test_long_and_overflow_impl() local
136 overflow = 1234; in _testlimitedcapi_test_long_and_overflow_impl()
137 value = PyLong_AsLongAndOverflow(num, &overflow); in _testlimitedcapi_test_long_and_overflow_impl()
144 if (overflow != 1) in _testlimitedcapi_test_long_and_overflow_impl()
163 overflow = 0; in _testlimitedcapi_test_long_and_overflow_impl()
164 value = PyLong_AsLongAndOverflow(num, &overflow); in _testlimitedcapi_test_long_and_overflow_impl()
171 if (overflow != 1) in _testlimitedcapi_test_long_and_overflow_impl()
180 overflow = 1234; in _testlimitedcapi_test_long_and_overflow_impl()
181 value = PyLong_AsLongAndOverflow(num, &overflow); in _testlimitedcapi_test_long_and_overflow_impl()
188 if (overflow != -1) in _testlimitedcapi_test_long_and_overflow_impl()
[all …]
/external/llvm/test/Transforms/ConstProp/
Doverflow-ops.ll4 declare {i8, i1} @llvm.uadd.with.overflow.i8(i8, i8)
5 declare {i8, i1} @llvm.usub.with.overflow.i8(i8, i8)
6 declare {i8, i1} @llvm.umul.with.overflow.i8(i8, i8)
8 declare {i8, i1} @llvm.sadd.with.overflow.i8(i8, i8)
9 declare {i8, i1} @llvm.ssub.with.overflow.i8(i8, i8)
10 declare {i8, i1} @llvm.smul.with.overflow.i8(i8, i8)
18 %t = call {i8, i1} @llvm.uadd.with.overflow.i8(i8 42, i8 100)
27 %t = call {i8, i1} @llvm.uadd.with.overflow.i8(i8 142, i8 120)
40 %t = call {i8, i1} @llvm.usub.with.overflow.i8(i8 4, i8 2)
49 %t = call {i8, i1} @llvm.usub.with.overflow.i8(i8 4, i8 6)
[all …]
/external/google-breakpad/src/common/
Dsafe_math.h49 bool overflow = result < a; in AddWithOverflowCheck() local
50 return {result, overflow}; in AddWithOverflowCheck()
55 bool overflow; in AddWithOverflowCheck() local
58 overflow = result < a; in AddWithOverflowCheck()
60 overflow = result > a; in AddWithOverflowCheck()
64 overflow = false; in AddWithOverflowCheck()
66 return {result, overflow}; in AddWithOverflowCheck()
69 bool overflow = __builtin_add_overflow(a, b, &result); in AddWithOverflowCheck()
70 return {result, overflow}; in AddWithOverflowCheck()
/external/llvm/test/CodeGen/AArch64/
Darm64-xaluo.ll5 ; Get the actual value of the overflow bit.
12 %t = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %v1, i32 %v2)
25 %t = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %v1, i32 4)
38 %t = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %v1, i32 -4)
51 %t = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %v1, i32 16777215)
65 %t = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %v1, i32 %lsl)
77 %t = call {i64, i1} @llvm.sadd.with.overflow.i64(i64 %v1, i64 %v2)
89 %t = call {i64, i1} @llvm.sadd.with.overflow.i64(i64 %v1, i64 4)
101 %t = call {i64, i1} @llvm.sadd.with.overflow.i64(i64 %v1, i64 -4)
113 %t = call {i32, i1} @llvm.uadd.with.overflow.i32(i32 %v1, i32 %v2)
[all …]
/external/llvm/test/CodeGen/X86/
Dxaluo.ll5 ; Get the actual value of the overflow bit.
13 %t = call {i8, i1} @llvm.sadd.with.overflow.i8(i8 %v1, i8 %v2)
25 %t = call {i16, i1} @llvm.sadd.with.overflow.i16(i16 %v1, i16 %v2)
37 %t = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %v1, i32 %v2)
49 %t = call {i64, i1} @llvm.sadd.with.overflow.i64(i64 %v1, i64 %v2)
62 %t = call {i8, i1} @llvm.sadd.with.overflow.i8(i8 %v1, i8 1)
74 %t = call {i16, i1} @llvm.sadd.with.overflow.i16(i16 %v1, i16 1)
86 %t = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %v1, i32 1)
98 %t = call {i64, i1} @llvm.sadd.with.overflow.i64(i64 %v1, i64 1)
116 %t = call {i64, i1} @llvm.sadd.with.overflow.i64(i64 2, i64 %v1)
[all …]
Dsmul-with-overflow.ll8 %t = call {i32, i1} @llvm.smul.with.overflow.i32(i32 %v1, i32 %v2)
11 br i1 %obit, label %overflow, label %normal
17 overflow:
27 %t = call {i32, i1} @llvm.smul.with.overflow.i32(i32 %v1, i32 %v2)
30 br i1 %obit, label %overflow, label %normal
32 overflow:
45 declare {i32, i1} @llvm.smul.with.overflow.i32(i32, i32)
50 %tmp1 = call { i32, i1 } @llvm.smul.with.overflow.i32(i32 %tmp0, i32 2)
62 %tmp1 = call { i32, i1 } @llvm.smul.with.overflow.i32(i32 %tmp0, i32 4)
71 declare { i63, i1 } @llvm.smul.with.overflow.i63(i63, i63) nounwind readnone
[all …]
/external/llvm/test/CodeGen/Generic/
Doverflow.ll2 ; Verify codegen's don't crash on overflow intrinsics.
8 %sadd = tail call { i8, i1 } @llvm.sadd.with.overflow.i8(i8 %a, i8 %b)
15 declare { i8, i1 } @llvm.sadd.with.overflow.i8(i8, i8) nounwind readnone
19 %sadd = tail call { i16, i1 } @llvm.sadd.with.overflow.i16(i16 %a, i16 %b)
26 declare { i16, i1 } @llvm.sadd.with.overflow.i16(i16, i16) nounwind readnone
30 %sadd = tail call { i32, i1 } @llvm.sadd.with.overflow.i32(i32 %a, i32 %b)
37 declare { i32, i1 } @llvm.sadd.with.overflow.i32(i32, i32) nounwind readnone
44 %uadd = tail call { i8, i1 } @llvm.uadd.with.overflow.i8(i8 %a, i8 %b)
51 declare { i8, i1 } @llvm.uadd.with.overflow.i8(i8, i8) nounwind readnone
55 %uadd = tail call { i16, i1 } @llvm.uadd.with.overflow.i16(i16 %a, i16 %b)
[all …]
/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpalloc.c62 mpd_size_t overflow; in mpd_callocfunc_em() local
65 &overflow); in mpd_callocfunc_em()
66 if (overflow) { in mpd_callocfunc_em()
85 mpd_size_t req, overflow; in mpd_alloc() local
87 req = mul_size_t_overflow(nmemb, size, &overflow); in mpd_alloc()
88 if (overflow) { in mpd_alloc()
99 mpd_size_t overflow; in mpd_calloc() local
101 (void)mul_size_t_overflow(nmemb, size, &overflow); in mpd_calloc()
102 if (overflow) { in mpd_calloc()
114 mpd_size_t req, overflow; in mpd_realloc() local
[all …]
/external/mpdecimal/libmpdec/
Dmpalloc.c60 mpd_size_t overflow; in mpd_callocfunc_em() local
63 &overflow); in mpd_callocfunc_em()
64 if (overflow) { in mpd_callocfunc_em()
83 mpd_size_t req, overflow; in mpd_alloc() local
85 req = mul_size_t_overflow(nmemb, size, &overflow); in mpd_alloc()
86 if (overflow) { in mpd_alloc()
97 mpd_size_t overflow; in mpd_calloc() local
99 (void)mul_size_t_overflow(nmemb, size, &overflow); in mpd_calloc()
100 if (overflow) { in mpd_calloc()
112 mpd_size_t req, overflow; in mpd_realloc() local
[all …]
/external/llvm/test/tools/llvm-profdata/
Doverflow-instr.test1 Tests for overflow when merging instrumented profiles.
3 1- Merge profile having maximum counts with itself and verify overflow detected and saturation occu…
4 RUN: llvm-profdata merge -instr %p/Inputs/overflow-instr.proftext %p/Inputs/overflow-instr.proftext…
6 MERGE_OVERFLOW: {{.*}}: overflow: Counter overflow
11 2- Merge profile having maximum counts by itself and verify no overflow
12 RUN: llvm-profdata merge -instr %p/Inputs/overflow-instr.proftext -o %t.out 2>&1 | FileCheck %s -ch…
14 MERGE_NO_OVERFLOW-NOT: {{.*}}: overflow: Counter overflow
/external/llvm/test/Transforms/InstCombine/
Doverflow-mul.ll11 ; CHECK: [[MUL:%.*]] = call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %x, i32 %y)
12 %overflow = icmp ugt i64 %mul64, 4294967295
14 %retval = zext i1 %overflow to i32
26 ; CHECK: [[MUL:%.*]] = call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %x, i32 %y)
27 %overflow = icmp uge i64 %mul64, 4294967296
29 %retval = zext i1 %overflow to i32
42 ; CHECK: [[MUL:%.*]] = call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %x, i32 %y)
43 %overflow = icmp ugt i64 %mul64, 4294967295
47 %retval = select i1 %overflow, i32 %mul32, i32 111
60 ; CHECK-NOT: umul.with.overflow.i32
[all …]
Dintrinsics.ll3 %overflow.result = type {i8, i1}
7 declare %overflow.result @llvm.uadd.with.overflow.i8(i8, i8) nounwind readnone
8 declare %overflow.result @llvm.umul.with.overflow.i8(i8, i8) nounwind readnone
9 declare %ov.result.32 @llvm.sadd.with.overflow.i32(i32, i32) nounwind readnone
10 declare %ov.result.32 @llvm.uadd.with.overflow.i32(i32, i32) nounwind readnone
11 declare %ov.result.32 @llvm.ssub.with.overflow.i32(i32, i32) nounwind readnone
12 declare %ov.result.32 @llvm.usub.with.overflow.i32(i32, i32) nounwind readnone
13 declare %ov.result.32 @llvm.smul.with.overflow.i32(i32, i32) nounwind readnone
14 declare %ov.result.32 @llvm.umul.with.overflow.i32(i32, i32) nounwind readnone
29 %x = call %overflow.result @llvm.uadd.with.overflow.i8(i8 %A, i8 %B)
[all …]
/external/owasp/java-encoder/core/src/main/java/org/owasp/encoder/
DCDATAEncoder.java179 return overflow(input, i, output, j); in encodeArrays()
190 return overflow(input, i, output, j); in encodeArrays()
198 return overflow(input, i, output, j); in encodeArrays()
208 return overflow(input, i, output, j); in encodeArrays()
215 return overflow(input, i, output, j); in encodeArrays()
221 return overflow(input, i, output, j); in encodeArrays()
234 return overflow(input, i, output, j); in encodeArrays()
245 return overflow(input, i, output, j); in encodeArrays()
251 return overflow(input, i, output, j); in encodeArrays()
261 return overflow(input, i, output, j); in encodeArrays()
[all …]
DXMLEncoder.java261 return overflow(input, i, output, j); in encodeArrays()
268 return overflow(input, i, output, j); in encodeArrays()
278 return overflow(input, i, output, j); in encodeArrays()
287 return overflow(input, i, output, j); in encodeArrays()
297 return overflow(input, i, output, j); in encodeArrays()
308 return overflow(input, i, output, j); in encodeArrays()
319 return overflow(input, i, output, j); in encodeArrays()
327 return overflow(input, i, output, j); in encodeArrays()
342 return overflow(input, i, output, j); in encodeArrays()
348 return overflow(input, i, output, j); in encodeArrays()
[all …]
DJavaEncoder.java106 return overflow(input, i, output, j); in encodeArrays()
112 return overflow(input, i, output, j); in encodeArrays()
120 return overflow(input, i, output, j); in encodeArrays()
127 return overflow(input, i, output, j); in encodeArrays()
134 return overflow(input, i, output, j); in encodeArrays()
141 return overflow(input, i, output, j); in encodeArrays()
148 return overflow(input, i, output, j); in encodeArrays()
174 return overflow(input, i, output, j); in encodeArrays()
180 return overflow(input, i, output, j); in encodeArrays()
192 return overflow(input, i, output, j); in encodeArrays()
[all …]
DXMLCommentEncoder.java136 return overflow(input, i, output, j); in encodeArrays()
143 return overflow(input, i, output, j); in encodeArrays()
149 return overflow(input, i, output, j); in encodeArrays()
160 return overflow(input, i, output, j); in encodeArrays()
165 return overflow(input, i, output, j); in encodeArrays()
171 return overflow(input, i, output, j); in encodeArrays()
186 return overflow(input, i, output, j); in encodeArrays()
192 return overflow(input, i, output, j); in encodeArrays()
200 return overflow(input, i, output, j); in encodeArrays()
207 return overflow(input, i, output, j); in encodeArrays()
[all …]
/external/elfutils/tests/
Drun-large-elf-file.sh126 testfiles testfile-dwp-5-cu-index-overflow testfile-dwp-5-cu-index-overflow.dwp
128 testrun_compare ${abs_builddir}/cu-dwp-section-info testfile-dwp-5-cu-index-overflow.dwp << EOF
129 file: testfile-dwp-5-cu-index-overflow.dwp
195 testrun_compare ${abs_builddir}/get-units-split testfile-dwp-5-cu-index-overflow << EOF
196 file: testfile-dwp-5-cu-index-overflow
210 rm -f testfile-dwp-5-cu-index-overflow testfile-dwp-5-cu-index-overflow.dwp
213 testfiles testfile-dwp-4-cu-index-overflow testfile-dwp-4-cu-index-overflow.dwp
215 testrun_compare ${abs_builddir}/cu-dwp-section-info testfile-dwp-4-cu-index-overflow.dwp << EOF
216 file: testfile-dwp-4-cu-index-overflow.dwp
282 testrun_compare ${abs_builddir}/get-units-split testfile-dwp-4-cu-index-overflow << EOF
[all …]
/external/llvm/test/Transforms/GVN/
D2011-07-07-MatchIntrinsicExtract.ll8 %uadd = tail call %0 @llvm.uadd.with.overflow.i64(i64 %a, i64 %b)
20 %usub = tail call %0 @llvm.usub.with.overflow.i64(i64 %a, i64 %b)
32 %umul = tail call %0 @llvm.umul.with.overflow.i64(i64 %a, i64 %b)
44 %sadd = tail call %0 @llvm.sadd.with.overflow.i64(i64 %a, i64 %b)
56 %ssub = tail call %0 @llvm.ssub.with.overflow.i64(i64 %a, i64 %b)
68 %smul = tail call %0 @llvm.smul.with.overflow.i64(i64 %a, i64 %b)
79 declare %0 @llvm.uadd.with.overflow.i64(i64, i64) nounwind readnone
80 declare %0 @llvm.usub.with.overflow.i64(i64, i64) nounwind readnone
81 declare %0 @llvm.umul.with.overflow.i64(i64, i64) nounwind readnone
82 declare %0 @llvm.sadd.with.overflow.i64(i64, i64) nounwind readnone
[all …]
/external/libvpx/vpx_dsp/x86/
Dfwd_txfm_sse2.h176 int overflow = k_check_epi32_overflow_4(preg0, preg1, preg2, preg3, zero); in k_check_epi32_overflow_8() local
177 if (!overflow) { in k_check_epi32_overflow_8()
178 overflow = k_check_epi32_overflow_4(preg4, preg5, preg6, preg7, zero); in k_check_epi32_overflow_8()
180 return overflow; in k_check_epi32_overflow_8()
190 int overflow = k_check_epi32_overflow_4(preg0, preg1, preg2, preg3, zero); in k_check_epi32_overflow_16() local
191 if (!overflow) { in k_check_epi32_overflow_16()
192 overflow = k_check_epi32_overflow_4(preg4, preg5, preg6, preg7, zero); in k_check_epi32_overflow_16()
193 if (!overflow) { in k_check_epi32_overflow_16()
194 overflow = k_check_epi32_overflow_4(preg8, preg9, preg10, preg11, zero); in k_check_epi32_overflow_16()
195 if (!overflow) { in k_check_epi32_overflow_16()
[all …]
/external/pytorch/torch/csrc/utils/
Dpython_numbers.h60 int overflow = 0; in THPUtils_unpackInt() local
61 long value = PyLong_AsLongAndOverflow(obj, &overflow); in THPUtils_unpackInt()
65 if (overflow != 0) { in THPUtils_unpackInt()
76 int overflow = 0; in THPUtils_unpackLong() local
77 long long value = PyLong_AsLongLongAndOverflow(obj, &overflow); in THPUtils_unpackLong()
81 if (overflow != 0) { in THPUtils_unpackLong()
181 int overflow; in THPUtils_unpackNumberAsBool() local
182 long long value = PyLong_AsLongLongAndOverflow(obj, &overflow); in THPUtils_unpackNumberAsBool()
192 int overflow = 0; in THPUtils_unpackDeviceIndex() local
193 long value = PyLong_AsLongAndOverflow(obj, &overflow); in THPUtils_unpackDeviceIndex()
[all …]
/external/one-true-awk/testdir/
DT.overflow1 echo T.overflow: test some overflow conditions
11 cmp -s foo1 foo2 || echo 'BAD: T.overflow record 1'
19 cmp -s foo1 foo2 || echo 'BAD: T.overflow abcdef'
31 cmp -s foo1 foo2 || echo 'BAD: T.overflow -mr -mf set $1'
44 cmp -s foo1 foo2 || echo 'BAD: T.overflow -mr -mf NF'
53 test -r core && echo 1>&2 "BAD: T.overflow too long char class dropped core"
64 cmp -s foo1 foo2 || echo 'BAD: T.overflow huge sprintfs'
78 cmp -s foo1 foo2 || echo 'BAD: T.overflow big array'
82 grep "out of range field" foo >/dev/null || echo 1>&2 "BAD: T.overflow \$400000"
86 ls /tmp/awktestfoo* | grep '1000' >/dev/null || echo 1>&2 "BAD: T.overflow openfiles"
/external/clang/test/SemaCXX/
Dinteger-overflow.cpp14 static const uint64_t overflow = 1 * 4608 * 1024 * 1024; // expected-warning {{overflow in expressi… variable
18 uint64_t overflow = 4608 * 1024 * 1024, in check_integer_overflows() local
31 overflow += overflow2 = overflow3 = (uint64_t)(4608 * 1024 * 1024); in check_integer_overflows()
33 overflow += overflow2 = overflow3 = 4608 * 1024 * 1024; in check_integer_overflows()
36 overflow += overflow2 = overflow3 = static_cast<uint64_t>(4608 * 1024 * 1024); in check_integer_overflows()
42 overflow = 4608 * 1024 * 1024 ? 4608 * 1024 * 1024 : 0; in check_integer_overflows()
45 overflow = 0 ? 0 : 4608 * 1024 * 1024; in check_integer_overflows()
/external/arm-neon-tests/
Dref-rvct-all.txt2243 VRSHL/VRSHLQ (checking round_const overflow: shift by -1) output:
2269 VRSHL/VRSHLQ (checking round_const overflow: shift by -3) output:
4639 VABAL test intermediate overflow output:
6207 VRSHR_N (overflow test: max shift amount, positive input) output:
6233 VRSHR_N (overflow test: shift by 1, with negative input) output:
6259 VRSHR_N (overflow test: shift by 3, positive input) output:
6285 VRSHR_N (overflow test: shift by 1, with negative input) output:
6311 VRSHR_N (overflow test: shift by 3, with negative input) output:
6363 VRSRA_N (checking overflow: shift by 1, positive input) output:
6389 VRSRA_N (checking overflow: shift by 3, positive input) output:
[all …]
/external/libgsm/add-test/
Dadd_test.dta36 ' positive overflow
76 ' positive overflow
115 ' positive overflow
155 ' positive overflow
184 ' overflow
212 ' overflow
248 ' overflow
289 ' overflow
311 ' overflow
359 ' overflow
[all …]
/external/compiler-rt/lib/builtins/
Dmulodi4.c22 __mulodi4(di_int a, di_int b, int* overflow) in __mulodi4() argument
27 *overflow = 0; in __mulodi4()
32 *overflow = 1; in __mulodi4()
38 *overflow = 1; in __mulodi4()
50 *overflow = 1; in __mulodi4()
55 *overflow = 1; in __mulodi4()

12345678910>>...99