Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2017 07:05:29 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323014 - head/lib/libcompiler_rt
Message-ID:  <201708300705.v7U75TP4082299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708300705.v7U75TP4082299>