ia32: femms requires 3DNow!.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Dec 2012 21:56:24 +0000 (22:56 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Dec 2012 21:56:24 +0000 (22:56 +0100)
ir/be/ia32/ia32_architecture.c

index 5db87a7..82bade5 100644 (file)
@@ -874,8 +874,7 @@ void ia32_setup_cg_config(void)
        c->use_softfloat        = (fpu_arch & IA32_FPU_ARCH_SOFTFLOAT) != 0;
        c->use_sse2             = (fpu_arch & IA32_FPU_ARCH_SSE2) != 0 && flags(arch, arch_feature_sse2);
        c->use_ffreep           = flags(opt_arch, arch_athlon_plus);
-       c->use_femms            = flags(opt_arch, arch_athlon_plus) &&
-               flags(arch, arch_feature_mmx | arch_all_amd);
+       c->use_femms            = flags(opt_arch, arch_athlon_plus) && flags(arch, arch_feature_3DNow);
        c->use_fucomi           = flags(arch, arch_feature_p6_insn);
        c->use_cmov             = flags(arch, arch_feature_cmov);
        c->use_modeD_moves      = flags(opt_arch, arch_generic32 | arch_athlon_plus | arch_netburst | arch_nocona | arch_core2 | arch_ppro | arch_geode);