From c074d7402137a7aecd560091686f56add84c1353 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 7 Jun 2011 14:53:58 +0000 Subject: [PATCH] Optimize AVX check in *movsf_internal. 2011-06-07 H.J. Lu * config/i386/i386.md (*movsf_internal): Optimize AVX check. From-SVN: r174750 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/i386.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1e19906d9d1..f823caf8410 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-06-07 H.J. Lu + + * config/i386/i386.md (*movsf_internal): Optimize AVX check. + 2011-06-07 Sergey Grechanik * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 58de87b1752..3e18e7a2af1 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -3207,11 +3207,11 @@ case 6: if (get_attr_mode (insn) == MODE_V4SF) return "%vmovaps\t{%1, %0|%0, %1}"; + if (TARGET_AVX) + return "vmovss\t{%1, %0, %0|%0, %0, %1}"; case 7: case 8: - if (TARGET_AVX && REG_P (operands[0]) && REG_P (operands[1])) - return "vmovss\t{%1, %0, %0|%0, %0, %1}"; return "%vmovss\t{%1, %0|%0, %1}"; case 9: -- 2.30.2