[PATCH] D28078: [tests] Add missing "int_lib.h" includes and extend guards
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 23 02:07:42 PST 2016
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28078.82402.patch
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161223/79e683a2/attachment.bin>
More information about the cfe-commits
mailing list