/llvm-project/libcxx/test/std/time/time.syn/ |
H A D | formatter.month_day.pass.cpp | 106 SV("{:%%b='%b'%t%%B='%B'%t%%h='%h'%t%%m='%m'%t%%Om='%Om'%t%%d='%d'%t%%e='%e'%t%%Od='%Od'%t%%Oe='%Oe'%n}"); in test_valid_values() 108 SV("{:L%%b='%b'%t%%B='%B'%t in test_valid_values() [all...] |
H A D | formatter.hh_mm_ss.pass.cpp | 59 "%%H='%H'%t" in test_valid_values() 60 "%%OH='%OH'%t" in test_valid_values() 61 "%%I='%I'%t" in test_valid_values() 62 "%%OI='%OI'%t" in test_valid_values() 63 "%%M='%M'%t" in test_valid_values() 64 "%%OM='%OM'%t" in test_valid_values() 65 "%%S='%S'%t" in test_valid_values() 66 "%%OS='%OS'%t" in test_valid_values() 67 "%%p='%p'%t" in test_valid_values() 68 "%%R='%R'%t" in test_valid_values() [all...] |
H A D | formatter.year_month_day_last.pass.cpp | 255 SV("{:%%b='%b'%t%%B='%B'%t%%h='%h'%t%%m='%m'%t%%Om='%Om'%t%%d='%d'%t%%e='%e'%t%%Od='%Od'%t%%Oe='%Oe'%n}"); in test_valid_md_values() 257 SV("{:L%%b='%b'%t%%B='%B'%t in test_valid_md_values() [all...] |
H A D | formatter.month.pass.cpp | 65 constexpr std::basic_string_view<CharT> fmt = SV("{:%%b='%b'%t%%B='%B'%t%%h='%h'%t%%m='%m'%t%%Om='%Om'%n}"); in test_valid_values() 66 constexpr std::basic_string_view<CharT> lfmt = SV("{:L%%b='%b'%t%%B='%B'%t%%h='%h'%t%%m='%m'%t%%Om='%Om'%n}"); in test_valid_values() 72 check(SV("%b='Jan'\t%B='January'\t in test_valid_values() [all...] |
H A D | formatter.weekday.pass.cpp | 54 SV("{:%%u='%u'%t%%Ou='%Ou'%t%%w='%w'%t%%Ow='%Ow'%t%%a='%a'%t%%A='%A'%n}"); in test_valid_values() 56 SV("{:L%%u='%u'%t%%Ou='%Ou'%t%%w='%w'%t%%Ow='%Ow'%t%%a='%a'%t in test_valid_values() [all...] |
H A D | formatter.year_month_day.pass.cpp | 391 SV("{:%%b='%b'%t%%B='%B'%t%%h='%h'%t%%m='%m'%t%%Om='%Om'%t%%d='%d'%t%%e='%e'%t%%Od='%Od'%t%%Oe='%Oe'%n}"); in test_valid_md_values() 393 SV("{:L%%b='%b'%t%%B='%B'%t in test_valid_md_values() [all...] |
H A D | formatter.month_day_last.pass.cpp | 83 constexpr std::basic_string_view<CharT> fmt = SV("{:%%b='%b'%t%%B='%B'%t%%h='%h'%t%%m='%m'%t%%Om='%Om'%n}"); in test_valid_values() 84 constexpr std::basic_string_view<CharT> lfmt = SV("{:L%%b='%b'%t%%B='%B'%t%%h='%h'%t%%m='%m'%t%%Om='%Om'%n}"); in test_valid_values() 90 check(SV("%b='Jan'\t%B='January'\t in test_valid_values() [all...] |
H A D | formatter.weekday_last.pass.cpp | 54 SV("{:%%u='%u'%t%%Ou='%Ou'%t%%w='%w'%t%%Ow='%Ow'%t%%a='%a'%t%%A='%A'%n}"); in test_valid_values() 56 SV("{:L%%u='%u'%t%%Ou='%Ou'%t%%w='%w'%t%%Ow='%Ow'%t%%a='%a'%t in test_valid_values() [all...] |
H A D | formatter.weekday_index.pass.cpp | 71 SV("{:%%u='%u'%t%%Ou='%Ou'%t%%w='%w'%t%%Ow='%Ow'%t%%a='%a'%t%%A='%A'%n}"); in test_valid_values() 73 SV("{:L%%u='%u'%t%%Ou='%Ou'%t%%w='%w'%t%%Ow='%Ow'%t%%a='%a'%t in test_valid_values() [all...] |
/llvm-project/llvm/unittests/TargetParser/ |
H A D | TripleTest.cpp | 19 Triple T; in TEST() 21 T = Triple(""); in TEST() 22 EXPECT_EQ("", T.getArchName().str()); in TEST() 23 EXPECT_EQ("", T.getVendorName().str()); in TEST() 24 EXPECT_EQ("", T.getOSName().str()); in TEST() 25 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST() 27 T = Triple("-"); in TEST() 28 EXPECT_EQ("", T.getArchName().str()); in TEST() 29 EXPECT_EQ("", T.getVendorName().str()); in TEST() 30 EXPECT_EQ("", T in TEST() 18 Triple T; TEST() local 76 Triple T; TEST() local 1330 Triple T; TEST() local 1371 Triple T; TEST() local 1565 Triple T; TEST() local 1767 Triple T; TEST() local 1920 Triple T; TEST() local 1956 Triple T; TEST() local 2112 Triple T; TEST() local 2129 Triple T = Triple("x86_64-apple-macos11"); TEST() local 2226 Triple T = Triple(""); TEST() local 2331 Triple T; TEST() local 2343 Triple T = Triple("arm"); TEST() local 2347 Triple T = Triple("armeb"); TEST() local 2352 Triple T = Triple("thumb"); TEST() local 2356 Triple T = Triple("thumbeb"); TEST() local 2361 Triple T = Triple("arm64"); TEST() local 2365 Triple T = Triple("arm64_32"); TEST() local 2369 Triple T = Triple("aarch64"); TEST() local 2373 Triple T = Triple("aarch64_be"); TEST() local 2377 Triple T = Triple("arm64e"); TEST() local 2382 Triple T = Triple("arm64ec"); TEST() local 2387 Triple T; TEST() local 2396 Triple T = Triple("thumbv6m"); TEST() local 2400 Triple T = Triple("armv8m.base"); TEST() local 2404 Triple T = Triple("armv7s"); TEST() local 2408 Triple T = Triple("armv7k"); TEST() local 2412 Triple T = Triple("armv7ve"); TEST() local 2416 Triple T = Triple("armv6"); TEST() local 2420 Triple T = Triple("armv6m"); TEST() local 2424 Triple T = Triple("armv6k"); TEST() local 2428 Triple T = Triple("armv6t2"); TEST() local 2432 Triple T = Triple("armv5"); TEST() local 2436 Triple T = Triple("armv5te"); TEST() local 2440 Triple T = Triple("armv4t"); TEST() local 2446 Triple T = Triple("arm"); TEST() local 2450 Triple T = Triple("armv7m"); TEST() local 2454 Triple T = Triple("armv7em"); TEST() local 2458 Triple T = Triple("armv8m.main"); TEST() local 2462 Triple T = Triple("armv8.1m.main"); TEST() local 2470 Triple T = Triple("armv7s"); TEST() local 2474 Triple T = Triple("armv7k"); TEST() local 2478 Triple T = Triple("armv7ve"); TEST() local 2482 Triple T = Triple("armv6"); TEST() local 2486 Triple T = Triple("armv6k"); TEST() local 2490 Triple T = Triple("armv6t2"); TEST() local 2494 Triple T = Triple("armv5"); TEST() local 2498 Triple T = Triple("armv5te"); TEST() local 2502 Triple T = Triple("armv4t"); TEST() local 2506 Triple T = Triple("arm"); TEST() local 2512 Triple T = Triple("armv6m"); TEST() local 2516 Triple T = Triple("armv7m"); TEST() local 2520 Triple T = Triple("armv7em"); TEST() local 2524 Triple T = Triple("armv8m.base"); TEST() local 2528 Triple T = Triple("armv8m.main"); TEST() local 2532 Triple T = Triple("armv8.1m.main"); TEST() local [all...] |
/llvm-project/clang/test/Modules/ |
H A D | exponential-paths.cpp | 3 // RUN: rm -rf %t 4 // RUN: mkdir %t 9 // RUN: echo 'module a0 { header "a0.h" export * }' > %t/module.modulemap 10 // RUN: echo 'module b0 { header "b0.h" export * }' >> %t/module.modulemap 11 // RUN: echo 'module a1 { header "a1.h" export * }' >> %t/module.modulemap 12 // RUN: echo 'module b1 { header "b1.h" export * }' >> %t/module.modulemap 13 // RUN: echo 'module a2 { header "a2.h" export * }' >> %t/module.modulemap 14 // RUN: echo 'module b2 { header "b2.h" export * }' >> %t/module.modulemap 15 // RUN: echo 'module a3 { header "a3.h" export * }' >> %t/module.modulemap 16 // RUN: echo 'module b3 { header "b3.h" export * }' >> %t/module.modulemap [all …]
|
/llvm-project/libcxx/test/std/re/re.traits/ |
H A D | isctype.pass.cpp | 23 std::regex_traits<char> t; in main() local 26 assert( t.isctype('_', t.lookup_classname(s.begin(), s.end()))); in main() 27 assert( t.isctype('a', t.lookup_classname(s.begin(), s.end()))); in main() 28 assert( t.isctype('Z', t.lookup_classname(s.begin(), s.end()))); in main() 29 assert( t.isctype('5', t.lookup_classname(s.begin(), s.end()))); in main() 30 assert(!t.isctype(' ', t.lookup_classname(s.begin(), s.end()))); in main() 31 assert(!t.isctype('-', t.lookup_classname(s.begin(), s.end()))); in main() 32 assert(!t.isctype('@', t.lookup_classname(s.begin(), s.end()))); in main() 35 assert(!t.isctype('_', t.lookup_classname(s.begin(), s.end()))); in main() 36 assert( t.isctype('a', t.lookup_classname(s.begin(), s.end()))); in main() [all …]
|
/llvm-project/libc/test/src/math/smoke/ |
H A D | FromfpTest.h | 16 template <typename T> 19 DECLARE_SPECIAL_CONSTANTS(T) 22 typedef T (*FromfpFunc)(T, int, unsigned int); 50 EXPECT_FP_EQ(T(1.0), func(T(1.0), rnd, 2U)); in testRoundedNumbersWithinRange() 51 EXPECT_FP_EQ(T(-1.0), func(T(-1.0), rnd, 1U)); in testRoundedNumbersWithinRange() 52 EXPECT_FP_EQ(T(10.0), func(T(10.0), rnd, 5U)); in testRoundedNumbersWithinRange() 53 EXPECT_FP_EQ(T(-10.0), func(T(-10.0), rnd, 5U)); in testRoundedNumbersWithinRange() 54 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 12U)); in testRoundedNumbersWithinRange() 55 EXPECT_FP_EQ(T(-1234.0), func(T(-1234.0), rnd, 12U)); in testRoundedNumbersWithinRange() 56 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 65U)); in testRoundedNumbersWithinRange() [all …]
|
H A D | FromfpxTest.h | 16 template <typename T> 19 DECLARE_SPECIAL_CONSTANTS(T) 22 typedef T (*FromfpxFunc)(T, int, unsigned int); 50 EXPECT_FP_EQ(T(1.0), func(T(1.0), rnd, 2U)); in testRoundedNumbersWithinRange() 51 EXPECT_FP_EQ(T(-1.0), func(T(-1.0), rnd, 1U)); in testRoundedNumbersWithinRange() 52 EXPECT_FP_EQ(T(10.0), func(T(10.0), rnd, 5U)); in testRoundedNumbersWithinRange() 53 EXPECT_FP_EQ(T(-10.0), func(T(-10.0), rnd, 5U)); in testRoundedNumbersWithinRange() 54 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 12U)); in testRoundedNumbersWithinRange() 55 EXPECT_FP_EQ(T(-1234.0), func(T(-1234.0), rnd, 12U)); in testRoundedNumbersWithinRange() 56 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 65U)); in testRoundedNumbersWithinRange() [all …]
|
H A D | UfromfpxTest.h | 16 template <typename T> 19 DECLARE_SPECIAL_CONSTANTS(T) 22 typedef T (*UfromfpxFunc)(T, int, unsigned int); 50 EXPECT_FP_EQ(T(1.0), func(T(1.0), rnd, 1U)); in testRoundedNumbersWithinRange() 51 EXPECT_FP_EQ(T(10.0), func(T(10.0), rnd, 4U)); in testRoundedNumbersWithinRange() 52 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 11U)); in testRoundedNumbersWithinRange() 53 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 64U)); in testRoundedNumbersWithinRange() 59 EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, func(T(-1.0), rnd, 32U), FE_INVALID); in testRoundedNumbersOutsideRange() 60 EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, func(T(10.0), rnd, 3U), FE_INVALID); in testRoundedNumbersOutsideRange() 61 EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, func(T(-10.0), rnd, 32U), FE_INVALID); in testRoundedNumbersOutsideRange() [all …]
|
H A D | UfromfpTest.h | 16 template <typename T> 19 DECLARE_SPECIAL_CONSTANTS(T) 22 typedef T (*UfromfpFunc)(T, int, unsigned int); 50 EXPECT_FP_EQ(T(1.0), func(T(1.0), rnd, 1U)); in testRoundedNumbersWithinRange() 51 EXPECT_FP_EQ(T(10.0), func(T(10.0), rnd, 4U)); in testRoundedNumbersWithinRange() 52 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 11U)); in testRoundedNumbersWithinRange() 53 EXPECT_FP_EQ(T(1234.0), func(T(1234.0), rnd, 64U)); in testRoundedNumbersWithinRange() 59 EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, func(T(-1.0), rnd, 32U), FE_INVALID); in testRoundedNumbersOutsideRange() 60 EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, func(T(10.0), rnd, 3U), FE_INVALID); in testRoundedNumbersOutsideRange() 61 EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, func(T(-10.0), rnd, 32U), FE_INVALID); in testRoundedNumbersOutsideRange() [all …]
|
/llvm-project/libcxx/test/std/containers/views/mdspan/mdspan/ |
H A D | conversion.pass.cpp | 72 // check some requirements, to see we didn't screw up our test layouts/accessors in test_conversion() 200 // using shorthands here: t and o for better visual distinguishability in main() local 201 constexpr bool t = true; in main() 205 // you can't have convertibility without constructibility in main() 206 // and if you take const T& then you also can take T in main() 210 // o o t o X in main() 211 // o o t t X in main() 212 // t in main() [all...] |
/llvm-project/lld/test/MachO/ |
H A D | reroot-path.s | 4 # RUN: rm -rf %t; split-file %s %t 9 ## syslibroot. `chroot` would do the job but isn't cross-platform, so I've used 10 ## this %t/%:t hack instead. 11 # RUN: mkdir -p %t/%:t 13 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o 14 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/bar.s -o %t/bar.o 15 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o 17 ## bar.a is under %t/%:t, and so verifies that rerooting happens. foo.a isn't, 20 # RUN: llvm-ar rcs %t/foo.a %t/foo.o 21 # RUN: %lld -dylib %t/foo.o -o %t/libfoo.dylib [all …]
|
H A D | lto-cache.ll | 5 ; RUN: rm -rf %t; split-file %s %t 6 ; RUN: opt -module-hash -module-summary %t/foo.ll -o %t/foo.o 7 ; RUN: opt -module-hash -module-summary %t/bar.ll -o %t/bar.o 9 ; RUN: rm -Rf %t/cache && mkdir %t/cache 12 ; RUN: touch -t 197001011200 %t/cache/llvmcache-baz %t/cache/baz 13 ; RUN: %lld -cache_path_lto %t/cache \ 15 ; RUN: -o %t/test %t/foo.o %t/bar.o 18 ; RUN: ls %t/cache | count 4 21 ; RUN: touch -t 197001011200 %t/cache/llvmcache-baz 22 ; RUN: %lld -cache_path_lto %t/cache -prune_after_lto 3600 -prune_interval_lto 0 \ [all …]
|
H A D | order-file.s | 2 # RUN: rm -rf %t; split-file %s %t 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o 4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o 5 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/abs.s -o %t/abs.o 6 # RUN: llvm-ar rcs %t/foo.a %t/foo.o 14 # RUN: %lld -lSystem -o %t/test-1 %t/test.o %t/foo.o -order_file %t/ord-1 15 # RUN: llvm-objdump -d %t/test-1 | FileCheck %s --check-prefix=FOO-FIRST 17 # RUN: %lld -lSystem -o %t/test-1 %t/foo.o %t/test.o -order_file %t/ord-1 18 # RUN: llvm-objdump -d %t/test-1 | FileCheck %s --check-prefix=FOO-FIRST 20 # RUN: %lld -lSystem -o %t/test-2 %t/test.o %t/foo.o -order_file %t/ord-2 [all …]
|
/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/ |
H A D | subtarget.ll | 9 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=6 -mcpu=gfx12-generic -filetype=obj -O0 -o %t.o %s 10 ; RUN: llvm-objdump -D --arch-name=amdgcn -mllvm --amdhsa-code-object-version=6 --mcpu=gfx12-generic %t.o > %t-specify.txt 11 ; RUN: llvm-objdump -D -mllvm --amdhsa-code-object-version=6 %t.o > %t-detect.txt 12 ; RUN: diff %t-specify.txt %t-detect.txt 14 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1201 -filetype=obj -O0 -o %t.o %s 15 ; RUN: llvm-objdump -D --arch-name=amdgcn --mcpu=gfx1201 %t.o > %t [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/ |
H A D | missing-std-forward.cpp | 1 // RUN: %check_clang_tidy %s cppcoreguidelines-missing-std-forward %t -- -- -fno-delayed-template-parsing 6 template <typename T> struct remove_reference { using type = T; }; 7 template <typename T> struct remove_reference<T&> { using type = T; }; 8 template <typename T> struct remove_reference<T&&> { using type = T; }; 10 template <typename T> usin 33 does_not_forward(T && t) does_not_forward() argument 39 does_not_forward_invoked(T && t) does_not_forward_invoked() argument 45 forwards_pairwise(T && t) forwards_pairwise() argument 69 mixed_params(T && t,U && u) mixed_params() argument 79 does_not_forward_in_evaluated_code(T && t) does_not_forward_in_evaluated_code() argument 87 lambda_value_capture(T && t) lambda_value_capture() argument 93 lambda_value_capture_copy(T && t) lambda_value_capture_copy() argument 116 does_forward(T && t) does_forward() argument 138 templated_rvalue_ref(std::remove_reference_t<T> && t) templated_rvalue_ref() argument 153 rvalue_ref(T && t) rvalue_ref() argument 161 lambda_value_reference(T && t) lambda_value_reference() argument 166 lambda_value_reference_capture_list_ref_1(T && t) lambda_value_reference_capture_list_ref_1() argument 171 lambda_value_reference_capture_list_ref_2(T && t) lambda_value_reference_capture_list_ref_2() argument 176 lambda_value_reference_capture_list(T && t) lambda_value_reference_capture_list() argument 181 lambda_value_reference_auxiliary_var(T && t) lambda_value_reference_auxiliary_var() argument [all...] |
/llvm-project/compiler-rt/test/fuzzer/ |
H A D | merge-control-file.test | 3 RUN: mkdir -p %t 6 RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t/T.exe 8 RUN: rm -rf %t/T0 %t/T1 %t/T2 9 RUN: mkdir -p %t/T0 %t/T1 %t/T2 10 RUN: echo F..... > %t/T0/1 11 RUN: echo .U.... > %t/T0/2 12 RUN: echo ..Z... > %t/T0/3 16 RUN: rm -f %t/T1/*; cp %t/T0/* %t/T1 17 RUN: echo JUNK > %t/MCF 18 RUN: %run %t/T.exe -merge=1 %t/T1 %t/T2 -merge_control_file=%t/MCF 2>&1 | FileCheck %s --check-pref… [all …]
|
/llvm-project/libcxx/include/ |
H A D | type_traits | 20 template <class T, T v> struct integral_constant; 30 template <bool, class T = void> struct enable_if; 31 template <bool, class T, class F> struct conditional; 34 template <class T> struct is_void; 35 template <class T> struct is_null_pointer; // C++14 36 template <class T> struct is_integral; 37 template <class T> struct is_floating_point; 38 template <class T> struct is_array; 39 template <class T> struc [all...] |
H A D | atomic | 45 template <class T> T kill_dependency(T y) noexcept; 61 template <class T> 64 using value_type = T; 71 constexpr atomic() noexcept(is_nothrow_default_constructible_v<T>); // since C++20 72 constexpr atomic(T desr) noexcept; 77 T load(memory_order m = memory_order_seq_cst) const volatile noexcept; 78 T load(memory_order m = memory_order_seq_cst) const noexcept; 79 operator T() cons [all...] |