mgorny created this revision. mgorny added reviewers: dschuff, kledzik, rengolin. mgorny added a subscriber: cfe-commits. Herald added a subscriber: aemerson.
Fix missing "int_lib.h" includes in ARM negdf2vfp and subdf3vfp tests. Additionally, extend the __arm__ guard to cover the builtin definition in the former. This is mostly intended to prevent build failures and allow those tests to be properly skipped on other targets. https://reviews.llvm.org/D28078 Files: test/builtins/Unit/negdf2vfp_test.c test/builtins/Unit/subdf3vfp_test.c Index: test/builtins/Unit/subdf3vfp_test.c =================================================================== --- test/builtins/Unit/subdf3vfp_test.c +++ test/builtins/Unit/subdf3vfp_test.c @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#include "int_lib.h" #include <stdio.h> #include <stdlib.h> #include <math.h> Index: test/builtins/Unit/negdf2vfp_test.c =================================================================== --- test/builtins/Unit/negdf2vfp_test.c +++ test/builtins/Unit/negdf2vfp_test.c @@ -11,14 +11,15 @@ // //===----------------------------------------------------------------------===// +#include "int_lib.h" #include <stdio.h> #include <stdlib.h> #include <math.h> +#if __arm__ extern COMPILER_RT_ABI double __negdf2vfp(double a); -#if __arm__ int test__negdf2vfp(double a) { double actual = __negdf2vfp(a);
Index: test/builtins/Unit/subdf3vfp_test.c =================================================================== --- test/builtins/Unit/subdf3vfp_test.c +++ test/builtins/Unit/subdf3vfp_test.c @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#include "int_lib.h" #include <stdio.h> #include <stdlib.h> #include <math.h> Index: test/builtins/Unit/negdf2vfp_test.c =================================================================== --- test/builtins/Unit/negdf2vfp_test.c +++ test/builtins/Unit/negdf2vfp_test.c @@ -11,14 +11,15 @@ // //===----------------------------------------------------------------------===// +#include "int_lib.h" #include <stdio.h> #include <stdlib.h> #include <math.h> +#if __arm__ extern COMPILER_RT_ABI double __negdf2vfp(double a); -#if __arm__ int test__negdf2vfp(double a) { double actual = __negdf2vfp(a);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits