Skip to content

Commit 0f73abd

Browse files
Merge branch 'apple/stable/20190619' into 55500457
2 parents 09ba1c9 + 0e859de commit 0f73abd

File tree

211 files changed

+518
-167
lines changed

Some content is hidden

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

211 files changed

+518
-167
lines changed

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function(find_darwin_sdk_dir var sdk_name)
1515
if(NOT DARWIN_PREFER_PUBLIC_SDK)
1616
# Let's first try the internal SDK, otherwise use the public SDK.
1717
execute_process(
18-
COMMAND xcodebuild -version -sdk ${sdk_name}.internal Path
18+
COMMAND xcrun --sdk ${sdk_name}.internal --show-sdk-path
1919
RESULT_VARIABLE result_process
2020
OUTPUT_VARIABLE var_internal
2121
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -24,7 +24,7 @@ function(find_darwin_sdk_dir var sdk_name)
2424
endif()
2525
if((NOT result_process EQUAL 0) OR "" STREQUAL "${var_internal}")
2626
execute_process(
27-
COMMAND xcodebuild -version -sdk ${sdk_name} Path
27+
COMMAND xcrun --sdk ${sdk_name} --show-sdk-path
2828
RESULT_VARIABLE result_process
2929
OUTPUT_VARIABLE var_internal
3030
OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -36,9 +36,45 @@ function(find_darwin_sdk_dir var sdk_name)
3636
if(result_process EQUAL 0)
3737
set(${var} ${var_internal} PARENT_SCOPE)
3838
endif()
39+
message(STATUS "Checking DARWIN_${sdk_name}_SYSROOT - '${var_internal}'")
3940
set(DARWIN_${sdk_name}_CACHED_SYSROOT ${var_internal} CACHE STRING "Darwin SDK path for SDK ${sdk_name}." FORCE)
4041
endfunction()
4142

43+
function(find_darwin_sdk_version var sdk_name)
44+
# We deliberately don't cache the result here because
45+
# CMake's caching causes too many problems.
46+
set(result_process 1)
47+
if(NOT DARWIN_PREFER_PUBLIC_SDK)
48+
# Let's first try the internal SDK, otherwise use the public SDK.
49+
execute_process(
50+
COMMAND xcodebuild -version -sdk ${sdk_name}.internal SDKVersion
51+
RESULT_VARIABLE result_process
52+
OUTPUT_VARIABLE var_internal
53+
OUTPUT_STRIP_TRAILING_WHITESPACE
54+
ERROR_FILE /dev/null
55+
)
56+
endif()
57+
if((NOT ${result_process} EQUAL 0) OR "" STREQUAL "${var_internal}")
58+
execute_process(
59+
COMMAND xcodebuild -version -sdk ${sdk_name} SDKVersion
60+
RESULT_VARIABLE result_process
61+
OUTPUT_VARIABLE var_internal
62+
OUTPUT_STRIP_TRAILING_WHITESPACE
63+
ERROR_FILE /dev/null
64+
)
65+
endif()
66+
if(NOT result_process EQUAL 0)
67+
message(FATAL_ERROR
68+
"Failed to determine SDK version for \"${sdk_name}\" SDK")
69+
endif()
70+
# Check reported version looks sane.
71+
if (NOT "${var_internal}" MATCHES "^[0-9]+\\.[0-9]+(\\.[0-9]+)?$")
72+
message(FATAL_ERROR
73+
"Reported SDK version \"${var_internal}\" does not look like a version")
74+
endif()
75+
set(${var} ${var_internal} PARENT_SCOPE)
76+
endfunction()
77+
4278
# There isn't a clear mapping of what architectures are supported with a given
4379
# target platform, but ld's version output does list the architectures it can
4480
# link for.
@@ -75,11 +111,22 @@ function(darwin_test_archs os valid_archs)
75111
message(STATUS "Finding valid architectures for ${os}...")
76112
set(SIMPLE_C ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/src.c)
77113
file(WRITE ${SIMPLE_C} "#include <stdio.h>\nint main() { printf(__FILE__); return 0; }\n")
78-
114+
79115
set(os_linker_flags)
80116
foreach(flag ${DARWIN_${os}_LINK_FLAGS})
81117
set(os_linker_flags "${os_linker_flags} ${flag}")
82118
endforeach()
119+
120+
# Disable building for i386 for macOS SDK >= 10.15. The SDK doesn't support
121+
# linking for i386 and the corresponding OS doesn't allow running macOS i386
122+
# binaries.
123+
if ("${os}" STREQUAL "osx")
124+
find_darwin_sdk_version(macosx_sdk_version "macosx")
125+
if ("${macosx_sdk_version}" VERSION_GREATER 10.15 OR "${macosx_sdk_version}" VERSION_EQUAL 10.15)
126+
message(STATUS "Disabling i386 slice for ${valid_archs}")
127+
list(REMOVE_ITEM archs "i386")
128+
endif()
129+
endif()
83130
endif()
84131

85132
# The simple program will build for x86_64h on the simulator because it is
@@ -94,7 +141,8 @@ function(darwin_test_archs os valid_archs)
94141

95142
set(arch_linker_flags "-arch ${arch} ${os_linker_flags}")
96143
if(TEST_COMPILE_ONLY)
97-
try_compile_only(CAN_TARGET_${os}_${arch} FLAGS -v -arch ${arch} ${DARWIN_${os}_CFLAGS})
144+
# `-w` is used to surpress compiler warnings which `try_compile_only()` treats as an error.
145+
try_compile_only(CAN_TARGET_${os}_${arch} FLAGS -v -arch ${arch} ${DARWIN_${os}_CFLAGS} -w)
98146
else()
99147
set(SAVED_CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS})
100148
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${arch_linker_flags}")
@@ -112,7 +160,7 @@ function(darwin_test_archs os valid_archs)
112160
endif()
113161
endforeach()
114162
set(${valid_archs} ${working_archs}
115-
CACHE STRING "List of valid architectures for platform ${os}.")
163+
CACHE STRING "List of valid architectures for platform ${os}." FORCE)
116164
endfunction()
117165

