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

Bug#320726: gcc-4.0: mmx, sse asm need -mmmx, -msse



Package: gcc-4.0
Version: 4.0.1-3
Severity: normal

Hi,

gcc-4.0 need -mmmx, -msee, ... flags in order to compil optimized
assembler. But this break runtime decision of the optimisation according
to the cpu capcibility : you can't mix in the same file generic code, and
runtime selected code.

Attached an example where -mmmx is needed.

Matthieu


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.12
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages gcc-4.0 depends on:
ii  binutils                    2.16.1-2     The GNU assembler, linker and bina
ii  cpp-4.0                     4.0.1-3      The GNU C preprocessor
ii  gcc-4.0-base                4.0.1-3      The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgcc1                     1:4.0.1-3    GCC support library

Versions of packages gcc-4.0 recommends:
ii  libc6-dev                   2.3.2.ds1-22 GNU C Library: Development Librari
pn  libmudflap0-dev             <none>       (no description available)

-- no debconf information
extern int mmx;
int main() {
	if (mmx) {
__asm__ __volatile__ (
	"pxor %%mm4, %%mm4\n\t"
	: : : "%mm4"
		);
	}
	else
		;/* generic code */
}

Reply to: