summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2013-01-26 13:23:37 +0100
committerTorbjorn Granlund <tege@gmplib.org>2013-01-26 13:23:37 +0100
commitb518c0d004f54d3aa93038e076235adb06326c37 (patch)
treeb70d655a3b249d89181619c3799ba28d42ddddfb
parentc53d3da3e81ef02797fe251e754db8dbe6397956 (diff)
downloadgmp-b518c0d004f54d3aa93038e076235adb06326c37.tar.gz
Set things up to always test library logops, not gmp-impl.h's inlined variants.
-rw-r--r--tests/mpn/logic.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/mpn/logic.c b/tests/mpn/logic.c
index 7fdddf7ce..520700623 100644
--- a/tests/mpn/logic.c
+++ b/tests/mpn/logic.c
@@ -1,7 +1,7 @@
/* Test mpn_and, mpn_ior, mpn_xor, mpn_andn, mpn_iorn, mpn_xnor, mpn_nand, and
mpn_nior.
-Copyright 2011, 2012 Free Software Foundation, Inc.
+Copyright 2011, 2012, 2013 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
@@ -22,10 +22,24 @@ the GNU MP Library test suite. If not, see http://www.gnu.org/licenses/. */
#include <stdlib.h>
#include <stdio.h>
+/* Fake native prevalence of the tested operations, so that we actually test
+ the compiled functions, i.., the ones which users will reach. The inlined
+ variants will be tested through tests/mpz/logic.c. */
+#define HAVE_NATIVE_mpn_com 1
+#define HAVE_NATIVE_mpn_and_n 1
+#define HAVE_NATIVE_mpn_andn_n 1
+#define HAVE_NATIVE_mpn_nand_n 1
+#define HAVE_NATIVE_mpn_ior_n 1
+#define HAVE_NATIVE_mpn_iorn_n 1
+#define HAVE_NATIVE_mpn_nior_n 1
+#define HAVE_NATIVE_mpn_xor_n 1
+#define HAVE_NATIVE_mpn_xnor_n 1
+
#include "gmp.h"
#include "gmp-impl.h"
#include "tests.h"
+
void
check_one (mp_srcptr refp, mp_srcptr rp, mp_srcptr ap, mp_srcptr bp, mp_size_t n, char *funcname)
{