118166
# This function checks the host cpusubtype to see if it is post-haswell. Haswell
@@ -282,7 +330,7 @@ macro(darwin_add_builtin_libraries)
282330
../profile/InstrProfilingPlatformDarwin
283331
../profile/InstrProfilingWriter)
284332
foreach (os ${ARGN})
285-
list_intersect(DARWIN_BUILTIN_ARCHS DARWIN_${os}_ARCHS BUILTIN_SUPPORTED_ARCH)
333+
list_intersect(DARWIN_BUILTIN_ARCHS DARWIN_${os}_BUILTIN_ARCHS BUILTIN_SUPPORTED_ARCH)
286334
foreach (arch ${DARWIN_BUILTIN_ARCHS})
287335
darwin_find_excluded_builtins_list(${arch}_${os}_EXCLUDED_BUILTINS
288336
OS ${os}

compiler-rt/cmake/builtin-config-ix.cmake

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -62,43 +62,51 @@ if(APPLE)
6262
set(DARWIN_osx_BUILTIN_MIN_VER 10.5)
6363
set(DARWIN_osx_BUILTIN_MIN_VER_FLAG
6464
-mmacosx-version-min=${DARWIN_osx_BUILTIN_MIN_VER})
65+
set(DARWIN_osx_BUILTIN_ALL_POSSIBLE_ARCHS ${X86} ${X86_64})
6566

6667
if(COMPILER_RT_ENABLE_IOS)
6768
list(APPEND DARWIN_EMBEDDED_PLATFORMS ios)
6869
set(DARWIN_ios_MIN_VER_FLAG -miphoneos-version-min)
6970
set(DARWIN_ios_BUILTIN_MIN_VER 6.0)
7071
set(DARWIN_ios_BUILTIN_MIN_VER_FLAG
7172
${DARWIN_ios_MIN_VER_FLAG}=${DARWIN_ios_BUILTIN_MIN_VER})
73+
set(DARWIN_ios_BUILTIN_ALL_POSSIBLE_ARCHS ${ARM64} ${ARM32})
74+
set(DARWIN_iossim_BUILTIN_ALL_POSSIBLE_ARCHS ${X86} ${X86_64})
7275
endif()
7376
if(COMPILER_RT_ENABLE_WATCHOS)
7477
list(APPEND DARWIN_EMBEDDED_PLATFORMS watchos)
7578
set(DARWIN_watchos_MIN_VER_FLAG -mwatchos-version-min)
7679
set(DARWIN_watchos_BUILTIN_MIN_VER 2.0)
7780
set(DARWIN_watchos_BUILTIN_MIN_VER_FLAG
7881
${DARWIN_watchos_MIN_VER_FLAG}=${DARWIN_watchos_BUILTIN_MIN_VER})
82+
set(DARWIN_watchos_BUILTIN_ALL_POSSIBLE_ARCHS armv7 armv7k)
83+
set(DARWIN_watchossim_BUILTIN_ALL_POSSIBLE_ARCHS ${X86})
7984
endif()
8085
if(COMPILER_RT_ENABLE_TVOS)
8186
list(APPEND DARWIN_EMBEDDED_PLATFORMS tvos)
8287
set(DARWIN_tvos_MIN_VER_FLAG -mtvos-version-min)
8388
set(DARWIN_tvos_BUILTIN_MIN_VER 9.0)
8489
set(DARWIN_tvos_BUILTIN_MIN_VER_FLAG
8590
${DARWIN_tvos_MIN_VER_FLAG}=${DARWIN_tvos_BUILTIN_MIN_VER})
91+
set(DARWIN_tvos_BUILTIN_ALL_POSSIBLE_ARCHS armv7 arm64)
92+
set(DARWIN_tvossim_BUILTIN_ALL_POSSIBLE_ARCHS ${X86} ${X86_64})
8693
endif()
8794

8895
set(BUILTIN_SUPPORTED_OS osx)
8996

9097
# We're setting the flag manually for each target OS
9198
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
9299

93-
if(NOT DARWIN_osx_ARCHS)
94-
set(DARWIN_osx_ARCHS i386 x86_64 x86_64h)
95-
endif()
96-
97-
set(DARWIN_sim_ARCHS i386 x86_64)
98-
set(DARWIN_device_ARCHS armv7 armv7s armv7k arm64)
99-
100-
message(STATUS "OSX supported arches: ${DARWIN_osx_ARCHS}")
101-
foreach(arch ${DARWIN_osx_ARCHS})
100+
# NOTE: We deliberately avoid using `DARWIN_<os>_ARCHS` here because that is
101+
# used by `config-ix.cmake` in the context of building the rest of
102+
# compiler-rt where the global `${TEST_COMPILE_ONLY}` (used by
103+
# `darwin_test_archs()`) has a different value.
104+
darwin_test_archs(osx
105+
DARWIN_osx_BUILTIN_ARCHS
106+
${DARWIN_osx_BUILTIN_ALL_POSSIBLE_ARCHS}
107+
)
108+
message(STATUS "OSX supported builtin arches: ${DARWIN_osx_BUILTIN_ARCHS}")
109+
foreach(arch ${DARWIN_osx_BUILTIN_ARCHS})
102110
list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
103111
set(CAN_TARGET_${arch} 1)
104112
endforeach()
@@ -112,38 +120,30 @@ if(APPLE)
112120

113121
set(DARWIN_${platform}sim_SKIP_CC_KEXT On)
114122

115-
set(test_arches ${DARWIN_sim_ARCHS})
116-
if(DARWIN_${platform}sim_ARCHS)
117-
set(test_arches DARWIN_${platform}sim_ARCHS)
118-
endif()
119-
120123
darwin_test_archs(${platform}sim
121-
DARWIN_${platform}sim_ARCHS
122-
${test_arches})
123-
message(STATUS "${platform} Simulator supported builtin arches: ${DARWIN_${platform}sim_ARCHS}")
124-
if(DARWIN_${platform}sim_ARCHS)
124+
DARWIN_${platform}sim_BUILTIN_ARCHS
125+
${DARWIN_${platform}sim_BUILTIN_ALL_POSSIBLE_ARCHS}
126+
)
127+
message(STATUS "${platform} Simulator supported builtin arches: ${DARWIN_${platform}sim_BUILTIN_ARCHS}")
128+
if(DARWIN_${platform}sim_BUILTIN_ARCHS)
125129
list(APPEND BUILTIN_SUPPORTED_OS ${platform}sim)
126130
endif()
127-
foreach(arch ${DARWIN_${platform}sim_ARCHS})
131+
foreach(arch ${DARWIN_${platform}sim_BUILTIN_ARCHS})
128132
list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
129133
set(CAN_TARGET_${arch} 1)
130134
endforeach()
131135
endif()
132136

