| /llvm-project-15.0.7/libc/test/src/stdio/ |
| H A D | sprintf_test.cpp | 18 char buff[64]; member in LlvmLibcSPrintfTest 28 char buff[64]; in TEST() local 37 char buff[64]; in TEST() local 54 char buff[64]; in TEST() local 71 char buff[64]; in TEST() local 94 char buff[64]; in TEST() local 239 char buff[64]; in TEST() local 364 char buff[64]; in TEST() local 375 written = __llvm_libc::sprintf(buff, "%p", buff); in TEST() 380 char buff[64]; in TEST() local [all …]
|
| H A D | snprintf_test.cpp | 17 char buff[64]; in TEST() local 21 __llvm_libc::snprintf(buff, 16, "A simple string with no conversions."); in TEST() 23 ASSERT_STREQ(buff, "A simple string"); in TEST() 25 written = __llvm_libc::snprintf(buff, 5, "%s", "1234567890"); in TEST() 27 ASSERT_STREQ(buff, "1234"); in TEST() 35 char buff[64]; in TEST() local 39 __llvm_libc::snprintf(buff, 37, "A simple string with no conversions."); in TEST() 41 ASSERT_STREQ(buff, "A simple string with no conversions."); in TEST() 43 written = __llvm_libc::snprintf(buff, 20, "%s", "1234567890"); in TEST() 45 ASSERT_STREQ(buff, "1234567890"); in TEST()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/ |
| H A D | begin.pass.cpp | 57 Range range(buff, buff + 1); in general_tests() 66 Range range(buff, buff); in general_tests() 77 Range range(buff, buff + 1); in general_tests() 84 Range range(buff, buff + 1); in general_tests() 96 Range range(buff, buff + 2); in general_tests() 103 Range range(buff, buff + 2); in general_tests() 110 Range range(buff, buff + 2); in general_tests() 122 Range range(buff, buff + 8); in general_tests() 142 Range range(buff, buff + 2); in general_tests() 153 Range range(buff, buff + 8); in general_tests() [all …]
|
| H A D | end.pass.cpp | 45 int buff[] = {1, 2, 3, 4, 5, 6, 7, 8}; in test() local 49 Range range(buff, buff + 1); in test() 58 Range range(buff, buff); in test() 62 assert(base(base(end.base())) == buff); in test() 67 Range range(buff, buff + 1); in test() 71 assert(base(base(end.base())) == buff + 1); in test() 77 Range range(buff, buff + 2); in test() 81 assert(base(base(end.base())) == buff + 2); in test() 88 Range range(buff, buff + 8); in test() 99 CommonRange range(buff, buff + 8); in test() [all …]
|
| H A D | base.pass.cpp | 54 int buff[] = {1, 2, 3, 4, 5, 6, 7, 8}; in test() local 58 Range range(buff, buff + 8); in test() 62 assert(result.begin() == buff); in test() 63 assert(result.end() == buff + 8); in test() 68 Range range(buff, buff + 8); in test() 72 assert(result.begin() == buff); in test() 73 assert(result.end() == buff + 8); in test()
|
| H A D | ctor.view_pred.pass.cpp | 46 int buff[] = {1, 2, 3, 4, 5, 6, 7, 8}; in test() local 50 Range range(buff, buff + 8); in test() 63 Range range(buff, buff + 8); in test() 87 Range range(buff, buff + 8); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/iterator.requirements/iterator.cust/iterator.cust.swap/ |
| H A D | iter_swap.pass.cpp | 180 int buff[2] = {1, 2}; in test() local 181 std::ranges::iter_swap(buff + 0, buff + 1); in test() 182 assert(buff[0] == 2 && buff[1] == 1); in test() 185 assert(buff[0] == 1 && buff[1] == 2); in test() 188 assert(buff[0] == 2 && buff[1] == 1); in test() 190 std::ranges::iter_swap(forward_iterator(buff), forward_iterator(buff + 1)); in test() 191 assert(buff[0] == 1 && buff[1] == 2); in test() 194 assert(buff[0] == 2 && buff[1] == 1); in test() 197 assert(buff[0] == 1 && buff[1] == 2); in test() 199 std::ranges::iter_swap(contiguous_iterator(buff), contiguous_iterator(buff + 1)); in test() [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoadStoreVectorizer/X86/ |
| H A D | preserve-order64.ll | 10 ; (load into buff.val and store to buff.p) preserve their order. 17 ; CHECK: %buff.val = load i8 22 %buff.p = load i8*, i8** %tmp1 23 %buff.val = load i8, i8* %buff.p 24 store i8 0, i8* %buff.p, align 8 34 ; CHECK: %buff.val = load i8 40 %buff.p = load i8*, i8** %tmp1 41 %buff.val = load i8, i8* %buff.p 42 store i8 0, i8* %buff.p, align 8 59 %buff.p = load i8*, i8** %tmp1 [all …]
|
| H A D | preserve-order32.ll | 9 ; (load into buff.val and store to buff.p) preserve their order. 16 ; CHECK: %buff.val = load i8 18 define void @preserve_order_32(%struct.buffer_t* noalias %buff) #0 { 20 %tmp1 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i32 0, i32 1 21 %buff.p = load i8*, i8** %tmp1 22 %buff.val = load i8, i8* %buff.p 23 store i8 0, i8* %buff.p, align 8 24 %tmp0 = getelementptr inbounds %struct.buffer_t, %struct.buffer_t* %buff, i32 0, i32 0 25 %buff.int = load i32, i32* %tmp0, align 8
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_printf.cpp | 31 if (*buff < buff_end) { in AppendChar() 32 **buff = c; in AppendChar() 33 (*buff)++; in AppendChar() 53 result += AppendChar(buff, buff_end, '-'); in AppendNumber() 71 result += AppendChar(buff, buff_end, c); in AppendNumber() 77 result += AppendChar(buff, buff_end, digit); in AppendNumber() 111 result += AppendChar(buff, buff_end, *s); in AppendString() 115 result += AppendChar(buff, buff_end, ' '); in AppendString() 128 int VSNPrintf(char *buff, int buff_length, in VSNPrintf() argument 221 RAW_CHECK(buff <= buff_end); in VSNPrintf() [all …]
|
| H A D | sanitizer_file.cpp | 129 *buff = nullptr; in ReadFileToBuffer() 139 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer() 140 *buff = (char*)MmapOrDie(size, __func__); in ReadFileToBuffer() 144 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer() 154 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer() 174 buff->clear(); in ReadFileToVector() 183 if (read_len >= buff->size()) in ReadFileToVector() 185 CHECK_LT(read_len, buff->size()); in ReadFileToVector() 186 CHECK_LE(buff->size(), max_len); in ReadFileToVector() 188 if (!ReadFromFile(fd, buff->data() + read_len, buff->size() - read_len, in ReadFileToVector() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.utility/view.interface/ |
| H A D | view.interface.pass.cpp | 37 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 38 constexpr InputIter begin() const { return InputIter(buff); } in begin() 64 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 71 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 87 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 95 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 105 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 114 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 121 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member 144 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; member [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.utility/range.subrange/ |
| H A D | primitives.pass.cpp | 21 int buff[] = {1, 2, 3, 4, 5}; in test() local 24 std::ranges::subrange<MoveOnlyForwardIter, int*> a(MoveOnlyForwardIter(buff), buff + 5, 5); in test() 25 assert(base(a.begin()) == buff); in test() 36 std::ranges::subrange<ForwardIter> c{ForwardIter(buff), ForwardIter(buff)}; in test() 41 std::ranges::subrange<ForwardIter> d(ForwardIter(buff), ForwardIter(buff + 1)); in test() 47 SizedSentinelForwardIter beg(buff, &minusWasCalled), end(buff + 5, &minusWasCalled); in test()
|
| H A D | ctor.range_size.pass.cpp | 37 int buff[] = {1, 2, 3, 4, 5, 6, 7, 8}; in test() local 42 BorrowedRange range(buff, buff); in test() 49 BorrowedRange range(buff, buff + 1); in test() 54 BorrowedRange range(buff, buff + 2); in test() 61 BorrowedRange range(buff, buff + 8); in test()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/ |
| H A D | wcrtomb.c | 12 char buff[10]; in main() local 13 size_t res = wcrtomb(buff, L'a', &state); in main() 15 assert(buff[0] == 'a'); in main() 17 res = wcrtomb(buff, L'\0', &state); in main() 19 assert(buff[0] == '\0'); in main() 24 res = wcrtomb(buff, L'a', NULL); in main() 26 assert(buff[0] == 'a'); in main() 28 res = wcrtomb(buff, L'\0', NULL); in main() 30 assert(buff[0] == '\0'); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/ |
| H A D | adaptor.pass.cpp | 36 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; in test() local 43 assert(result.begin().base() == buff); in test() 51 std::same_as<Result> auto result = partial(MoveOnlyView{buff}); in test() 52 assert(result.begin().base() == buff); in test() 64 assert(result.begin().base() == buff); in test() 72 std::same_as<Result> auto result = MoveOnlyView{buff} | partial; in test() 73 assert(result.begin().base() == buff); in test() 84 assert(result.begin().base() == buff); in test() 105 assert(result.begin().base().base() == buff); in test() 113 std::same_as<Result> auto result = MoveOnlyView{buff} | partial; in test() [all …]
|
| H A D | begin.pass.cpp | 26 int buff[8] = {0, 1, 2, 3, 4, 5, 6, 7}; in test() local 29 std::ranges::transform_view transformView(MoveOnlyView{buff}, PlusOneMutable{}); in test() 30 assert(transformView.begin().base() == buff); in test() 35 std::ranges::transform_view transformView(ForwardView{buff}, PlusOneMutable{}); in test() 36 assert(base(transformView.begin().base()) == buff); in test() 41 std::ranges::transform_view transformView(InputView{buff}, PlusOneMutable{}); in test() 42 assert(base(transformView.begin().base()) == buff); in test() 47 const std::ranges::transform_view transformView(MoveOnlyView{buff}, PlusOne{}); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/ |
| H A D | deref.pass.cpp | 21 int buff[] = {0, 1, 2, 3, 4, 5, 6, 7}; in main() local 23 View transformView(MoveOnlyView{buff}, PlusOne{}); in main() 29 int buff[] = {0, 1, 2, 3, 4, 5, 6, 7}; in main() local 31 View transformView(MoveOnlyView{buff}, PlusOneMutable{}); in main() 37 int buff[] = {0, 1, 2, 3, 4, 5, 6, 7}; in main() local 39 View transformView(MoveOnlyView{buff}, PlusOneNoexcept{}); in main() 45 int buff[] = {0, 1, 2, 3, 4, 5, 6, 7}; in main() local 47 View transformView(MoveOnlyView{buff}, Increment{}); in main() 53 int buff[] = {0, 1, 2, 3, 4, 5, 6, 7}; in main() local 55 View transformView(MoveOnlyView{buff}, IncrementRvalueRef{}); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.zip/ |
| H A D | ctor.default.pass.cpp | 20 constexpr int buff[] = {1, 2, 3}; variable 23 constexpr DefaultConstructibleView() : begin_(buff), end_(buff + 3) {} in DefaultConstructibleView() 55 assert(*it++ == Pair(buff[0], buff[0])); in test() 56 assert(*it++ == Pair(buff[1], buff[1])); in test() 57 assert(*it == Pair(buff[2], buff[2])); in test()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | resize_tls_dynamic.cpp | 23 char buff[10000]; variable 26 sprintf(buff, "rm -f %s.so.*", argv[0]); in main() 27 system(buff); in main() 31 sprintf(buff, "cp %s.so %s.so.%d", argv[0], argv[0], i); in main() 32 system(buff); in main() 34 sprintf(buff, "%s.so.%d", argv[0], i); in main() 35 void *handle = dlopen(buff, RTLD_LAZY); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | wcsdup.c | 8 wchar_t *buff = wcsdup(L"foo"); in main() local 9 assert(buff[0] == L'f'); in main() 10 assert(buff[1] == L'o'); in main() 11 assert(buff[2] == L'o'); in main() 12 assert(buff[3] == L'\0'); in main() 13 free(buff); in main()
|
| H A D | sanitizer_set_report_path_test.cpp | 13 char buff[1000]; in main() local 14 sprintf(buff, "%s.report_path/report", argv[0]); in main() 15 __sanitizer_set_report_path(buff); in main() 16 assert(strncmp(buff, __sanitizer_get_report_path(), strlen(buff)) == 0); in main()
|
| H A D | sanitizer_bad_report_path_test.cpp | 19 char buff[1000]; in main() local 20 sprintf(buff, "%s.report_path/report", argv[0]); in main() 21 __sanitizer_set_report_path(buff); in main() 22 assert(strncmp(buff, __sanitizer_get_report_path(), strlen(buff)) == 0); in main()
|
| /llvm-project-15.0.7/polly/test/CodeGen/ |
| H A D | invariant_cannot_handle_void.ll | 4 ; The offset of the %tmp1 load wrt. to %buff (62 bytes) is not divisible 5 ; by the type size (i32 = 4 bytes), thus we will have to represent %buff 20 ; CHECK-NEXT: %polly.access.cast.buff = bitcast i8* %buff to i16* 21 ; CHECK-NEXT: %polly.access.buff = getelementptr i16, i16* %polly.access.cast.buff, i64 31 22 ; CHECK-NEXT: %polly.access.buff.cast = bitcast i16* %polly.access.buff to i32* 23 ; CHECK-NEXT: %polly.access.buff.load = load i32, i32* %polly.access.buff.cast, align 4 24 ; CHECK-NEXT: store i32 %polly.access.buff.load, i32* %tmp1.preload.s2a 29 define void @sudecrypt(i8* %buff) #0 { 40 %add.ptr = getelementptr inbounds i8, i8* %buff, i64 62
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_libc_test.cpp | 200 char *buff; in TEST_P() local 204 EXPECT_EQ(data_, std::vector<char>(buff, buff + size)); in TEST_P() 205 UnmapOrDie(buff, len); in TEST_P() 209 char *buff; in TEST_P() local 214 EXPECT_EQ(data_, std::vector<char>(buff, buff + size)); in TEST_P() 215 UnmapOrDie(buff, len); in TEST_P() 219 InternalMmapVector<char> buff; in TEST_P() local 220 EXPECT_TRUE(ReadFileToVector(file_name_, &buff)); in TEST_P() 221 EXPECT_EQ(data_, std::vector<char>(buff.begin(), buff.end())); in TEST_P() 225 InternalMmapVector<char> buff; in TEST_P() local [all …]
|