Index: test/builtins/CMakeLists.txt =================================================================== --- test/builtins/CMakeLists.txt +++ test/builtins/CMakeLists.txt @@ -9,6 +9,22 @@ ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg ) +#Unit tests. +set(BUILTINS_TEST_ARCH ${COMPILER_RT_SUPPORTED_ARCH}) + +foreach(arch ${BUILTINS_TEST_ARCH}) + set(BUILTINS_TEST_TARGET_ARCH ${arch}) + string(TOLOWER "-${arch}-${OS_NAME}" BUILTINS_TEST_CONFIG_SUFFIX) + get_test_cc_for_arch(${arch} BUILTINS_TEST_TARGET_CC BUILTINS_TEST_TARGET_CFLAGS) + string(TOUPPER ${arch} ARCH_UPPER_CASE) + set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config) + configure_lit_site_cfg( + ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in + ${CMAKE_CURRENT_BINARY_DIR}/Unit/${CONFIG_NAME}/lit.site.cfg + ) + list(APPEND BUILTINS_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit/${CONFIG_NAME}) +endforeach() + add_lit_testsuite(check-builtins "Running the Builtins tests" ${BUILTINS_TESTSUITES} DEPENDS ${BUILTINS_TEST_DEPS}) Index: test/builtins/Unit/absvdi2_test.c =================================================================== --- test/builtins/Unit/absvdi2_test.c +++ test/builtins/Unit/absvdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- absvdi2_test.c - Test __absvdi2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/absvsi2_test.c =================================================================== --- test/builtins/Unit/absvsi2_test.c +++ test/builtins/Unit/absvsi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- absvsi2_test.c - Test __absvsi2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/absvti2_test.c =================================================================== --- test/builtins/Unit/absvti2_test.c +++ test/builtins/Unit/absvti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- absvti2_test.c - Test __absvti2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/adddf3vfp_test.c =================================================================== --- test/builtins/Unit/adddf3vfp_test.c +++ test/builtins/Unit/adddf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- adddf3vfp_test.c - Test __adddf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/addsf3vfp_test.c =================================================================== --- test/builtins/Unit/addsf3vfp_test.c +++ test/builtins/Unit/addsf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- addsf3vfp_test.c - Test __addsf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/addtf3_test.c =================================================================== --- test/builtins/Unit/addtf3_test.c +++ test/builtins/Unit/addtf3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- addtf3_test.c - Test __addtf3 ------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/addvdi3_test.c =================================================================== --- test/builtins/Unit/addvdi3_test.c +++ test/builtins/Unit/addvdi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- addvdi3_test.c - Test __addvdi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/addvsi3_test.c =================================================================== --- test/builtins/Unit/addvsi3_test.c +++ test/builtins/Unit/addvsi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- addvsi3_test.c - Test __addvsi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/addvti3_test.c =================================================================== --- test/builtins/Unit/addvti3_test.c +++ test/builtins/Unit/addvti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- addvti3_test.c - Test __addvti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_cdcmpeq_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_cdcmpeq_test.c +++ test/builtins/Unit/arm/aeabi_cdcmpeq_test.c @@ -1,3 +1,6 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %arm_call_apsr -o %t.aspr.o +// RUN: %clang_builtins %s %t.aspr.o %librt -o %t && %run %t //===-- aeabi_cdcmpeq.c - Test __aeabi_cdcmpeq ----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_cdcmple_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_cdcmple_test.c +++ test/builtins/Unit/arm/aeabi_cdcmple_test.c @@ -1,3 +1,7 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %arm_call_apsr -o %t.aspr.o +// RUN: %clang_builtins %s %t.aspr.o %librt -o %t && %run %t + //===-- aeabi_cdcmple.c - Test __aeabi_cdcmple and __aeabi_cdrcmple -------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_cfcmpeq_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_cfcmpeq_test.c +++ test/builtins/Unit/arm/aeabi_cfcmpeq_test.c @@ -1,3 +1,6 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %arm_call_apsr -o %t.aspr.o +// RUN: %clang_builtins %s %t.aspr.o %librt -o %t && %run %t //===-- aeabi_cfcmpeq.c - Test __aeabi_cfcmpeq ----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_cfcmple_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_cfcmple_test.c +++ test/builtins/Unit/arm/aeabi_cfcmple_test.c @@ -1,3 +1,7 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %arm_call_apsr -o %t.aspr.o +// RUN: %clang_builtins %s %t.aspr.o %librt -o %t && %run %t + //===-- aeabi_cfcmple.c - Test __aeabi_cfcmple and __aeabi_cfrcmple -------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_drsub_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_drsub_test.c +++ test/builtins/Unit/arm/aeabi_drsub_test.c @@ -1,3 +1,5 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- aeabi_drsub.c - Test __aeabi_drsub --------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_frsub_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_frsub_test.c +++ test/builtins/Unit/arm/aeabi_frsub_test.c @@ -1,3 +1,5 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- aeabi_frsub.c - Test __aeabi_frsub --------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_idivmod_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_idivmod_test.c +++ test/builtins/Unit/arm/aeabi_idivmod_test.c @@ -1,3 +1,5 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- aeabi_idivmod_test.c - Test __aeabi_idivmod -----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_uidivmod_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_uidivmod_test.c +++ test/builtins/Unit/arm/aeabi_uidivmod_test.c @@ -1,3 +1,5 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- aeabi_uidivmod_test.c - Test __aeabi_uidivmod ---------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/aeabi_uldivmod_test.c =================================================================== --- test/builtins/Unit/arm/aeabi_uldivmod_test.c +++ test/builtins/Unit/arm/aeabi_uldivmod_test.c @@ -1,3 +1,5 @@ +// REQUIRES-ANY: arm-target-arch,armv6m-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- aeabi_uldivmod_test.c - Test aeabi_uldivmod -----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/arm/call_apsr.S =================================================================== --- test/builtins/Unit/arm/call_apsr.S +++ test/builtins/Unit/arm/call_apsr.S @@ -22,11 +22,11 @@ // } DEFINE_COMPILERRT_PRIVATE_FUNCTION(call_apsr_d) - push {lr} - ldr ip, [sp, #4] - blx ip + push {r7, lr} + ldr r7, [sp, #8] + blx r7 mrs r0, apsr - pop {pc} + pop {r7, pc} END_COMPILERRT_FUNCTION(call_apsr_d) // __attribute__((pcs("aapcs"))) Index: test/builtins/Unit/ashldi3_test.c =================================================================== --- test/builtins/Unit/ashldi3_test.c +++ test/builtins/Unit/ashldi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ashldi3_test.c - Test __ashldi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ashlti3_test.c =================================================================== --- test/builtins/Unit/ashlti3_test.c +++ test/builtins/Unit/ashlti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ashlti3_test.c - Test __ashlti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ashrdi3_test.c =================================================================== --- test/builtins/Unit/ashrdi3_test.c +++ test/builtins/Unit/ashrdi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ashrdi3_test.c - Test __ashrdi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ashrti3_test.c =================================================================== --- test/builtins/Unit/ashrti3_test.c +++ test/builtins/Unit/ashrti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ashrti3_test.c - Test __ashrti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/bswapdi2_test.c =================================================================== --- test/builtins/Unit/bswapdi2_test.c +++ test/builtins/Unit/bswapdi2_test.c @@ -1,3 +1,5 @@ +// UNSUPPORTED: armv6m-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- bswapdi2_test.c - Test __bswapdi2 ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/bswapsi2_test.c =================================================================== --- test/builtins/Unit/bswapsi2_test.c +++ test/builtins/Unit/bswapsi2_test.c @@ -1,3 +1,5 @@ +// UNSUPPORTED: armv6m-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- bswapsi2_test.c - Test __bswapsi2 ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/clear_cache_test.c =================================================================== --- test/builtins/Unit/clear_cache_test.c +++ test/builtins/Unit/clear_cache_test.c @@ -1,3 +1,6 @@ +// REQUIRES: native-run +// UNSUPPORTED: arm, aarch64 +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- clear_cache_test.c - Test clear_cache -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/clzdi2_test.c =================================================================== --- test/builtins/Unit/clzdi2_test.c +++ test/builtins/Unit/clzdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- clzdi2_test.c - Test __clzdi2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/clzsi2_test.c =================================================================== --- test/builtins/Unit/clzsi2_test.c +++ test/builtins/Unit/clzsi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- clzsi2_test.c - Test __clzsi2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/clzti2_test.c =================================================================== --- test/builtins/Unit/clzti2_test.c +++ test/builtins/Unit/clzti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- clzti2_test.c - Test __clzti2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/cmpdi2_test.c =================================================================== --- test/builtins/Unit/cmpdi2_test.c +++ test/builtins/Unit/cmpdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- cmpdi2_test.c - Test __cmpdi2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/cmpti2_test.c =================================================================== --- test/builtins/Unit/cmpti2_test.c +++ test/builtins/Unit/cmpti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- cmpti2_test.c - Test __cmpti2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/comparedf2_test.c =================================================================== --- test/builtins/Unit/comparedf2_test.c +++ test/builtins/Unit/comparedf2_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- cmpdf2_test.c - Test __cmpdf2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/comparesf2_test.c =================================================================== --- test/builtins/Unit/comparesf2_test.c +++ test/builtins/Unit/comparesf2_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- cmpsf2_test.c - Test __cmpsf2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/cpu_model_test.c =================================================================== --- test/builtins/Unit/cpu_model_test.c +++ test/builtins/Unit/cpu_model_test.c @@ -1,4 +1,8 @@ -//===-- cpu_model_test.c - Test __builtin_cpu_supports -------------------------------===// +// FIXME: XFAIL the test because it is expected to return non-zero value. +// XFAIL: * +// REQUIRES: x86-target-arch +// RUN: %clang_builtins %s %librt -o %t && %run %t +//===-- cpu_model_test.c - Test __builtin_cpu_supports --------------------===// // // The LLVM Compiler Infrastructure // @@ -11,8 +15,6 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: x86-target-arch - #include int main (void) { Index: test/builtins/Unit/ctzdi2_test.c =================================================================== --- test/builtins/Unit/ctzdi2_test.c +++ test/builtins/Unit/ctzdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ctzdi2_test.c - Test __ctzdi2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ctzsi2_test.c =================================================================== --- test/builtins/Unit/ctzsi2_test.c +++ test/builtins/Unit/ctzsi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ctzsi2_test.c - Test __ctzsi2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ctzti2_test.c =================================================================== --- test/builtins/Unit/ctzti2_test.c +++ test/builtins/Unit/ctzti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ctzti2_test.c - Test __ctzti2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divdc3_test.c =================================================================== --- test/builtins/Unit/divdc3_test.c +++ test/builtins/Unit/divdc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- divdc3_test.c - Test __divdc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divdf3vfp_test.c =================================================================== --- test/builtins/Unit/divdf3vfp_test.c +++ test/builtins/Unit/divdf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- divdf3vfp_test.c - Test __divdf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divdi3_test.c =================================================================== --- test/builtins/Unit/divdi3_test.c +++ test/builtins/Unit/divdi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- divdi3_test.c - Test __divdi3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divmodsi4_test.c =================================================================== --- test/builtins/Unit/divmodsi4_test.c +++ test/builtins/Unit/divmodsi4_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- divmodsi4_test.c - Test __divmodsi4 -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divsc3_test.c =================================================================== --- test/builtins/Unit/divsc3_test.c +++ test/builtins/Unit/divsc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -lm -o %t && %run %t //===-- divsc3_test.c - Test __divsc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divsf3vfp_test.c =================================================================== --- test/builtins/Unit/divsf3vfp_test.c +++ test/builtins/Unit/divsf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- divsf3vfp_test.c - Test __divsf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divsi3_test.c =================================================================== --- test/builtins/Unit/divsi3_test.c +++ test/builtins/Unit/divsi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- divsi3_test.c - Test __divsi3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divtc3_test.c =================================================================== --- test/builtins/Unit/divtc3_test.c +++ test/builtins/Unit/divtc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -lm -o %t && %run %t //===-- divtc3_test.c - Test __divtc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divtf3_test.c =================================================================== --- test/builtins/Unit/divtf3_test.c +++ test/builtins/Unit/divtf3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- divtf3_test.c - Test __divtf3 ------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divti3_test.c =================================================================== --- test/builtins/Unit/divti3_test.c +++ test/builtins/Unit/divti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- divti3_test.c - Test __divti3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/divxc3_test.c =================================================================== --- test/builtins/Unit/divxc3_test.c +++ test/builtins/Unit/divxc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -lm -o %t && %run %t //===-- divxc3_test.c - Test __divxc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/enable_execute_stack_test.c =================================================================== --- test/builtins/Unit/enable_execute_stack_test.c +++ test/builtins/Unit/enable_execute_stack_test.c @@ -1,3 +1,5 @@ +// REQUIRES: native-run +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- enable_execute_stack_test.c - Test __enable_execute_stack ----------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/eqdf2vfp_test.c =================================================================== --- test/builtins/Unit/eqdf2vfp_test.c +++ test/builtins/Unit/eqdf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- eqdf2vfp_test.c - Test __eqdf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/eqsf2vfp_test.c =================================================================== --- test/builtins/Unit/eqsf2vfp_test.c +++ test/builtins/Unit/eqsf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- eqsf2vfp_test.c - Test __eqsf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/eqtf2_test.c =================================================================== --- test/builtins/Unit/eqtf2_test.c +++ test/builtins/Unit/eqtf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ eqtf2_test.c - Test __eqtf2------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/extebdsfdf2vfp_test.c =================================================================== --- test/builtins/Unit/extebdsfdf2vfp_test.c +++ test/builtins/Unit/extebdsfdf2vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- extendsfdf2vfp_test.c - Test __extendsfdf2vfp ---------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/extenddftf2_test.c =================================================================== --- test/builtins/Unit/extenddftf2_test.c +++ test/builtins/Unit/extenddftf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- extenddftf2_test.c - Test __extenddftf2 --------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/extendhfsf2_test.c =================================================================== --- test/builtins/Unit/extendhfsf2_test.c +++ test/builtins/Unit/extendhfsf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- extendhfsf2_test.c - Test __extendhfsf2 --------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/extendsftf2_test.c =================================================================== --- test/builtins/Unit/extendsftf2_test.c +++ test/builtins/Unit/extendsftf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- extendsftf2_test.c - Test __extendsftf2 --------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ffsdi2_test.c =================================================================== --- test/builtins/Unit/ffsdi2_test.c +++ test/builtins/Unit/ffsdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ffsdi2_test.c - Test __ffsdi2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ffsti2_test.c =================================================================== --- test/builtins/Unit/ffsti2_test.c +++ test/builtins/Unit/ffsti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ffsti2_test.c - Test __ffsti2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixdfdi_test.c =================================================================== --- test/builtins/Unit/fixdfdi_test.c +++ test/builtins/Unit/fixdfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixdfdi_test.c - Test __fixdfdi -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixdfsivfp_test.c =================================================================== --- test/builtins/Unit/fixdfsivfp_test.c +++ test/builtins/Unit/fixdfsivfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- fixdfsivfp_test.c - Test __fixdfsivfp -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixdfti_test.c =================================================================== --- test/builtins/Unit/fixdfti_test.c +++ test/builtins/Unit/fixdfti_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixdfti_test.c - Test __fixdfti -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixsfdi_test.c =================================================================== --- test/builtins/Unit/fixsfdi_test.c +++ test/builtins/Unit/fixsfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixsfdi_test.c - Test __fixsfdi -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixsfsivfp_test.c =================================================================== --- test/builtins/Unit/fixsfsivfp_test.c +++ test/builtins/Unit/fixsfsivfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- fixsfsivfp_test.c - Test __fixsfsivfp -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixsfti_test.c =================================================================== --- test/builtins/Unit/fixsfti_test.c +++ test/builtins/Unit/fixsfti_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixsfti_test.c - Test __fixsfti -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixtfdi_test.c =================================================================== --- test/builtins/Unit/fixtfdi_test.c +++ test/builtins/Unit/fixtfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- fixtfdi_test.c - Test __fixtfdi ----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixtfsi_test.c =================================================================== --- test/builtins/Unit/fixtfsi_test.c +++ test/builtins/Unit/fixtfsi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- fixtfsi_test.c - Test __fixtfsi ----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixtfti_test.c =================================================================== --- test/builtins/Unit/fixtfti_test.c +++ test/builtins/Unit/fixtfti_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- fixtfti_test.c - Test __fixtfti ----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunsdfdi_test.c =================================================================== --- test/builtins/Unit/fixunsdfdi_test.c +++ test/builtins/Unit/fixunsdfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunsdfdi_test.c - Test __fixunsdfdi -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunsdfsi_test.c =================================================================== --- test/builtins/Unit/fixunsdfsi_test.c +++ test/builtins/Unit/fixunsdfsi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunsdfsi_test.c - Test __fixunsdfsi -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunsdfsivfp_test.c =================================================================== --- test/builtins/Unit/fixunsdfsivfp_test.c +++ test/builtins/Unit/fixunsdfsivfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunsdfsivfp_test.c - Test __fixunsdfsivfp -----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunsdfti_test.c =================================================================== --- test/builtins/Unit/fixunsdfti_test.c +++ test/builtins/Unit/fixunsdfti_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunsdfti_test.c - Test __fixunsdfti -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunssfdi_test.c =================================================================== --- test/builtins/Unit/fixunssfdi_test.c +++ test/builtins/Unit/fixunssfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunssfdi_test.c - Test __fixunssfdi -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunssfsi_test.c =================================================================== --- test/builtins/Unit/fixunssfsi_test.c +++ test/builtins/Unit/fixunssfsi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunssfsi_test.c - Test __fixunssfsi -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunssfsivfp_test.c =================================================================== --- test/builtins/Unit/fixunssfsivfp_test.c +++ test/builtins/Unit/fixunssfsivfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- fixunssfsivfp_test.c - Test __fixunssfsivfp -----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunssfti_test.c =================================================================== --- test/builtins/Unit/fixunssfti_test.c +++ test/builtins/Unit/fixunssfti_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunssfti_test.c - Test __fixunssfti -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunstfdi_test.c =================================================================== --- test/builtins/Unit/fixunstfdi_test.c +++ test/builtins/Unit/fixunstfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunstfdi_test.c - Test __fixunstfdi -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunstfsi_test.c =================================================================== --- test/builtins/Unit/fixunstfsi_test.c +++ test/builtins/Unit/fixunstfsi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- fixunstfsi_test.c - Test __fixunstfsi ----------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunstfti_test.c =================================================================== --- test/builtins/Unit/fixunstfti_test.c +++ test/builtins/Unit/fixunstfti_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunstfti_test.c - Test __fixunstfti -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunsxfdi_test.c =================================================================== --- test/builtins/Unit/fixunsxfdi_test.c +++ test/builtins/Unit/fixunsxfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunsxfdi_test.c - Test __fixunsxfdi -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunsxfsi_test.c =================================================================== --- test/builtins/Unit/fixunsxfsi_test.c +++ test/builtins/Unit/fixunsxfsi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixunsxfsi_test.c - Test __fixunsxfsi -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixunsxfti_test.c =================================================================== --- test/builtins/Unit/fixunsxfti_test.c +++ test/builtins/Unit/fixunsxfti_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: aarch64 +// test fails for aarch64 (see pr32260) + //===-- fixunsxfti_test.c - Test __fixunsxfti -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixxfdi_test.c =================================================================== --- test/builtins/Unit/fixxfdi_test.c +++ test/builtins/Unit/fixxfdi_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- fixxfdi_test.c - Test __fixxfdi -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/fixxfti_test.c =================================================================== --- test/builtins/Unit/fixxfti_test.c +++ test/builtins/Unit/fixxfti_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: aarch64 +// test fails for aarch64 (see pr32260) + //===-- fixxfti_test.c - Test __fixxfti -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatdidf_test.c =================================================================== --- test/builtins/Unit/floatdidf_test.c +++ test/builtins/Unit/floatdidf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatdidf.c - Test __floatdidf ------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatdisf_test.c =================================================================== --- test/builtins/Unit/floatdisf_test.c +++ test/builtins/Unit/floatdisf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatdisf_test.c - Test __floatdisf -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatditf_test.c =================================================================== --- test/builtins/Unit/floatditf_test.c +++ test/builtins/Unit/floatditf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatditf_test.c - Test __floatditf -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatdixf_test.c =================================================================== --- test/builtins/Unit/floatdixf_test.c +++ test/builtins/Unit/floatdixf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatdixf_test.c - Test __floatdixf -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatsidfvfp_test.c =================================================================== --- test/builtins/Unit/floatsidfvfp_test.c +++ test/builtins/Unit/floatsidfvfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatsidfvfp_test.c - Test __floatsidfvfp -------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatsisfvfp_test.c =================================================================== --- test/builtins/Unit/floatsisfvfp_test.c +++ test/builtins/Unit/floatsisfvfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatsisfvfp_test.c - Test __floatsisfvfp -------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatsitf_test.c =================================================================== --- test/builtins/Unit/floatsitf_test.c +++ test/builtins/Unit/floatsitf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- floatsitf_test.c - Test __floatsitf ------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floattidf_test.c =================================================================== --- test/builtins/Unit/floattidf_test.c +++ test/builtins/Unit/floattidf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floattidf.c - Test __floattidf ------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floattisf_test.c =================================================================== --- test/builtins/Unit/floattisf_test.c +++ test/builtins/Unit/floattisf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floattisf_test.c - Test __floattisf -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floattitf_test.c =================================================================== --- test/builtins/Unit/floattitf_test.c +++ test/builtins/Unit/floattitf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floattitf.c - Test __floattitf ------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floattixf_test.c =================================================================== --- test/builtins/Unit/floattixf_test.c +++ test/builtins/Unit/floattixf_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: aarch64 +// test fails for aarch64 (see pr32260) + //===-- floattixf.c - Test __floattixf ------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatundidf_test.c =================================================================== --- test/builtins/Unit/floatundidf_test.c +++ test/builtins/Unit/floatundidf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatundidf_test.c - Test __floatundidf ---------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatundisf_test.c =================================================================== --- test/builtins/Unit/floatundisf_test.c +++ test/builtins/Unit/floatundisf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatundisf_test.c - Test __floatundisf ---------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatunditf_test.c =================================================================== --- test/builtins/Unit/floatunditf_test.c +++ test/builtins/Unit/floatunditf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatunditf_test.c - Test __floatunditf ---------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatundixf_test.c =================================================================== --- test/builtins/Unit/floatundixf_test.c +++ test/builtins/Unit/floatundixf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatundixf_test.c - Test __floatundixf ---------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatunsitf_test.c =================================================================== --- test/builtins/Unit/floatunsitf_test.c +++ test/builtins/Unit/floatunsitf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- floatunsitf_test.c - Test __floatunsitf --------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatunssidfvfp_test.c =================================================================== --- test/builtins/Unit/floatunssidfvfp_test.c +++ test/builtins/Unit/floatunssidfvfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatunssidfvfp_test.c - Test __floatunssidfvfp -------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatunssisfvfp_test.c =================================================================== --- test/builtins/Unit/floatunssisfvfp_test.c +++ test/builtins/Unit/floatunssisfvfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatunssisfvfp_test.c - Test __floatunssisfvfp -------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatuntidf_test.c =================================================================== --- test/builtins/Unit/floatuntidf_test.c +++ test/builtins/Unit/floatuntidf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatuntidf.c - Test __floatuntidf --------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatuntisf_test.c =================================================================== --- test/builtins/Unit/floatuntisf_test.c +++ test/builtins/Unit/floatuntisf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatuntisf.c - Test __floatuntisf --------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatuntitf_test.c =================================================================== --- test/builtins/Unit/floatuntitf_test.c +++ test/builtins/Unit/floatuntitf_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- floatuntitf.c - Test __floatuntitf --------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/floatuntixf_test.c =================================================================== --- test/builtins/Unit/floatuntixf_test.c +++ test/builtins/Unit/floatuntixf_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: aarch64 +// test fails for aarch64 (see pr32260) + //===-- floatuntixf.c - Test __floatuntixf --------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/gcc_personality_test.c =================================================================== --- test/builtins/Unit/gcc_personality_test.c +++ test/builtins/Unit/gcc_personality_test.c @@ -1,3 +1,6 @@ +// FIXME: XFAIL as currently it cannot be built by lit properly. +// XFAIL: * +// RUN: %clangxx_builtins %s %librt -o %t && %run %t /* ===-- gcc_personality_test.c - Tests __gcc_personality_v0 -------------=== * * The LLVM Compiler Infrastructure Index: test/builtins/Unit/gedf2vfp_test.c =================================================================== --- test/builtins/Unit/gedf2vfp_test.c +++ test/builtins/Unit/gedf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- gedf2vfp_test.c - Test __gedf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/gesf2vfp_test.c =================================================================== --- test/builtins/Unit/gesf2vfp_test.c +++ test/builtins/Unit/gesf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- gesf2vfp_test.c - Test __gesf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/getf2_test.c =================================================================== --- test/builtins/Unit/getf2_test.c +++ test/builtins/Unit/getf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ getf2_test.c - Test __getf2------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/gtdf2vfp_test.c =================================================================== --- test/builtins/Unit/gtdf2vfp_test.c +++ test/builtins/Unit/gtdf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- gtdf2vfp_test.c - Test __gtdf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/gtsf2vfp_test.c =================================================================== --- test/builtins/Unit/gtsf2vfp_test.c +++ test/builtins/Unit/gtsf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- gtsf2vfp_test.c - Test __gtsf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/gttf2_test.c =================================================================== --- test/builtins/Unit/gttf2_test.c +++ test/builtins/Unit/gttf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ gttf2_test.c - Test __gttf2------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ledf2vfp_test.c =================================================================== --- test/builtins/Unit/ledf2vfp_test.c +++ test/builtins/Unit/ledf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- ledf2vfp_test.c - Test __ledf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/lesf2vfp_test.c =================================================================== --- test/builtins/Unit/lesf2vfp_test.c +++ test/builtins/Unit/lesf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- lesf2vfp_test.c - Test __lesf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/letf2_test.c =================================================================== --- test/builtins/Unit/letf2_test.c +++ test/builtins/Unit/letf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ letf2_test.c - Test __letf2------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/lit.cfg =================================================================== --- /dev/null +++ test/builtins/Unit/lit.cfg @@ -0,0 +1,80 @@ +# -*- Python -*- + +import os +import platform + +import lit.formats + +def get_required_attr(config, attr_name): + attr_value = getattr(config, attr_name, None) + if attr_value == None: + lit_config.fatal( + "No attribute %r in test configuration! You may need to run " + "tests from your build directory or add this attribute " + "to lit.site.cfg " % attr_name) + return attr_value + +# Setup config name. +config.name = 'Builtins' + config.name_suffix + +# Platform-specific default Builtins_OPTIONS for lit tests. +default_builtins_opts = '' + +# Setup source root. +config.test_source_root = os.path.dirname(__file__) + +# Path to the static library +base_lib = os.path.join(config.compiler_rt_libdir, "libclang_rt.builtins-%s.a " + % config.target_arch) + +builtins_source_dir = os.path.join( + get_required_attr(config, "compiler_rt_src_root"), "lib", "builtins") +builtins_lit_source_dir = get_required_attr(config, "builtins_lit_source_dir") + +extra_link_flags = ["-nodefaultlibs"] +config.substitutions.append( ("%librt ", base_lib + ' -lc -lm ') ) + +target_cflags = [get_required_attr(config, "target_cflags")] +target_cflags += ['-fno-builtin', '-I', builtins_source_dir] +target_cflags += extra_link_flags +target_cxxflags = config.cxx_mode_flags + target_cflags +clang_builtins_static_cflags = ([""] + + config.debug_info_flags + target_cflags) +clang_builtins_static_cxxflags = config.cxx_mode_flags + \ + clang_builtins_static_cflags + +clang_builtins_cflags = clang_builtins_static_cflags +clang_builtins_cxxflags = clang_builtins_static_cxxflags + + +config.available_features.add('not-android') +clang_wrapper = "" + +def build_invocation(compile_flags): + return " " + " ".join([clang_wrapper, config.clang] + compile_flags) + " " + + +target_arch = config.target_arch +if (target_arch == "arm"): + target_arch = "armv7" + +config.substitutions.append( ("%clang ", build_invocation(target_cflags)) ) +config.substitutions.append( ("%clangxx ", build_invocation(target_cxxflags)) ) +config.substitutions.append( ("%clang_builtins ", \ + build_invocation(clang_builtins_cflags))) +config.substitutions.append( ("%clangxx_builtins ", \ + build_invocation(clang_builtins_cxxflags))) + +# FIXME: move the call_apsr.s into call_apsr.h as inline-asm. +# some ARM tests needs call_apsr.s +call_apsr_source = os.path.join(builtins_lit_source_dir, 'arm', 'call_apsr.S') +march_flag = '-march=' + target_arch +call_apsr_flags = ['-c', march_flag, call_apsr_source] +config.substitutions.append( ("%arm_call_apsr ", \ + build_invocation(call_apsr_flags)) ) + +# Default test suffixes. +config.suffixes = ['.c', '.cc', '.cpp'] + +if not config.emulator: + config.available_features.add('native-run') Index: test/builtins/Unit/lit.site.cfg.in =================================================================== --- /dev/null +++ test/builtins/Unit/lit.site.cfg.in @@ -0,0 +1,12 @@ +@LIT_SITE_CFG_IN_HEADER@ + +config.name_suffix = "@BUILTINS_TEST_CONFIG_SUFFIX@" +config.builtins_lit_source_dir = "@BUILTINS_LIT_SOURCE_DIR@/Unit" +config.target_cflags = "@BUILTINS_TEST_TARGET_CFLAGS@" +config.target_arch = "@BUILTINS_TEST_TARGET_ARCH@" + +# Load common config for all compiler-rt lit tests. +lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") + +# Load tool-specific config that would do the real work. +lit_config.load_config(config, "@BUILTINS_LIT_SOURCE_DIR@/Unit/lit.cfg") Index: test/builtins/Unit/lshrdi3_test.c =================================================================== --- test/builtins/Unit/lshrdi3_test.c +++ test/builtins/Unit/lshrdi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- lshrdi3_test.c - Test __lshrdi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/lshrti3_test.c =================================================================== --- test/builtins/Unit/lshrti3_test.c +++ test/builtins/Unit/lshrti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- lshrti3_test.c - Test __lshrti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ltdf2vfp_test.c =================================================================== --- test/builtins/Unit/ltdf2vfp_test.c +++ test/builtins/Unit/ltdf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- ltdf2vfp_test.c - Test __ltdf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ltsf2vfp_test.c =================================================================== --- test/builtins/Unit/ltsf2vfp_test.c +++ test/builtins/Unit/ltsf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- ltsf2vfp_test.c - Test __ltsf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/lttf2_test.c =================================================================== --- test/builtins/Unit/lttf2_test.c +++ test/builtins/Unit/lttf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ lttf2_test.c - Test __lttf2------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/moddi3_test.c =================================================================== --- test/builtins/Unit/moddi3_test.c +++ test/builtins/Unit/moddi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- moddi3_test.c - Test __moddi3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/modsi3_test.c =================================================================== --- test/builtins/Unit/modsi3_test.c +++ test/builtins/Unit/modsi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t /* ===-- modsi3_test.c - Test __modsi3 -------------------------------------=== * * The LLVM Compiler Infrastructure Index: test/builtins/Unit/modti3_test.c =================================================================== --- test/builtins/Unit/modti3_test.c +++ test/builtins/Unit/modti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- modti3_test.c - Test __modti3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/muldc3_test.c =================================================================== --- test/builtins/Unit/muldc3_test.c +++ test/builtins/Unit/muldc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -lm -o %t && %run %t //===-- muldc3_test.c - Test __muldc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/muldf3vfp_test.c =================================================================== --- test/builtins/Unit/muldf3vfp_test.c +++ test/builtins/Unit/muldf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- muldf3vfp_test.c - Test __muldf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/muldi3_test.c =================================================================== --- test/builtins/Unit/muldi3_test.c +++ test/builtins/Unit/muldi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- muldi3_test.c - Test __muldi3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulodi4_test.c =================================================================== --- test/builtins/Unit/mulodi4_test.c +++ test/builtins/Unit/mulodi4_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- mulodi4_test.c - Test __mulodi4 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulosi4_test.c =================================================================== --- test/builtins/Unit/mulosi4_test.c +++ test/builtins/Unit/mulosi4_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- mulosi4_test.c - Test __mulosi4 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/muloti4_test.c =================================================================== --- test/builtins/Unit/muloti4_test.c +++ test/builtins/Unit/muloti4_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- muloti4_test.c - Test __muloti4 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulsc3_test.c =================================================================== --- test/builtins/Unit/mulsc3_test.c +++ test/builtins/Unit/mulsc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -lm -o %t && %run %t //===-- mulsc3_test.c - Test __mulsc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulsf3vfp_test.c =================================================================== --- test/builtins/Unit/mulsf3vfp_test.c +++ test/builtins/Unit/mulsf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- mulsf3vfp_test.c - Test __mulsf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/multc3_test.c =================================================================== --- test/builtins/Unit/multc3_test.c +++ test/builtins/Unit/multc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- multc3_test.c - Test __multc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/multf3_test.c =================================================================== --- test/builtins/Unit/multf3_test.c +++ test/builtins/Unit/multf3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- multf3_test.c - Test __multf3 ------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/multi3_test.c =================================================================== --- test/builtins/Unit/multi3_test.c +++ test/builtins/Unit/multi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- multi3_test.c - Test __multi3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulvdi3_test.c =================================================================== --- test/builtins/Unit/mulvdi3_test.c +++ test/builtins/Unit/mulvdi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- mulvdi3_test.c - Test __mulvdi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulvsi3_test.c =================================================================== --- test/builtins/Unit/mulvsi3_test.c +++ test/builtins/Unit/mulvsi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- mulvsi3_test.c - Test __mulvsi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulvti3_test.c =================================================================== --- test/builtins/Unit/mulvti3_test.c +++ test/builtins/Unit/mulvti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- mulvti3_test.c - Test __mulvti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/mulxc3_test.c =================================================================== --- test/builtins/Unit/mulxc3_test.c +++ test/builtins/Unit/mulxc3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -lm -o %t && %run %t //===-- mulxc3_test.c - Test __mulxc3 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/nedf2vfp_test.c =================================================================== --- test/builtins/Unit/nedf2vfp_test.c +++ test/builtins/Unit/nedf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- nedf2vfp_test.c - Test __nedf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/negdf2vfp_test.c =================================================================== --- test/builtins/Unit/negdf2vfp_test.c +++ test/builtins/Unit/negdf2vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- negdf2vfp_test.c - Test __negdf2vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/negdi2_test.c =================================================================== --- test/builtins/Unit/negdi2_test.c +++ test/builtins/Unit/negdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- negdi2_test.c - Test __negdi2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/negsf2vfp_test.c =================================================================== --- test/builtins/Unit/negsf2vfp_test.c +++ test/builtins/Unit/negsf2vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- negsf2vfp_test.c - Test __negsf2vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/negti2_test.c =================================================================== --- test/builtins/Unit/negti2_test.c +++ test/builtins/Unit/negti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- negti2_test.c - Test __negti2 -------------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/negvdi2_test.c =================================================================== --- test/builtins/Unit/negvdi2_test.c +++ test/builtins/Unit/negvdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- negvdi2_test.c - Test __negvdi2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/negvsi2_test.c =================================================================== --- test/builtins/Unit/negvsi2_test.c +++ test/builtins/Unit/negvsi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- negvsi2_test.c - Test __negvsi2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/negvti2_test.c =================================================================== --- test/builtins/Unit/negvti2_test.c +++ test/builtins/Unit/negvti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- negvti2_test.c - Test __negvti2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/nesf2vfp_test.c =================================================================== --- test/builtins/Unit/nesf2vfp_test.c +++ test/builtins/Unit/nesf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- nesf2vfp_test.c - Test __nesf2vfp ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/netf2_test.c =================================================================== --- test/builtins/Unit/netf2_test.c +++ test/builtins/Unit/netf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ netf2_test.c - Test __netf2------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/paritydi2_test.c =================================================================== --- test/builtins/Unit/paritydi2_test.c +++ test/builtins/Unit/paritydi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- paritydi2_test.c - Test __paritydi2 -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/paritysi2_test.c =================================================================== --- test/builtins/Unit/paritysi2_test.c +++ test/builtins/Unit/paritysi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- paritysi2_test.c - Test __paritysi2 -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/parityti2_test.c =================================================================== --- test/builtins/Unit/parityti2_test.c +++ test/builtins/Unit/parityti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- parityti2_test.c - Test __parityti2 -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/popcountdi2_test.c =================================================================== --- test/builtins/Unit/popcountdi2_test.c +++ test/builtins/Unit/popcountdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- popcountdi2_test.c - Test __popcountdi2 ----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/popcountsi2_test.c =================================================================== --- test/builtins/Unit/popcountsi2_test.c +++ test/builtins/Unit/popcountsi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- popcountsi2_test.c - Test __popcountsi2 ---------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/popcountti2_test.c =================================================================== --- test/builtins/Unit/popcountti2_test.c +++ test/builtins/Unit/popcountti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- popcountti2_test.c - Test __popcountti2 ----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/powidf2_test.c =================================================================== --- test/builtins/Unit/powidf2_test.c +++ test/builtins/Unit/powidf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- powidf2_test.cpp - Test __powidf2 ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/powisf2_test.c =================================================================== --- test/builtins/Unit/powisf2_test.c +++ test/builtins/Unit/powisf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- powisf2_test.cpp - Test __powisf2 ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/powitf2_test.c =================================================================== --- test/builtins/Unit/powitf2_test.c +++ test/builtins/Unit/powitf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- powitf2_test.cpp - Test __powitf2 ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/powixf2_test.c =================================================================== --- test/builtins/Unit/powixf2_test.c +++ test/builtins/Unit/powixf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- powixf2_test.cpp - Test __powixf2 ---------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ppc/fixtfdi_test.c =================================================================== --- test/builtins/Unit/ppc/fixtfdi_test.c +++ test/builtins/Unit/ppc/fixtfdi_test.c @@ -1,3 +1,5 @@ +// REQUIRES: powerpc-registered-target +// RUN: %clang_builtins %s -o %t && %run %t #include #include #include Index: test/builtins/Unit/ppc/floatditf_test.c =================================================================== --- test/builtins/Unit/ppc/floatditf_test.c +++ test/builtins/Unit/ppc/floatditf_test.c @@ -1,3 +1,5 @@ +// REQUIRES: powerpc-registered-target +// RUN: %clang_builtins %s -o %t && %run %t #include #include Index: test/builtins/Unit/ppc/floatunditf_test.c =================================================================== --- test/builtins/Unit/ppc/floatunditf_test.c +++ test/builtins/Unit/ppc/floatunditf_test.c @@ -1,3 +1,5 @@ +// REQUIRES: powerpc-registered-target +// RUN: %clang_builtins %s -o %t && %run %t #include #include Index: test/builtins/Unit/ppc/qadd_test.c =================================================================== --- test/builtins/Unit/ppc/qadd_test.c +++ test/builtins/Unit/ppc/qadd_test.c @@ -1,3 +1,5 @@ +// REQUIRES: powerpc-registered-target +// RUN: %clang_builtins %s -o %t && %run %t #include #include "DD.h" Index: test/builtins/Unit/ppc/qdiv_test.c =================================================================== --- test/builtins/Unit/ppc/qdiv_test.c +++ test/builtins/Unit/ppc/qdiv_test.c @@ -1,3 +1,5 @@ +// REQUIRES: powerpc-registered-target +// RUN: %clang_builtins %s -o %t && %run %t #include #include "DD.h" Index: test/builtins/Unit/ppc/qmul_test.c =================================================================== --- test/builtins/Unit/ppc/qmul_test.c +++ test/builtins/Unit/ppc/qmul_test.c @@ -1,3 +1,5 @@ +// REQUIRES: powerpc-registered-target +// RUN: %clang_builtins %s -o %t && %run %t #include #include "DD.h" Index: test/builtins/Unit/ppc/qsub_test.c =================================================================== --- test/builtins/Unit/ppc/qsub_test.c +++ test/builtins/Unit/ppc/qsub_test.c @@ -1,3 +1,5 @@ +// REQUIRES: powerpc-registered-target +// RUN: %clang_builtins %s -o %t && %run %t #include #include "DD.h" Index: test/builtins/Unit/subdf3vfp_test.c =================================================================== --- test/builtins/Unit/subdf3vfp_test.c +++ test/builtins/Unit/subdf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- subdf3vfp_test.c - Test __subdf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/subsf3vfp_test.c =================================================================== --- test/builtins/Unit/subsf3vfp_test.c +++ test/builtins/Unit/subsf3vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- subsf3vfp_test.c - Test __subsf3vfp -------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/subtf3_test.c =================================================================== --- test/builtins/Unit/subtf3_test.c +++ test/builtins/Unit/subtf3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- subtf3_test.c - Test __subtf3 ------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/subvdi3_test.c =================================================================== --- test/builtins/Unit/subvdi3_test.c +++ test/builtins/Unit/subvdi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- subvdi3_test.c - Test __subvdi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/subvsi3_test.c =================================================================== --- test/builtins/Unit/subvsi3_test.c +++ test/builtins/Unit/subvsi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- subvsi3_test.c - Test __subvsi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/subvti3_test.c =================================================================== --- test/builtins/Unit/subvti3_test.c +++ test/builtins/Unit/subvti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- subvti3_test.c - Test __subvti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/trampoline_setup_test.c =================================================================== --- test/builtins/Unit/trampoline_setup_test.c +++ test/builtins/Unit/trampoline_setup_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -fnested-functions -o %t && %run %t /* ===-- trampoline_setup_test.c - Test __trampoline_setup -----------------=== * * The LLVM Compiler Infrastructure Index: test/builtins/Unit/truncdfhf2_test.c =================================================================== --- test/builtins/Unit/truncdfhf2_test.c +++ test/builtins/Unit/truncdfhf2_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===--------------- truncdfhf2_test.c - Test __truncdfhf2 ----------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/truncdfsf2_test.c =================================================================== --- test/builtins/Unit/truncdfsf2_test.c +++ test/builtins/Unit/truncdfsf2_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===--------------- truncdfsf2_test.c - Test __truncdfsf2 ----------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/truncdfsf2vfp_test.c =================================================================== --- test/builtins/Unit/truncdfsf2vfp_test.c +++ test/builtins/Unit/truncdfsf2vfp_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- truncdfsf2vfp_test.c - Test __truncdfsf2vfp -----------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/truncsfhf2_test.c =================================================================== --- test/builtins/Unit/truncsfhf2_test.c +++ test/builtins/Unit/truncsfhf2_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===--------------- truncsfhf2_test.c - Test __truncsfhf2 ----------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/trunctfdf2_test.c =================================================================== --- test/builtins/Unit/trunctfdf2_test.c +++ test/builtins/Unit/trunctfdf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-------------- trunctfdf2_test.c - Test __trunctfdf2 -----------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/trunctfsf2_test.c =================================================================== --- test/builtins/Unit/trunctfsf2_test.c +++ test/builtins/Unit/trunctfsf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===--------------- trunctfsf2_test.c - Test __trunctfsf2 ----------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ucmpdi2_test.c =================================================================== --- test/builtins/Unit/ucmpdi2_test.c +++ test/builtins/Unit/ucmpdi2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ucmpdi2_test.c - Test __ucmpdi2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/ucmpti2_test.c =================================================================== --- test/builtins/Unit/ucmpti2_test.c +++ test/builtins/Unit/ucmpti2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- ucmpti2_test.c - Test __ucmpti2 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/udivdi3_test.c =================================================================== --- test/builtins/Unit/udivdi3_test.c +++ test/builtins/Unit/udivdi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- udivdi3_test.c - Test __udivdi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/udivmoddi4_test.c =================================================================== --- test/builtins/Unit/udivmoddi4_test.c +++ test/builtins/Unit/udivmoddi4_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- udivmoddi4_test.c - Test __udivmoddi4 -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/udivmodsi4_test.c =================================================================== --- test/builtins/Unit/udivmodsi4_test.c +++ test/builtins/Unit/udivmodsi4_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- udivmodsi4_test.c - Test __udivmodsi4 -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/udivmodti4_test.c =================================================================== --- test/builtins/Unit/udivmodti4_test.c +++ test/builtins/Unit/udivmodti4_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- udivmodti4_test.c - Test __udivmodti4 -----------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/udivsi3_test.c =================================================================== --- test/builtins/Unit/udivsi3_test.c +++ test/builtins/Unit/udivsi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- udivsi3_test.c - Test __udivsi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/udivti3_test.c =================================================================== --- test/builtins/Unit/udivti3_test.c +++ test/builtins/Unit/udivti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- udivti3_test.c - Test __udivti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/umoddi3_test.c =================================================================== --- test/builtins/Unit/umoddi3_test.c +++ test/builtins/Unit/umoddi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- umoddi3_test.c - Test __umoddi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/umodsi3_test.c =================================================================== --- test/builtins/Unit/umodsi3_test.c +++ test/builtins/Unit/umodsi3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- umodsi3_test.c - Test __umodsi3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/umodti3_test.c =================================================================== --- test/builtins/Unit/umodti3_test.c +++ test/builtins/Unit/umodti3_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===-- umodti3_test.c - Test __umodti3 -----------------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/unorddf2vfp_test.c =================================================================== --- test/builtins/Unit/unorddf2vfp_test.c +++ test/builtins/Unit/unorddf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- unorddf2vfp_test.c - Test __unorddf2vfp ---------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/unordsf2vfp_test.c =================================================================== --- test/builtins/Unit/unordsf2vfp_test.c +++ test/builtins/Unit/unordsf2vfp_test.c @@ -1,3 +1,7 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t +// XFAIL: armhf-target-arch +// This test fails for armhf (see pr32261) + //===-- unordsf2vfp_test.c - Test __unordsf2vfp ---------------------------===// // // The LLVM Compiler Infrastructure Index: test/builtins/Unit/unordtf2_test.c =================================================================== --- test/builtins/Unit/unordtf2_test.c +++ test/builtins/Unit/unordtf2_test.c @@ -1,3 +1,4 @@ +// RUN: %clang_builtins %s %librt -o %t && %run %t //===------------ unordtf2_test.c - Test __unordtf2------------------------===// // // The LLVM Compiler Infrastructure