133137
if(DARWIN_${platform}_SYSROOT)
134-
set(test_arches ${DARWIN_device_ARCHS})
135-
if(DARWIN_${platform}_ARCHS)
136-
set(test_arches DARWIN_${platform}_ARCHS)
137-
endif()
138-
139138
darwin_test_archs(${platform}
140-
DARWIN_${platform}_ARCHS
141-
${test_arches})
142-
message(STATUS "${platform} supported builtin arches: ${DARWIN_${platform}_ARCHS}")
143-
if(DARWIN_${platform}_ARCHS)
139+
DARWIN_${platform}_BUILTIN_ARCHS
140+
${DARWIN_${platform}_BUILTIN_ALL_POSSIBLE_ARCHS}
141+
)
142+
message(STATUS "${platform} supported builtin arches: ${DARWIN_${platform}_BUILTIN_ARCHS}")
143+
if(DARWIN_${platform}_BUILTIN_ARCHS)
144144
list(APPEND BUILTIN_SUPPORTED_OS ${platform})
145145
endif()
146-
foreach(arch ${DARWIN_${platform}_ARCHS})
146+
foreach(arch ${DARWIN_${platform}_BUILTIN_ARCHS})
147147
list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
148148
set(CAN_TARGET_${arch} 1)
149149
endforeach()

