[compiler-rt] r290422 - [tests] Add missing "int_lib.h" includes and extend guards

Michal Gorny via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 23 03:18:24 PST 2016


Author: mgorny
Date: Fri Dec 23 05:18:24 2016
New Revision: 290422

URL: http://llvm.org/viewvc/llvm-project?rev=290422&view=rev
Log:
[tests] Add missing "int_lib.h" includes and extend guards

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.

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

Modified:
    compiler-rt/trunk/test/builtins/Unit/negdf2vfp_test.c
    compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c

Modified: compiler-rt/trunk/test/builtins/Unit/negdf2vfp_test.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/builtins/Unit/negdf2vfp_test.c?rev=290422&r1=290421&r2=290422&view=diff
==============================================================================
--- compiler-rt/trunk/test/builtins/Unit/negdf2vfp_test.c (original)
+++ compiler-rt/trunk/test/builtins/Unit/negdf2vfp_test.c Fri Dec 23 05:18:24 2016
@@ -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);

Modified: compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c?rev=290422&r1=290421&r2=290422&view=diff
==============================================================================
--- compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c (original)
+++ compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c Fri Dec 23 05:18:24 2016
@@ -11,6 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "int_lib.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>




More information about the llvm-commits mailing list