| /llvm-project-15.0.7/compiler-rt/test/msan/Linux/ |
| H A D | syscalls.cpp | 27 memset(buf, 0, sizeof(buf)); in main() 28 __msan_unpoison(buf, sizeof(buf)); in main() 34 __msan_unpoison(buf, sizeof(buf)); in main() 41 __msan_unpoison(buf, sizeof(buf)); in main() 58 __msan_poison(buf, sizeof(buf)); in main() 62 __msan_poison(buf, sizeof(buf)); in main() 67 __msan_poison(buf, sizeof(buf)); in main() 71 __msan_poison(buf, sizeof(buf)); in main() 75 __msan_poison(buf, sizeof(buf)); in main() 79 __msan_poison(buf, sizeof(buf)); in main() [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | warn-fortify-source.c | 39 char buf[20]; in call_memcpy_type() local 81 char buf[10]; in call_memset() local 87 char buf[10]; in call_snprintf() local 93 char buf[10]; in call_vsnprintf() local 152 char buf[6]; in call_sprintf() local 156 sprintf(buf, "hello"); in call_sprintf() 158 sprintf(buf, "1234%%"); in call_sprintf() 162 sprintf(buf, "1234%d", 9); in call_sprintf() 166 sprintf(buf, "12%#x", 9); in call_sprintf() 170 sprintf(buf, "123%+d", 9); in call_sprintf() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_printf_test.cpp | 22 char buf[1024]; in TEST() local 24 buf, sizeof(buf), "a%db%zdc%ue%zuf%xh%zxq%pe%sr", (int)-1, (uptr)-2, in TEST() 39 EXPECT_EQ(buf[3], 0); in TEST() 45 EXPECT_EQ(buf[9], 0); in TEST() 52 EXPECT_EQ(buf[3], 0); in TEST() 106 char buf[1024]; in TestAgainstLibc() local 107 uptr len = internal_snprintf(buf, sizeof(buf), fmt, arg1, arg2); in TestAgainstLibc() 143 char buf[1024]; in TEST() local 144 uptr len = internal_snprintf(buf, sizeof(buf), "%.*s", 3, "12345"); in TEST() 147 len = internal_snprintf(buf, sizeof(buf), "%.*s", 6, "12345"); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | SmallPtrSetTest.cpp | 22 int buf[8]; in TEST() local 24 buf[i] = 0; in TEST() 26 SmallPtrSet<int *, 4> s1 = {&buf[0], &buf[1]}; in TEST() 43 (s2 = {&buf[6], &buf[7], &buf[6]}).insert({&buf[5], &buf[4]}); in TEST() 53 int buf[8]; in TEST() local 106 int buf[8]; in TEST() local 108 buf[i] = 0; in TEST() 169 int buf[10]; in TEST() local 247 int buf[3]; in checkEraseAndIterators() local 257 EXPECT_TRUE(*B == &buf[0] || *B == &buf[1] || *B == &buf[2]); in checkEraseAndIterators() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | out-of-bounds-new.cpp | 7 int *buf = new int[100]; in test1() local 12 int *buf = new int[100]; in test1_ok() local 21 int *buf = new int[100]; in test1_ptr() local 22 int *p = buf; in test1_ptr() 28 int *p = buf; in test1_ptr_ok() 38 int *p = buf; in test1_ptr_arith() 45 int *p = buf; in test1_ptr_arith_ok() 52 int *p = buf; in test1_ptr_arith_bad() 59 int *p = buf; in test1_ptr_arith_ok2() 78 int *p = buf; in test2_ptr() [all …]
|
| H A D | out-of-bounds.c | 9 int buf[100]; in test1() local 14 int buf[100]; in test1_ok() local 38 int buf[100]; in test1_ptr() local 39 int *p = buf; in test1_ptr() 44 int buf[100]; in test1_ptr_ok() local 45 int *p = buf; in test1_ptr_ok() 54 int buf[100]; in test1_ptr_arith() local 55 int *p = buf; in test1_ptr_arith() 61 int buf[100]; in test1_ptr_arith_ok() local 147 buf[x] = 1; in test_assume_after_access() [all …]
|
| H A D | bsd-string.c | 21 char buf[5]; in f2() local 44 char buf[8]; in f6() local 51 char buf[8]; in f7() local 56 char buf[5]; in f8() local 60 len = strlcpy(buf,"123", sizeof(buf)); in f8() 66 len = strlcat(buf,"456", sizeof(buf)); in f8() 86 char buf[8]; in f9() local 89 len = strlcpy(buf,"abba",sizeof(buf)); in f9() 105 len = strlcpy(buf,unknown_src, sizeof(buf)); in f9() 115 len = strlcat(buf + 2, unknown_src + 1, sizeof(buf)); in f9() [all …]
|
| H A D | mpichecker.cpp | 7 double buf = 0; in matchedWait1() local 21 double buf = 0; in matchedWait2() local 34 double buf = 0; in matchedWait3() local 52 double buf = 0; in missingWait1() local 59 double buf = 0; in missingWait2() local 73 double buf = 0; in doubleNonblocking() local 87 double buf = 0; in doubleNonblocking2() local 101 double buf = 0; in doubleNonblocking3() local 111 double buf = 0; in doubleNonblocking4() local 122 double buf = 0; in tripleNonblocking() local [all …]
|
| H A D | copy-elision.cpp | 131 T *buf[20]; member 137 buf[len] = t; in push() 184 clang_analyzer_eval(v.buf[0] != v.buf[1]); // expected-warning{{TRUE}} in testMultipleReturns() 185 clang_analyzer_eval(v.buf[1] != v.buf[2]); // expected-warning{{TRUE}} in testMultipleReturns() 186 clang_analyzer_eval(v.buf[2] != v.buf[3]); // expected-warning{{TRUE}} in testMultipleReturns() 187 clang_analyzer_eval(v.buf[3] != v.buf[4]); // expected-warning{{TRUE}} in testMultipleReturns() 206 clang_analyzer_eval(v.buf[0] == v.buf[1]); // expected-warning{{TRUE}} in testArgumentConstructorWithoutDestructor() 209 clang_analyzer_eval(v.buf[0] != v.buf[1]); // expected-warning{{TRUE}} in testArgumentConstructorWithoutDestructor() 210 clang_analyzer_eval(v.buf[1] != v.buf[2]); // expected-warning{{TRUE}} in testArgumentConstructorWithoutDestructor() 211 clang_analyzer_eval(v.buf[2] != v.buf[3]); // expected-warning{{TRUE}} in testArgumentConstructorWithoutDestructor() [all …]
|
| H A D | undef-buffers.c | 12 char buf[2]; in stackBased1() local 13 buf[0] = 'a'; in stackBased1() 18 char buf[2]; in stackBased2() local 19 buf[1] = 'a'; in stackBased2() 25 char buf[2]; in stackBased3() local 27 buf[0] = 'a'; in stackBased3() 31 return buf[0]; in stackBased3() 36 buf[0] = 'a'; in heapBased1() 38 free(buf); in heapBased1() 44 buf[1] = 'a'; in heapBased2() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.fill/ |
| H A D | ranges_uninitialized_fill.pass.cpp | 83 assert(std::all_of(buf.begin(), buf.end(), pred)); in main() 85 std::destroy(buf.begin(), buf.end()); in main() 98 assert(std::all_of(buf.begin(), buf.end(), pred)); in main() 100 std::destroy(buf.begin(), buf.end()); in main() 114 std::destroy(buf.begin(), buf.begin() + N); in main() 128 std::destroy(buf.begin(), buf.begin() + N); in main() 143 std::destroy(buf.begin(), buf.begin() + N); in main() 179 std::destroy(buf.begin(), buf.begin() + N); in main() 197 std::destroy(buf.begin(), buf.begin() + N); in main() 212 std::destroy(buf.begin(), buf.end()); in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/ |
| H A D | ranges_uninitialized_default_construct.pass.cpp | 76 std::destroy(buf.begin(), buf.end()); in main() 85 auto range = std::ranges::subrange(buf.begin(), buf.end()); in main() 90 std::destroy(buf.begin(), buf.end()); in main() 104 std::destroy(buf.begin(), buf.begin() + N); in main() 117 std::destroy(buf.begin(), buf.begin() + N); in main() 131 std::destroy(buf.begin(), buf.begin() + N); in main() 147 std::destroy(buf.begin(), buf.begin() + Counted::total_objects); in main() 162 std::destroy(buf.begin(), buf.begin() + Counted::total_objects); in main() 175 std::destroy(buf.begin(), buf.end()); in main() 183 auto range = std::ranges::subrange(buf.cbegin(), buf.cend()); in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/ |
| H A D | ranges_uninitialized_value_construct.pass.cpp | 78 std::destroy(buf.begin(), buf.end()); in main() 87 auto range = std::ranges::subrange(buf.begin(), buf.end()); in main() 92 std::destroy(buf.begin(), buf.end()); in main() 105 std::destroy(buf.begin(), buf.begin() + N); in main() 118 std::destroy(buf.begin(), buf.begin() + N); in main() 127 auto range = std::ranges::subrange(buf.begin(), buf.begin() + N); in main() 132 std::destroy(buf.begin(), buf.begin() + N); in main() 166 std::destroy(buf.begin(), buf.begin() + Counted::total_objects); in main() 195 std::destroy(buf.begin(), buf.end()); in main() 204 auto range = std::ranges::subrange(buf.cbegin(), buf.cend()); in main() [all …]
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | Thunks.cpp | 52 void writeTo(uint8_t *buf) override; 60 void writeTo(uint8_t *buf) override; 431 memcpy(buf, data, sizeof(data)); in writeTo() 455 memcpy(buf, data, sizeof(data)); in writeTo() 491 writeLong(buf); in writeTo() 501 memcpy(buf, data, sizeof(data)); in writeTo() 529 writeLong(buf); in writeTo() 837 std::string buf; in addSymbols() local 838 raw_string_ostream os(buf); in addSymbols() 872 buf += 24; in writeTo() [all …]
|
| /llvm-project-15.0.7/lld/ELF/Arch/ |
| H A D | X86.cpp | 187 write32le(buf, s.getVA()); in writeIgotPlt() 205 memcpy(buf, v, sizeof(v)); in writePltHeader() 216 write32le(buf + 2, gotPlt + 4); in writePltHeader() 217 write32le(buf + 8, gotPlt + 8); in writePltHeader() 241 write32le(buf + 7, relOff); in writePlt() 505 write32le(buf, va); in writeGotPlt() 531 writePltHeader(buf); in writeIBTPlt() 532 buf += IBTPltHeaderSize; in writeIBTPlt() 545 buf += sizeof(inst); in writeIBTPlt() 619 write32le(buf + 18, relOff); in writePlt() [all …]
|
| H A D | Mips.cpp | 211 write32(buf, va); in writeGotPlt() 263 memset(buf, 0, pltHeaderSize); in writePltHeader() 270 write16(buf + 14, 0xfffe); in writePltHeader() 275 write16(buf + 22, 0x0c00); // nop in writePltHeader() 280 write16(buf + 22, 0x0c00); // nop in writePltHeader() 315 writeValue(buf + 4, gotPlt, 16, 0); in writePltHeader() 316 writeValue(buf + 8, gotPlt, 16, 0); in writePltHeader() 325 memset(buf, 0, pltEntrySize); in writePlt() 391 return SignExtend64<32>(read32(buf)); in getImplicitAddend() 466 return read64(buf); in getImplicitAddend() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.reverse/ |
| H A D | adaptor.pass.cpp | 34 BidirRange view(buf, buf + 3); in test() 42 BidirRange view(buf, buf + 3); in test() 59 BidirRange view(buf, buf + 3); in test() 67 BidirRange view(buf, buf + 3); in test() 75 BidirRange view(buf, buf + 3); in test() 93 BidirRange view(buf, buf + 3); in test() 101 BidirRange view(buf, buf + 3); in test() 109 BidirRange view(buf, buf + 3); in test() 119 BidirRange view(buf, buf + 3); in test() 129 BidirRange view(buf, buf + 3); in test() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | builtin-object-size-cxx14.cpp | 56 char buf[6]; member 62 char buf[5]; member 67 char buf[6]; in noWriteToBuf() local 68 copy5CharsInto(buf); in noWriteToBuf() 75 char buf[6] = {}; in initTheBuf() local 76 copy5CharsInto(buf); in initTheBuf() 84 char buf[6] = {}; in initTheBufWithALoop() local 86 buf[I] = I; in initTheBufWithALoop() 87 copy5CharsInto(buf); in initTheBufWithALoop() 91 large.buf[I] = I; in initTheBufWithALoop() [all …]
|
| /llvm-project-15.0.7/openmp/runtime/src/ |
| H A D | kmp_utility.cpp | 123 struct kmp_cpuid buf; in __kmp_query_cpuid() local 138 buf.eax, buf.ebx, buf.ecx, buf.edx)); in __kmp_query_cpuid() 140 max_arg = buf.eax; in __kmp_query_cpuid() 151 1, buf.eax, buf.ebx, buf.ecx, buf.edx)); in __kmp_query_cpuid() 156 p->signature = buf.eax; in __kmp_query_cpuid() 157 p->family = get_value(buf.eax, 20, 0xff) + get_value(buf.eax, 8, 0x0f); in __kmp_query_cpuid() 159 (get_value(buf.eax, 16, 0x0f) << 4) + get_value(buf.eax, 4, 0x0f); in __kmp_query_cpuid() 176 if ((buf.edx >> 4) & 1) { in __kmp_query_cpuid() 180 if ((buf.edx >> 8) & 1) { in __kmp_query_cpuid() 184 if ((buf.edx >> 9) & 1) { in __kmp_query_cpuid() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/re/re.alg/re.alg.replace/ |
| H A D | test2.pass.cpp | 34 char buf[100] = {0}; in main() local 38 assert(base(r) == buf+40); in main() 46 char buf[100] = {0}; in main() local 51 assert(base(r) == buf+43); in main() 59 char buf[100] = {0}; in main() local 64 assert(base(r) == buf+40); in main() 72 char buf[100] = {0}; in main() local 77 assert(base(r) == buf+36); in main() 85 char buf[100] = {0}; in main() local 90 assert(base(r) == buf+32); in main() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/dfsan/ |
| H A D | stack_trace.c | 18 return bar(depth - 1, buf, len); in bar() 22 return bar(depth, buf, len); in baz() 26 char buf[3000]; in main() local 27 size_t length = dfsan_sprint_stack_trace(buf, sizeof(buf)); in main() 28 assert(length < sizeof(buf)); in main() 29 printf("==OUTPUT==\n%s==EOS==\n", buf); in main() 35 length = baz(8, buf, sizeof(buf)); in main() 36 printf("==OUTPUT==\n%s==EOS==\n", buf); in main() 60 buf[0] = '\0'; in main() 61 length = baz(8, buf, 0); in main() [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/SLPVectorizer/AArch64/ |
| H A D | slp-or-reduction.ll | 4 %struct.buf = type { [8 x i8] } 6 define i8 @reduce_or(%struct.buf* %a, %struct.buf* %b) { 21 %arrayidx = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 0 23 %arrayidx3 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 0 26 %arrayidx.1 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 1 28 %arrayidx3.1 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 1 32 %arrayidx.2 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 2 34 %arrayidx3.2 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 2 38 %arrayidx.3 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 3 44 %arrayidx.4 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 4 [all …]
|
| H A D | slp-xor-reduction.ll | 4 %struct.buf = type { [8 x i8] } 6 define i8 @reduce_xor(%struct.buf* %a, %struct.buf* %b) { 21 %arrayidx = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 0 23 %arrayidx3 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 0 26 %arrayidx.1 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 1 28 %arrayidx3.1 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 1 32 %arrayidx.2 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 2 34 %arrayidx3.2 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 2 38 %arrayidx.3 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 3 44 %arrayidx.4 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 4 [all …]
|
| H A D | slp-and-reduction.ll | 4 %struct.buf = type { [8 x i8] } 6 define i8 @reduce_and(%struct.buf* %a, %struct.buf* %b) { 21 %arrayidx = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 0 23 %arrayidx3 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 0 27 %arrayidx.1 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 1 29 %arrayidx3.1 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 1 33 %arrayidx.2 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 2 35 %arrayidx3.2 = getelementptr inbounds %struct.buf, %struct.buf* %b, i64 0, i32 0, i64 2 39 %arrayidx.3 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 3 45 %arrayidx.4 = getelementptr inbounds %struct.buf, %struct.buf* %a, i64 0, i32 0, i64 4 [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/ |
| H A D | move.pass.cpp | 25 std::stringbuf buf; in main() local 26 buf = std::move(buf1); in main() 31 std::stringbuf buf; in main() local 32 buf = std::move(buf1); in main() 37 std::stringbuf buf; in main() local 38 buf = std::move(buf1); in main() 44 std::wstringbuf buf; in main() local 45 buf = std::move(buf1); in main() 50 std::wstringbuf buf; in main() local 51 buf = std::move(buf1); in main() [all …]
|