summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-06-01 06:35:37 +0000
committerngie <ngie@FreeBSD.org>2017-06-01 06:35:37 +0000
commite5af49e889229028aa3fe545c6c2eb00df0da8ae (patch)
tree85e2b49ac7c6596f9b57b9b479e7d527a5ac37e7
parent6b1f5a4b53f7b898cede12f6c980dea7c591f1e5 (diff)
downloadFreeBSD-src-e5af49e889229028aa3fe545c6c2eb00df0da8ae.zip
FreeBSD-src-e5af49e889229028aa3fe545c6c2eb00df0da8ae.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
-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 1b9a490..8b65466 100644
--- a/lib/msun/tests/fma_test.c
+++ b/lib/msun/tests/fma_test.c
@@ -498,11 +498,12 @@ main(void)
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