summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-06-01 06:35:40 +0000
committerngie <ngie@FreeBSD.org>2017-06-01 06:35:40 +0000
commit23bea16699cabe21283f21c13b4fb6d0586a8024 (patch)
tree09e1c8cf7e6d6eb933185fbfd7ce7e613b84c57e /lib
parentf8ea2d8ceade33a331f7085786582b1d070b3225 (diff)
downloadFreeBSD-src-23bea16699cabe21283f21c13b4fb6d0586a8024.zip
FreeBSD-src-23bea16699cabe21283f21c13b4fb6d0586a8024.tar.gz
MFC r319157:
fma_test: mute a warning about unreachable code on amd64 by restructuring the #ifdef block to only handle the rest of the logic in the loop in the #else case. CID: 1346844
Diffstat (limited to 'lib')
-rw-r--r--lib/msun/tests/fma_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/msun/tests/fma_test.c b/lib/msun/tests/fma_test.c
index af7910e..acaa9eb 100644
--- a/lib/msun/tests/fma_test.c
+++ b/lib/msun/tests/fma_test.c
@@ -498,11 +498,12 @@ main(int argc, char *argv[])
printf("ok %d # SKIP testcase fails assertion on "
"amd64\n", j);
continue;
-#endif
+#else
printf("rmode = %d\n", rmodes[i]);
fesetround(rmodes[i]);
test_infinities();
printf("ok %d - fma infinities\n", j);
+#endif
}
fesetround(FE_TONEAREST);
OpenPOWER on IntegriCloud