Skip to content

Commit 5be7eb3

Browse files
committed
[Builtins] Provide a mechanism to selectively disable tests based on whether an implementation is provided by a builtin library.
Summary: If a platform removes some builtin implementations (e.g. via the Darwin-excludes mechanism) then this can lead to test failures because the test expects an implementation to be available. To solve this lit features are added for each configuration based on which sources are included in the builtin library. The features are of the form `librt_has_<name>` where `<name>` is the name of the source file with the file extension removed. This handles C and assembly sources. With the lit features in place it is possible to make certain tests require them. Example: ``` REQUIRES: librt_has_comparedf2 ``` All top-level tests in `test/builtins/Unit` (i.e. not under `arm`, `ppc`, and `riscv`) have been annotated with the appropriate `REQUIRES: librt_has_*` statement. rdar://problem/55520987 Reviewers: beanz, steven_wu, arphaman, dexonsmith, phosek, thakis Subscribers: mgorny, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D68064 llvm-svn: 375150
1 parent 48993d5 commit 5be7eb3

File tree

180 files changed

+228
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+228
-0
lines changed

compiler-rt/test/builtins/CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,33 @@ foreach(arch ${BUILTIN_TEST_ARCH})
4444
string(REPLACE ";" " " BUILTINS_TEST_TARGET_CFLAGS "${BUILTINS_TEST_TARGET_CFLAGS}")
4545
endif()
4646

