[PATCH] D28078: [compiler-rt] [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 03:29:01 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL290422: [tests] Add missing "int_lib.h" includes and extend guards (authored by mgorny).

Changed prior to commit:
  https://reviews.llvm.org/D28078?vs=82402&id=82407#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D28078

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


Index: compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c
===================================================================
--- compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c
+++ compiler-rt/trunk/test/builtins/Unit/subdf3vfp_test.c
@@ -11,6 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "int_lib.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
Index: compiler-rt/trunk/test/builtins/Unit/negdf2vfp_test.c
===================================================================
--- compiler-rt/trunk/test/builtins/Unit/negdf2vfp_test.c
+++ compiler-rt/trunk/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.82407.patch
Type: text/x-patch
Size: 1025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161223/ca998365/attachment.bin>


More information about the cfe-commits mailing list