]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/i386/i386.c (*movdf_internal_rex64): Remove
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 May 2012 18:48:31 +0000 (18:48 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 May 2012 18:48:31 +0000 (18:48 +0000)
TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
Calculate "mode" attribute according to
TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
(*movdf_internal): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187348 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.md

index 0d17b2a2e03e11b180e550d8e6cf26ec2f931ea8..d872972bddbd7bd8cd046b68eeafbb0a306f1495 100644 (file)
@@ -1,3 +1,11 @@
+2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (*movdf_internal_rex64): Remove
+       TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
+       Calculate "mode" attribute according to
+       TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
+       (*movdf_internal): Ditto.
+
 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/44141
index 80f1ec483cf99fdbe4bd2451e795e06a60d87757..c8255790146e84b48f1b2d8ed5b8b85a70acc27d 100644 (file)
       switch (get_attr_mode (insn))
        {
        case MODE_V2DF:
-         if (!TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL)
-           return "%vmovapd\t{%1, %0|%0, %1}";
+         return "%vmovapd\t{%1, %0|%0, %1}";
        case MODE_V4SF:
          return "%vmovaps\t{%1, %0|%0, %1}";
 
                  movaps encodes one byte shorter.  */
               (eq_attr "alternative" "8")
                 (cond
-                  [(match_test "optimize_function_for_size_p (cfun)")
+                  [(ior (match_test "TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL")
+                        (match_test "optimize_function_for_size_p (cfun)"))
                      (const_string "V4SF")
                    (match_test "TARGET_SSE_PARTIAL_REG_DEPENDENCY")
                      (const_string "V2DF")
       switch (get_attr_mode (insn))
        {
        case MODE_V2DF:
-         if (!TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL)
-           return "%vmovapd\t{%1, %0|%0, %1}";
+         return "%vmovapd\t{%1, %0|%0, %1}";
        case MODE_V4SF:
          return "%vmovaps\t{%1, %0|%0, %1}";
 
                  movaps encodes one byte shorter.  */
               (eq_attr "alternative" "6,10")
                 (cond
-                  [(match_test "optimize_function_for_size_p (cfun)")
+                  [(ior (match_test "TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL")
+                        (match_test "optimize_function_for_size_p (cfun)"))
                      (const_string "V4SF")
                    (match_test "TARGET_SSE_PARTIAL_REG_DEPENDENCY")
                      (const_string "V2DF")