svn commit: r319379 - stable/10/lib/msun/tests

Ngie Cooper ngie at FreeBSD.org
Thu Jun 1 06:35:41 UTC 2017


Author: ngie
Date: Thu Jun  1 06:35:40 2017
New Revision: 319379
URL: https://svnweb.freebsd.org/changeset/base/319379

Log:
  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

Modified:
  stable/10/lib/msun/tests/fma_test.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/msun/tests/fma_test.c
==============================================================================
--- stable/10/lib/msun/tests/fma_test.c	Thu Jun  1 06:35:37 2017	(r319378)
+++ stable/10/lib/msun/tests/fma_test.c	Thu Jun  1 06:35:40 2017	(r319379)
@@ -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);


More information about the svn-src-all mailing list