compiler-rt/cmake/config-ix.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ if(APPLE)
283283
find_darwin_sdk_dir(DARWIN_tvos_SYSROOT appletvos)
284284

285285
if(NOT DARWIN_osx_SYSROOT)
286+
message(WARNING "Could not determine OS X sysroot, trying /usr/include")
286287
if(EXISTS /usr/include)
287288
set(DARWIN_osx_SYSROOT /)
288289
else()

compiler-rt/test/builtins/CMakeLists.txt

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ if (MSVC AND NOT "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
2525
endif()
2626
pythonize_bool(BUILTINS_IS_MSVC)
2727

28-
#TODO: Add support for Apple.
29-
if (NOT APPLE)
30-
foreach(arch ${BUILTIN_SUPPORTED_ARCH})
28+
set(BUILTIN_TEST_ARCH ${BUILTIN_SUPPORTED_ARCH})
29+
if(APPLE)
30+
darwin_filter_host_archs(BUILTIN_SUPPORTED_ARCH BUILTIN_TEST_ARCH)
31+
endif()
32+
33+
foreach(arch ${BUILTIN_TEST_ARCH})
3134
set(BUILTINS_TEST_TARGET_ARCH ${arch})
3235
string(TOLOWER "-${arch}-${OS_NAME}" BUILTINS_TEST_CONFIG_SUFFIX)
3336
get_test_cc_for_arch(${arch} BUILTINS_TEST_TARGET_CC BUILTINS_TEST_TARGET_CFLAGS)
@@ -41,6 +44,33 @@ foreach(arch ${BUILTIN_SUPPORTED_ARCH})
4144
string(REPLACE ";" " " BUILTINS_TEST_TARGET_CFLAGS "${BUILTINS_TEST_TARGET_CFLAGS}")
4245
endif()
4346

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+
4474
string(TOUPPER ${arch} ARCH_UPPER_CASE)
4575
set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)
4676
configure_lit_site_cfg(
@@ -49,7 +79,8 @@ foreach(arch ${BUILTIN_SUPPORTED_ARCH})
4979
)
5080
list(APPEND BUILTINS_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit/${CONFIG_NAME})
5181
endforeach()
52-
endif()
82+
83+
# TODO: Add support for running tests on iOS and iOS simulator.
5384

5485
add_lit_testsuite(check-builtins "Running the Builtins tests"
5586
${BUILTINS_TESTSUITES}

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.

0 commit comments

Comments
 (0)