| /llvm-project-15.0.7/libc/test/src/stdlib/ |
| H A D | qsort_test.cpp | 34 ASSERT_LE(array[0], 10); in TEST() 35 ASSERT_LE(array[1], 23); in TEST() 36 ASSERT_LE(array[2], 33); in TEST() 37 ASSERT_LE(array[3], 35); in TEST() 38 ASSERT_LE(array[4], 55); in TEST() 39 ASSERT_LE(array[5], 70); in TEST() 40 ASSERT_LE(array[6], 71); in TEST() 41 ASSERT_LE(array[7], 100); in TEST() 42 ASSERT_LE(array[8], 110); in TEST() 95 ASSERT_LE(array[4], 1); in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
| H A D | stable_partition.pass.cpp | 41 P array[] = in test() local 54 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 70 P array[] = in test() local 83 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 110 P array[] = in test() local 123 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 152 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 181 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 210 const unsigned size = sizeof(array)/sizeof(array[0]); in test() 239 const unsigned size = sizeof(array)/sizeof(array[0]); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/ |
| H A D | midpoint.pointer.pass.cpp | 30 static_assert(std::midpoint(array, array) == array, ""); in constexpr_test() 33 static_assert(std::midpoint(array, array + 9) == array + 4, ""); in constexpr_test() 34 static_assert(std::midpoint(array, array + 10) == array + 5, ""); in constexpr_test() 48 assert(std::midpoint(array, array) == array); in runtime_test() 49 assert(std::midpoint(array, array + 1000) == array + 500); in runtime_test() 51 assert(std::midpoint(array, array + 9) == array + 4); in runtime_test() 52 assert(std::midpoint(array, array + 10) == array + 5); in runtime_test() 53 assert(std::midpoint(array, array + 11) == array + 5); in runtime_test() 54 assert(std::midpoint(array + 9, array) == array + 5); in runtime_test() 55 assert(std::midpoint(array + 10, array) == array + 5); in runtime_test() [all …]
|
| /llvm-project-15.0.7/mlir/test/python/ir/ |
| H A D | array_attributes.py | 23 array = np.array([["hello", "goodbye"]]) 111 array = np.array([2.0, 1.0, 1.0], dtype=np.float32) 136 array = np.array([[2, 4, 7], [-2, -4, -8]], dtype=np.uint8) 215 array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int16) 228 array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.uint16) 241 array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int16) 254 array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.uint16) 267 array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int32) 293 array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int32) 320 array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int64) [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/ |
| H A D | strtoll_strict.c | 43 array[2] = 'z'; in test2() 51 memset(array, 0, 8); in test3() 66 array[0] = ' '; in test5() 67 array[1] = '+'; in test5() 68 array[2] = '-'; in test5() 75 array[0] = ' '; in test6() 76 array[1] = array[2] = 'z'; in test6() 84 array[2] = 'z'; in test7() 93 array[0] = '1'; in main() 94 array[1] = '2'; in main() [all …]
|
| H A D | strtol_strict.c | 41 array[2] = 'z'; in test2() 58 memset(array, 0, 8); in test3() 82 array[0] = ' '; in test5() 83 array[1] = '+'; in test5() 84 array[2] = '-'; in test5() 91 array[0] = ' '; in test6() 92 array[1] = array[2] = 'z'; in test6() 100 array[2] = 'z'; in test7() 109 array[0] = '1'; in main() 110 array[1] = '2'; in main() [all …]
|
| H A D | atoll_strict.c | 20 void test1(char *array) { in test1() argument 22 memset(array, '1', 10); in test1() 23 array[9] = 'a'; in test1() 24 long long r = atoll(array); in test1() 28 void test2(char *array) { in test2() argument 30 array[9] = 'a'; in test2() 35 void test3(char *array) { in test3() argument 37 memset(array, ' ', 10); in test3() 38 array[9] = '-'; in test3() 39 array[8] = '-'; in test3() [all …]
|
| H A D | atoi_strict.c | 17 void test1(char *array) { in test1() argument 19 memset(array, '1', 10); in test1() 20 array[9] = 'a'; in test1() 21 int r = atoi(array); in test1() 25 void test2(char *array) { in test2() argument 27 array[9] = 'a'; in test2() 32 void test3(char *array) { in test3() argument 35 array[9] = '-'; in test3() 36 array[8] = '-'; in test3() 37 int r = atoi(array); in test3() [all …]
|
| H A D | atol_strict.c | 17 void test1(char *array) { in test1() argument 19 memset(array, '1', 10); in test1() 20 array[9] = 'a'; in test1() 21 long r = atol(array); in test1() 25 void test2(char *array) { in test2() argument 27 array[9] = 'a'; in test2() 32 void test3(char *array) { in test3() argument 35 array[9] = '-'; in test3() 36 array[8] = '-'; in test3() 37 long r = atol(array); in test3() [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | transpose-memset.c | 8 int array[10]; variable 21 memset(array, sizeof(array), sizeof(array)); // Uh... fine I guess. in main() 22 memset(array, 0, sizeof(array)); in main() 24 memset(array, (int)sizeof(array), (0)); // no warning in main() 25 memset(array, (int)sizeof(array), 32); // no warning in main() 35 int array[10]; in macros() local 38 memset(array, sizeof(array), ZERO); // expected-warning{{'sizeof'}} expected-note{{cast}} in macros() 43 real_bzero(array, ZERO); in macros() 49 real_bzero(array, 0) in macros() 54 memset(array, 0xff, p) in macros() [all …]
|
| H A D | warn-tautological-compare.c | 23 int array[2]; variable 27 return array[0]; in test1() 29 return array[1]; in test1() 60 if (array[0] && in test3() 63 if (array[0] || in test3() 66 if (array[0] && in test3() 68 if (array[0] || in test3() 72 array[0]) {} in test3() 74 array[0]) {} in test3() 77 …(!array && array[0])) {} // expected-warning {{address of array 'array' will always evaluate to 't… in test3() [all …]
|
| H A D | warn-char-subscripts.c | 4 int array[1] = { 0 }; in t1() local 10 int array[1] = { 0 }; in t2() local 16 int *array = 0; in t3() local 22 int *array = 0; in t4() local 29 int *array = 0; in t5() local 34 int array[1] = { 0 }; in t6() local 40 int array[1] = { 0 }; in t7() local 42 int val = array[subscript]; // no warning for unsigned char in t7() 47 int array[1] = { 0 }; in t8() local 54 int array[1] = { 0 }; in t9() local [all …]
|
| /llvm-project-15.0.7/mlir/test/Conversion/ArithmeticToLLVM/ |
| H A D | convert-nd-vector-to-llvmir.mlir | 5 // CHECK: llvm.mlir.undef : !llvm.array<2 x array<2 x vector<2xf32>>> 26 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xi64>>> 39 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xi64>>> 52 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xf32>>> 65 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xf32>>> 78 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xi32>>> 91 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xi32>>> 104 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xf64>>> 117 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xf16>>> 130 // CHECK: llvm.mlir.undef : !llvm.array<1 x array<2 x vector<3xi16>>> [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.meaning/dcl.array/ |
| H A D | p3.cpp | 9 extern "C" int array[]; 12 extern "C" int array[]; 17 extern "C" int array[]; 20 extern int array[]; in test() 27 extern int array[]; 34 extern int array[]; in test() 40 extern int array[]; 51 extern int array[]; in test() 76 extern int array[]; 81 extern int array[]; [all …]
|
| /llvm-project-15.0.7/flang/test/Fir/ |
| H A D | global-initialization.fir | 6 %0 = fir.undefined !fir.array<32xi32> 7 …%2 = fir.insert_on_range %0, %c0_i32 from (0) to (31) : (!fir.array<32xi32>, i32) -> !fir.array<32… 8 fir.has_value %2 : !fir.array<32xi32> 25 // CHECK: llvm.mlir.global internal @_QEmultiarray() : !llvm.array<32 x array<32 x i32>> { 27 // CHECK: [[VAL1:%.*]] = llvm.mlir.undef : !llvm.array<32 x array<32 x i32>> 29 // CHECK: llvm.return [[VAL2]] : !llvm.array<32 x array<32 x i32>> 48 fir.global internal @_QElookforme : !fir.type<_QTt{i:!fir.array<500xi32>,j:!fir.array<500xi32>}> { 51 %0 = fir.undefined !fir.type<_QTt{i:!fir.array<500xi32>,j:!fir.array<500xi32>}> 54 …array<500xi32>,j:!fir.array<500xi32>}>] :(!fir.type<_QTt{i:!fir.array<500xi32>,j:!fir.array<500xi3… 56 …array<500xi32>,j:!fir.array<500xi32>}>] : (!fir.type<_QTt{i:!fir.array<500xi32>,j:!fir.array<500xi… [all …]
|
| H A D | array-copies-pointers.fir | 1 // Test array-copy-value pass (copy elision) with array assignment 6 // Test `pointer(:) = array(:)` 14 func.func @maybe_overlap(%arg0: !fir.ptr<!fir.array<100xf32>>, %arg1: !fir.ref<!fir.array<100xf32>>… 28 …fir.array_merge_store %2, %4 to %arg0 : !fir.array<100xf32>, !fir.array<100xf32>, !fir.ptr<!fir.ar… 41 func.func @no_overlap(%arg0: !fir.ptr<!fir.array<100xf32>>, %arg1: !fir.ref<!fir.array<100xf32>>) { 54 …fir.array_merge_store %2, %3 to %arg0 : !fir.array<100xf32>, !fir.array<100xf32>, !fir.ptr<!fir.ar… 60 // Test `array(:) = pointer(:)` 82 …fir.array_merge_store %3, %4 to %arg1 : !fir.array<100xf32>, !fir.array<100xf32>, !fir.ref<!fir.ar… 109 …fir.array_merge_store %3, %4 to %arg1 : !fir.array<100xf32>, !fir.array<100xf32>, !fir.ptr<!fir.ar… 138 …fir.array_merge_store %2, %8 to %arg0[%1] : !fir.array<4xi32>, !fir.array<4xi32>, !fir.box<!fir.ar… [all …]
|
| /llvm-project-15.0.7/lldb/source/Host/macosx/cfcpp/ |
| H A D | CFCMutableArray.cpp | 35 if (array) in GetCount() 43 if (array) in GetCountOfValue() 50 if (array) in GetCountOfValue() 57 if (array) { in GetValueAtIndex() 68 if (array != NULL) { in SetValueAtIndex() 83 array = in AppendValue() 85 reset(array); in AppendValue() 101 array = in AppendCStringAsCFString() 103 reset(array); in AppendCStringAsCFString() 119 array = in AppendFileSystemRepresentationAsCFString() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/ |
| H A D | increment.pass.cpp | 51 std::array<int, 5> array{0, 1, 2, 3, 4}; in test() local 52 FilterView view = make_filter_view(array.begin(), array.end(), EqualTo{1}); in test() 63 std::array<int, 5> array{99, 1, 99, 1, 99}; in test() local 73 std::array<int, 5> array{99, 1, 99, 99, 1}; in test() local 83 std::array<int, 10> array{0, 1, 2, 3, 1, 1, 4, 5, 1, 6}; in test() local 96 std::array<int, 4> array{99, 1, 99, 1}; in test() local 97 View v{Iterator(array.begin()), Sentinel(Iterator(array.end()))}; in test() 110 std::array<int, 3> array{1, 1, 1}; in test() local 111 View v{Iterator(array.begin()), Sentinel(Iterator(array.end()))}; in test() 124 std::array<int, 10> array{0, 1, 2, 3, 1, 1, 4, 5, 1, 6}; in test() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/array.cons/ |
| H A D | implicit_copy.pass.cpp | 43 copy = array; in tests() 56 Array array = {}; in tests() local 58 copy = array; in tests() 65 Array array = {}; in tests() local 72 Array array = {}; in tests() local 74 copy = array; in tests() 80 Array array = {}; in tests() local 89 Array array = {}; in tests() local 91 copy = array; in tests() 98 copy = array; in tests() [all …]
|
| H A D | initialization.pass.cpp | 28 std::array<T, 0> a0; (void)a0; in operator ()() 29 std::array<T, 1> a1; (void)a1; in operator ()() 30 std::array<T, 2> a2; (void)a2; in operator ()() 31 std::array<T, 3> a3; (void)a3; in operator ()() 45 std::array<T, 0> a0_0{}; (void)a0_0; in operator ()() 48 std::array<T, 1> a1_0{}; (void)a1_0; in operator ()() 52 std::array<T, 2> a2_0{}; (void)a2_0; in operator ()() 57 std::array<T, 3> a3_0{}; (void)a3_0; in operator ()() 122 std::array<double, 3> const a3_0 = {}; in test_initializer_list() 128 std::array<double, 3> const a3_1 = {1}; in test_initializer_list() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/ |
| H A D | stable_sort.pass.cpp | 96 std::stable_sort(array, array+N); in test_larger_sorts() 97 assert(std::is_sorted(array, array+N)); in test_larger_sorts() 100 std::stable_sort(array, array+N); in test_larger_sorts() 103 std::stable_sort(array, array+N); in test_larger_sorts() 106 std::reverse(array, array+N); in test_larger_sorts() 107 std::stable_sort(array, array+N); in test_larger_sorts() 110 std::swap_ranges(array, array+N/2, array+N/2); in test_larger_sorts() 111 std::stable_sort(array, array+N); in test_larger_sorts() 114 std::reverse(array, array+N); in test_larger_sorts() 115 std::swap_ranges(array, array+N/2, array+N/2); in test_larger_sorts() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/array.tuple/ |
| H A D | get.pass.cpp | 27 std::array<double, 1> array = {3.3}; in tests() local 28 assert(std::get<0>(array) == 3.3); in tests() 29 std::get<0>(array) = 99.1; in tests() 33 std::array<double, 2> array = {3.3, 4.4}; in tests() local 34 assert(std::get<0>(array) == 3.3); in tests() 35 assert(std::get<1>(array) == 4.4); in tests() 36 std::get<0>(array) = 99.1; in tests() 37 std::get<1>(array) = 99.2; in tests() 42 std::array<double, 3> array = {3.3, 4.4, 5.5}; in tests() local 46 std::get<1>(array) = 99.2; in tests() [all …]
|
| /llvm-project-15.0.7/mlir/test/Conversion/MemRefToLLVM/ |
| H A D | memref-to-llvm.mlir | 11 // CHECK: llvm.mlir.undef : !llvm.struct<(ptr<i8>, ptr<i8>, i64, array<1 x i64>, array<1 x i64>)> 15 …// CHECK: llvm.mlir.undef : !llvm.struct<(ptr<f32>, ptr<f32>, i64, array<2 x i64>, array<2 x i64>)> 31 …// CHECK: llvm.mlir.undef : !llvm.struct<(ptr<f32>, ptr<f32>, i64, array<2 x i64>, array<2 x i64>)> 48 …// CHECK: llvm.mlir.undef : !llvm.struct<(ptr<f32>, ptr<f32>, i64, array<2 x i64>, array<2 x i64>)> 67 …// CHECK: llvm.mlir.undef : !llvm.struct<(ptr<i8, 4>, ptr<i8, 4>, i64, array<1 x i64>, array<1 x i… 70 …// CHECK: llvm.mlir.undef : !llvm.struct<(ptr<f32, 4>, ptr<f32, 4>, i64, array<2 x i64>, array<2 x… 97 …// CHECK: llvm.mlir.undef : !llvm.struct<(ptr<f32>, ptr<f32>, i64, array<2 x i64>, array<2 x i64>)> 659 // CHECK: %[[ADDR:.*]] = llvm.mlir.addressof @gv2 : !llvm.ptr<array<2 x array<3 x f32>>> 1108 // CHECK: llvm.mlir.undef : !llvm.struct<(ptr<i1>, ptr<i1>, i64, array<1 x i64>, array<1 x i64>)> 1112 // CHECK: llvm.mlir.undef : !llvm.struct<(ptr<i1>, ptr<i1>, i64, array<1 x i64>, array<1 x i64>)> [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/ |
| H A D | iterators.pass.cpp | 58 C array = {}; in tests() local 59 check_noexcept(array); in tests() 66 C array = {}; in tests() local 67 check_noexcept(array); in tests() 75 C array = {}; in tests() local 76 check_noexcept(array); in tests() 84 C array = {1}; in tests() local 85 check_noexcept(array); in tests() 94 C array = {1, 2}; in tests() local 95 check_noexcept(array); in tests() [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/ |
| H A D | composite-ops.mlir | 109 %0 = spv.CompositeExtract [4 : i32, 1 : i32] : !spv.array<4x!spv.array<4xf32>> 117 %1 = spv.Variable : !spv.ptr<!spv.array<4x!spv.array<4xf32>>, Function> 118 %2 = spv.Load "Function" %1 ["Volatile"] : !spv.array<4x!spv.array<4xf32>> 120 %3 = spv.CompositeExtract %2[%0] : !spv.array<4x!spv.array<4xf32>> 128 %0 = spv.CompositeExtract %arg0[1] : !spv.array<4x!spv.array<4xf32>> 136 %0 = spv.CompositeExtract %arg0 ]1 : i32) : !spv.array<4x!spv.array<4xf32>> 143 // expected-error @+1 {{index 4 out of bounds for '!spv.array<4 x !spv.array<4 x f32>>'}} 144 %0 = spv.CompositeExtract %arg0[4 : i32, 1 : i32] : !spv.array<4x!spv.array<4xf32>> 153 %0 = spv.CompositeExtract %arg0[1 : i32, 4 : i32] : !spv.array<4x!spv.array<4xf32>> 193 %0 = spv.CompositeExtract %arg0[] : !spv.array<4x!spv.array<4xf32>> [all …]
|