summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2017-09-05 17:12:12 +0000
committerdim <dim@FreeBSD.org>2017-09-05 17:12:12 +0000
commiteff5ab555a27ad534108415e8ab98b8e8a359e35 (patch)
tree283c1ba88d825cc16ea54ca58f1cfc07801df3f6 /lib
parent113c4957913d2af0e1840d9f966d8fb95df4a4fd (diff)
downloadFreeBSD-src-eff5ab555a27ad534108415e8ab98b8e8a359e35.zip
FreeBSD-src-eff5ab555a27ad534108415e8ab98b8e8a359e35.tar.gz
MFC r323014:
Follow-up to r323001: if the actually selected CPUTYPE is capable of SSE2 instructions, we can use them. Suggested by: jkim PR: 221733
Diffstat (limited to 'lib')
-rw-r--r--lib/libcompiler_rt/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc
index b7b25cb..6b467df 100644
--- a/lib/libcompiler_rt/Makefile.inc
+++ b/lib/libcompiler_rt/Makefile.inc
@@ -117,8 +117,8 @@ SRCF+= udivti3
SRCF+= umoddi3
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
OpenPOWER on IntegriCloud