From 523c6e774423ff504f95cab8cd9be8c66564fcb6 Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 27 Dec 2015 21:53:21 +0000 Subject: [PATCH] MFstable/10 r292769,r292799: r292769: MFC r292493: Don't run test-fma on i386 It completely fails all assertions on i386 on both stable/9 and stable/10 PR: 205448 X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division r292799: MFC r292492,r292495,r292647: r292492: - Use nitems instead of handrolling the macro - Use a separate variable for tracking the testcase count instead of hardcoding the offset for the testcases Sponsored by: EMC / Isilon Storage Division r292495: Initialize j so it doesn't print out a garbage index Use it consistently instead of i in the first loop Sponsored by: EMC / Isilon Storage Division r292647: Use j instead of a hardcoded index (9) and increment it after running the NaNs testcases Pointyhat to: ngie Sponsored by: EMC / Isilon Storage Division git-svn-id: svn://svn.freebsd.org/base/stable/9@292805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- tools/regression/lib/msun/test-fma.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/regression/lib/msun/test-fma.c b/tools/regression/lib/msun/test-fma.c index bfdf89c89..26046ab0a 100644 --- a/tools/regression/lib/msun/test-fma.c +++ b/tools/regression/lib/msun/test-fma.c @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #define ALL_STD_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \ FE_OVERFLOW | FE_UNDERFLOW) @@ -423,6 +424,10 @@ main(int argc, char *argv[]) j = 1; +#if defined(__i386__) + printf("1..0 # SKIP all testcases fail on i386\n"); + exit(0); +#endif printf("1..19\n"); for (i = 0; i < nitems(rmodes); i++, j++) { -- 2.45.0