svn commit: r319157 - head/lib/msun/tests

Ngie Cooper ngie at FreeBSD.org
Mon May 29 18:45:11 UTC 2017


Author: ngie
Date: Mon May 29 18:45:10 2017
New Revision: 319157
URL: https://svnweb.freebsd.org/changeset/base/319157

Log:
  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.
  
  MFC after:	3 days
  Reported by:	Coverity
  CID:		1346844
  Sponsored by:	Dell EMC Isilon

Modified:
  head/lib/msun/tests/fma_test.c

Modified: head/lib/msun/tests/fma_test.c
==============================================================================
--- head/lib/msun/tests/fma_test.c	Mon May 29 18:39:28 2017	(r319156)
+++ head/lib/msun/tests/fma_test.c	Mon May 29 18:45:10 2017	(r319157)
@@ -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);


More information about the svn-src-head mailing list