47+
# Compute builtins available in library and add them as lit features.
48+
if(APPLE)
49+
# TODO: Support other Apple platforms.
50+
set(BUILTIN_LIB_TARGET_NAME "clang_rt.builtins_${arch}_osx")
51+
else()
52+
set(BUILTIN_LIB_TARGET_NAME "clang_rt.builtins-${arch}")
53+
endif()
54+
if (NOT TARGET "${BUILTIN_LIB_TARGET_NAME}")
55+
message(FATAL_ERROR "Target ${BUILTIN_LIB_TARGET_NAME} does not exist")
56+
endif()
57+
get_target_property(BUILTIN_LIB_SOURCES "${BUILTIN_LIB_TARGET_NAME}" SOURCES)
58+
list(LENGTH BUILTIN_LIB_SOURCES BUILTIN_LIB_SOURCES_LENGTH)
59+
if (BUILTIN_LIB_SOURCES_LENGTH EQUAL 0)
60+
message(FATAL_ERROR "Failed to find source files for ${arch} builtin library")
61+
endif()
62+
set(BUILTINS_LIT_SOURCE_FEATURES "")
63+
foreach (file_name ${BUILTIN_LIB_SOURCES})
64+
# Strip off any directories and file extensions. This approach means we add
65+
# add a single feature if there is a C source file or assembly override
66+
# present in the builtin library.
67+
# E.g.
68+
# "hexagon/udivsi3.S" => "udivsi3"
69+
# "udivsi3.c" => "udivsi3"
70+
get_filename_component(FILE_NAME_FILTERED "${file_name}" NAME_WE)
71+
list(APPEND BUILTINS_LIT_SOURCE_FEATURES "librt_has_${FILE_NAME_FILTERED}")
72+
endforeach()
73+
4774
string(TOUPPER ${arch} ARCH_UPPER_CASE)
4875
set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)
4976
configure_lit_site_cfg(

compiler-rt/test/builtins/Unit/absvdi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_absvdi2
23
//===-- absvdi2_test.c - Test __absvdi2 -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/absvsi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_absvsi2
23
//===-- absvsi2_test.c - Test __absvsi2 -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/absvti2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_absvti2
23
// REQUIRES: int128
34
//===-- absvti2_test.c - Test __absvti2 -----------------------------------===//
45
//

compiler-rt/test/builtins/Unit/adddf3vfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_adddf3vfp
23
//===-- adddf3vfp_test.c - Test __adddf3vfp -------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/addsf3vfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_addsf3vfp
23
//===-- addsf3vfp_test.c - Test __addsf3vfp -------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/addtf3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_addtf3
23
//===--------------- addtf3_test.c - Test __addtf3 ------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/addvdi3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_addvdi3
23
//===-- addvdi3_test.c - Test __addvdi3 -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/addvsi3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_addvsi3
23
//===-- addvsi3_test.c - Test __addvsi3 -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/addvti3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_addvti3
23
// REQUIRES: int128
34
//===-- addvti3_test.c - Test __addvti3 -----------------------------------===//
45
//

compiler-rt/test/builtins/Unit/ashldi3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ashldi3
23
//===-- ashldi3_test.c - Test __ashldi3 -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ashlti3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ashlti3
23
// REQUIRES: int128
34
//===-- ashlti3_test.c - Test __ashlti3 -----------------------------------===//
45
//

compiler-rt/test/builtins/Unit/ashrdi3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ashrdi3
23
//===-- ashrdi3_test.c - Test __ashrdi3 -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ashrti3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ashrti3
23
// REQUIRES: int128
34
//===-- ashrti3_test.c - Test __ashrti3 -----------------------------------===//
45
//

compiler-rt/test/builtins/Unit/bswapdi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// UNSUPPORTED: armv6m-target-arch
22
// RUN: %clang_builtins %s %librt -o %t && %run %t
3+
// REQUIRES: librt_has_bswapdi2
34
//===-- bswapdi2_test.c - Test __bswapdi2 ---------------------------------===//
45
//
56
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/bswapsi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// UNSUPPORTED: armv6m-target-arch
22
// RUN: %clang_builtins %s %librt -o %t && %run %t
3+
// REQUIRES: librt_has_bswapsi2
34
//===-- bswapsi2_test.c - Test __bswapsi2 ---------------------------------===//
45
//
56
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/clear_cache_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// REQUIRES: native-run
22
// UNSUPPORTED: arm, aarch64
33
// RUN: %clang_builtins %s %librt -o %t && %run %t
4+
// REQUIRES: librt_has_clear_cache
45
//===-- clear_cache_test.c - Test clear_cache -----------------------------===//
56
//
67
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/clzdi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_clzdi2
23
//===-- clzdi2_test.c - Test __clzdi2 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/clzsi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_clzsi2
23
//===-- clzsi2_test.c - Test __clzsi2 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/clzti2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_clzti2
23
// REQUIRES: int128
34
//===-- clzti2_test.c - Test __clzti2 -------------------------------------===//
45
//

compiler-rt/test/builtins/Unit/cmpdi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_cmpdi2
23
//===-- cmpdi2_test.c - Test __cmpdi2 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/cmpti2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_cmpti2
23
// REQUIRES: int128
34
//===-- cmpti2_test.c - Test __cmpti2 -------------------------------------===//
45
//

compiler-rt/test/builtins/Unit/comparedf2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_comparedf2
23

34
//===-- cmpdf2_test.c - Test __cmpdf2 -------------------------------------===//
45
//

compiler-rt/test/builtins/Unit/comparesf2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_comparesf2
23

34
//===-- cmpsf2_test.c - Test __cmpsf2 -------------------------------------===//
45
//

compiler-rt/test/builtins/Unit/cpu_model_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// XFAIL: *
33
// REQUIRES: x86-target-arch
44
// RUN: %clang_builtins %s %librt -o %t && %run %t
5+
// REQUIRES: librt_has_cpu_model
56
//===-- cpu_model_test.c - Test __builtin_cpu_supports --------------------===//
67
//
78
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ctzdi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ctzdi2
23
//===-- ctzdi2_test.c - Test __ctzdi2 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ctzsi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ctzsi2
23
//===-- ctzsi2_test.c - Test __ctzsi2 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ctzti2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ctzti2
23
// REQUIRES: int128
34
//===-- ctzti2_test.c - Test __ctzti2 -------------------------------------===//
45
//

compiler-rt/test/builtins/Unit/divdc3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divdc3
23
//===-- divdc3_test.c - Test __divdc3 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divdf3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divdf3
23
//===--------------- divdf3_test.c - Test __divdf3 ------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divdf3vfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divdf3vfp
23
//===-- divdf3vfp_test.c - Test __divdf3vfp -------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divdi3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divdi3
23
//===-- divdi3_test.c - Test __divdi3 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divmodsi4_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divmodsi4
23
//===-- divmodsi4_test.c - Test __divmodsi4 -------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divsc3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -lm -o %t && %run %t
2+
// REQUIRES: librt_has_divsc3
23
//===-- divsc3_test.c - Test __divsc3 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divsf3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divsf3
23
//===--------------- divsf3_test.c - Test __divsf3 ------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divsf3vfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divsf3vfp
23
//===-- divsf3vfp_test.c - Test __divsf3vfp -------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divsi3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divsi3
23
//===-- divsi3_test.c - Test __divsi3 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divtc3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -lm -o %t && %run %t
2+
// REQUIRES: librt_has_divtc3
23
//
34
// 32-bit: Bug 42493, 64-bit: Bug 42496
45
// XFAIL: sparc

compiler-rt/test/builtins/Unit/divtf3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divtf3
23
//===--------------- divtf3_test.c - Test __divtf3 ------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/divti3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_divti3
23
// REQUIRES: int128
34
//===-- divti3_test.c - Test __divti3 -------------------------------------===//
45
//

compiler-rt/test/builtins/Unit/divxc3_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -lm -o %t && %run %t
2+
// REQUIRES: librt_has_divxc3
23
// REQUIRES: x86-target-arch
34
// UNSUPPORTED: powerpc64
45
//===-- divxc3_test.c - Test __divxc3 -------------------------------------===//

compiler-rt/test/builtins/Unit/enable_execute_stack_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// REQUIRES: native-run
22
// RUN: %clang_builtins %s %librt -o %t && %run %t
3+
// REQUIRES: librt_has_enable_execute_stack
34
//===-- enable_execute_stack_test.c - Test __enable_execute_stack ----------===//
45
//
56
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/eqdf2vfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_eqdf2vfp
23

34
//===-- eqdf2vfp_test.c - Test __eqdf2vfp ---------------------------------===//
45
//

compiler-rt/test/builtins/Unit/eqsf2vfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_eqsf2vfp
23

34
//===-- eqsf2vfp_test.c - Test __eqsf2vfp ---------------------------------===//
45
//

compiler-rt/test/builtins/Unit/eqtf2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_comparetf2
23
//===------------ eqtf2_test.c - Test __eqtf2------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/extenddftf2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_extenddftf2
23
//===--------------- extenddftf2_test.c - Test __extenddftf2 --------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/extendhfsf2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_extendhfsf2
23
//===--------------- extendhfsf2_test.c - Test __extendhfsf2 --------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/extebdsfdf2vfp_test.c renamed to compiler-rt/test/builtins/Unit/extendsfdf2vfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_extendsfdf2vfp
23
//===-- extendsfdf2vfp_test.c - Test __extendsfdf2vfp ---------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/extendsftf2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_extendsftf2
23
//===--------------- extendsftf2_test.c - Test __extendsftf2 --------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ffsdi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ffsdi2
23
//===-- ffsdi2_test.c - Test __ffsdi2 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ffssi2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ffssi2
23
//===-- ffssi2_test.c - Test __ffssi2 -------------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/ffsti2_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_ffsti2
23
// REQUIRES: int128
34
//===-- ffsti2_test.c - Test __ffsti2 -------------------------------------===//
45
//

compiler-rt/test/builtins/Unit/fixdfdi_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixdfdi
23
//===-- fixdfdi_test.c - Test __fixdfdi -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/fixdfsivfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixdfsivfp
23

34
//===-- fixdfsivfp_test.c - Test __fixdfsivfp -----------------------------===//
45
//

compiler-rt/test/builtins/Unit/fixdfti_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixdfti
23
// REQUIRES: int128
34
//===-- fixdfti_test.c - Test __fixdfti -----------------------------------===//
45
//

compiler-rt/test/builtins/Unit/fixsfdi_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixsfdi
23
//===-- fixsfdi_test.c - Test __fixsfdi -----------------------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/fixsfsivfp_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixsfsivfp
23

34
//===-- fixsfsivfp_test.c - Test __fixsfsivfp -----------------------------===//
45
//

compiler-rt/test/builtins/Unit/fixsfti_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixsfti
23
// REQUIRES: int128
34
//===-- fixsfti_test.c - Test __fixsfti -----------------------------------===//
45
//

compiler-rt/test/builtins/Unit/fixtfdi_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixtfdi
23
//===--------------- fixtfdi_test.c - Test __fixtfdi ----------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/test/builtins/Unit/fixtfsi_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_builtins %s %librt -o %t && %run %t
2+
// REQUIRES: librt_has_fixtfsi
23
//===--------------- fixtfsi_test.c - Test __fixtfsi ----------------------===//
34
//
45
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

0 commit comments

Comments
 (0)