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
This commit is contained in:
Dimitry Andric 2017-08-30 07:05:29 +00:00
parent 89fdc67c9c
commit 2b12718be6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323014

View file

@ -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