i386.md (ashrsi3_31): Allow cltd when optimizing for size even on !TARGET_USE_CLTD...
authorJan Hubicka <hubicka@freesoft.cz>
Fri, 19 Nov 1999 20:12:14 +0000 (21:12 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 19 Nov 1999 20:12:14 +0000 (20:12 +0000)
* i386.md (ashrsi3_31): Allow cltd when optimizing for size even
on !TARGET_USE_CLTD CPUs.

From-SVN: r30592

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

index db988a4d73ab10bd9ce712756dee7cf307b3ad78..53d964e1bf8e88c4356329249125fef1e1a1d3e0 100644 (file)
@@ -1,3 +1,8 @@
+Fri Nov 19 06:32:19 CET 1999  Jan Hubicka  <hubicka@freesoft.cz>
+
+       * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
+       on !TARGET_USE_CLTD CPUs.
+
 Fri Nov 19 10:41:15 GMT 1999  Nathan Sidwell  <nathan@acm.org>
 
        * extend.texi: Document C++ restricted pointers and references. 
index eb082278d7e1ec306a6c7cdf1708bbb1dcd65c82..b5f3ee5cfae53655aad5dff2e4eb37c811307d5f 100644 (file)
        (ashiftrt:SI (match_operand:SI 1 "nonimmediate_operand" "*a,0")
                     (match_operand:SI 2 "const_int_operand" "i,i")))
    (clobber (reg:CC 17))]
-  "INTVAL (operands[2]) == 31 && TARGET_USE_CLTD"
+  "INTVAL (operands[2]) == 31 && (TARGET_USE_CLTD || optimize_size)"
   "@
    {cltd|cdq}
    sar{l}\\t{%2, %0|%0, %2}"