Author: dim
Date: Wed Aug 30 07:05:29 2017
New Revision: 323014
URL: https://svnweb.freebsd.org/changeset/base/323014

Log:
  Follow-up to r323001: if the actually selected CPUTYPE is capable of
  SSE2 instructions, we can use them.
  
  Suggested by: jkim
  PR:           221733
  MFC after:    1 week
  X-MFC-With:   r323001

Modified:
  head/lib/libcompiler_rt/Makefile.inc

Modified: head/lib/libcompiler_rt/Makefile.inc
==============================================================================
--- head/lib/libcompiler_rt/Makefile.inc        Wed Aug 30 06:28:09 2017        
(r323013)
+++ head/lib/libcompiler_rt/Makefile.inc        Wed Aug 30 07:05:29 2017        
(r323014)
@@ -122,8 +122,8 @@ SRCF+=              umoddi3
 SRCF+=         umodsi3
 SRCF+=         umodti3
 
-# Avoid using SSE2 instructions on i386.
-.if ${MACHINE_CPUARCH} == "i386"
+# Avoid using SSE2 instructions on i386, if unsupported.
+.if ${MACHINE_CPUARCH} == "i386" && empty(MACHINE_CPU:Msse2)
 SRCS+=         floatdidf.c
 SRCS+=         floatdisf.c
 SRCS+=         floatdixf.c
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to