summaryrefslogtreecommitdiff
path: root/lib/libcompiler_rt
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-08-30 07:05:29 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-08-30 07:05:29 +0000
commit2b12718be6bf382e36850a71bab54700bca69588 (patch)
treedb91d089568c4578eacb0780373ce07608c73520 /lib/libcompiler_rt
parent89fdc67c9c8369ecb5b2430b2ff95f4abc621503 (diff)
downloadsrc-test-2b12718be6bf382e36850a71bab54700bca69588.tar.gz
src-test-2b12718be6bf382e36850a71bab54700bca69588.zip
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
Notes
Notes: svn path=/head/; revision=323014
Diffstat (limited to 'lib/libcompiler_rt')
-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 98ba45b35e685..0d0d8e9514512 100644
--- a/lib/libcompiler_rt/Makefile.inc
+++ b/lib/libcompiler_rt/Makefile.inc
@@ -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