[Builtin] Unxfail tests for armhf

Summary:
Originally, a few tests fail for armhf target due to:
1) COMPILER_RT_ARMHF_TARGET was not set when building the lib
2) COMPILER_RT_ABI should not be defined as `__attribute__((pcs("aapcs")))` for armhf when building for both lib and tests

This address https://bugs.llvm.org//show_bug.cgi?id=32261

mulsc3_test.c is a newly exposed issue, which will be addressed separately.

Reviewers: rengolin, compnerd

Reviewed By: compnerd

Subscribers: aemerson, llvm-commits, mgorny

Differential Revision: https://reviews.llvm.org/D31448

llvm-svn: 298974
This commit is contained in:
Weiming Zhao 2017-03-29 03:36:46 +00:00
parent fb0f093e88
commit d8ca74176e
26 changed files with 13 additions and 46 deletions

View File

@ -499,7 +499,7 @@ else ()
# Needed for clear_cache on debug mode, due to r7's usage in inline asm.
# Release mode already sets it via -O2/3, Debug mode doesn't.
if (${arch} STREQUAL "armhf")
list(APPEND BUILTIN_CFLAGS -fomit-frame-pointer)
list(APPEND BUILTIN_CFLAGS -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
endif()
add_compiler_rt_runtime(clang_rt.builtins

View File

@ -32,7 +32,11 @@
#if __ARM_EABI__
# define ARM_EABI_FNALIAS(aeabi_name, name) \
void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
# ifdef COMPILER_RT_ARMHF_TARGET
# define COMPILER_RT_ABI
# else
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
# endif
#else
# define ARM_EABI_FNALIAS(aeabi_name, name)
# define COMPILER_RT_ABI

View File

@ -19,6 +19,11 @@ foreach(arch ${BUILTIN_SUPPORTED_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)
if (${arch} STREQUAL "armhf")
list(APPEND BUILTINS_TEST_TARGET_CFLAGS -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
string(REPLACE ";" " " BUILTINS_TEST_TARGET_CFLAGS "${BUILTINS_TEST_TARGET_CFLAGS}")
endif()
string(TOUPPER ${arch} ARCH_UPPER_CASE)
set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)
configure_lit_site_cfg(

View File

@ -1,6 +1,4 @@
// 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 -------------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 -------------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 -----------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 -----------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 -----------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,4 +1,6 @@
// RUN: %clang_builtins %s %librt -lm -o %t && %run %t
// XFAIL: armhf-target-arch
// See pr32261
//===-- mulsc3_test.c - Test __mulsc3 -------------------------------------===//
//
// The LLVM Compiler Infrastructure

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ----------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ----------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ----------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------===//
//

View File

@ -1,6 +1,4 @@
// 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 ---------------------------===//
//