[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: How to do 32-bit build in AMD64 chroot -- problem with SSE instructions?



On Sun, 12 Dec 2021 at 12:56:42 -0600, Steven Robbins wrote:
> Can you (or anyone) confirm whether the Debian i386 build SHOULD or SHOULD NOT 
> enable SSE of any flavour?

Our current i386 baseline does not have SSE, so i386 packages should
not enable SSE in general:

"i686 since Debian 9 'stretch' (gcc-6 6.1.1-1). There's no MMX nor SSE."
— https://wiki.debian.org/ArchitectureSpecificsMemo#Architecture_baselines

It is OK to have optional use of SSE that is gated by a CPUID check
(I think ioquake3 does this, for example), as long as there is an i387
fallback path that will work correctly on older CPUs where the runtime
check does not detect SSE capabilities.

It is also always OK to use SSE or SSE2 in amd64 binaries (but SSE3
or later is in the same situation as MMX/SSE/SSE2 on i386, and needs a
runtime check).

> enable SSE of any flavour?  I've googled numerous times but can't seem to
> find this kind of detailed port information.

https://wiki.debian.org/ArchitectureSpecificsMemo is a useful reference for
lots of architecture details.

    smcv


Reply to: