summaryrefslogtreecommitdiff
path: root/test/builtins
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2016-12-23 11:18:24 +0000
committerMichal Gorny <mgorny@gentoo.org>2016-12-23 11:18:24 +0000
commita58ad74ac26944f208dbb3ccb5db82bb64614b03 (patch)
tree90768d867964cab90354cd765e17ad899d28ec41 /test/builtins
parent9823a0b7e3a3a94acce94f9a07199f61e9a7b5b8 (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/builtins')
-rw-r--r--test/builtins/Unit/negdf2vfp_test.c3
-rw-r--r--test/builtins/Unit/subdf3vfp_test.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/test/builtins/Unit/negdf2vfp_test.c b/test/builtins/Unit/negdf2vfp_test.c
index f0e66777e..f673b92cf 100644
--- a/test/builtins/Unit/negdf2vfp_test.c
+++ b/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);
diff --git a/test/builtins/Unit/subdf3vfp_test.c b/test/builtins/Unit/subdf3vfp_test.c
index 5d5d71170..6e8d5a1aa 100644
--- a/test/builtins/Unit/subdf3vfp_test.c
+++ b/test/builtins/Unit/subdf3vfp_test.c
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
+#include "int_lib.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>