pa.md (indexed loads): Disable if TARGET_DISABLE_INDEXING.
authorJeff Law <law@gcc.gnu.org>
Wed, 6 Jan 1993 23:10:44 +0000 (16:10 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 6 Jan 1993 23:10:44 +0000 (16:10 -0700)
* pa.md (indexed loads): Disable if TARGET_DISABLE_INDEXING.
(mulsi3, xmpyu): Disable xmpyu if TARGET_DISABLE_FPREGS.

From-SVN: r3130

gcc/config/pa/pa.md

index e8ea8124bf3ca3fc5ba37c150aebc6021a2efe60..c848668a638f3eddd821fa39aadbd1f5b17ef419 100644 (file)
        (mem:SI (plus:SI (mult:SI (match_operand:SI 1 "register_operand" "r")
                                  (const_int 4))
                         (match_operand:SI 2 "register_operand" "r"))))]
-  ""
+  "! TARGET_DISABLE_INDEXING"
   "ldwx,s %1(0,%2),%0"
   [(set_attr "type" "load")
    (set_attr "length" "1")])
 ;      (plus:SI (mult:SI (match_operand:SI 2 "register_operand" "r")
 ;                        (const_int 4))
 ;               (match_dup 1)))]
-;  ""
+;  "! TARGET_DISABLE_INDEXING"
 ;  "ldwx,sm %2(0,%1),%0"
 ;  [(set_attr "type" "load")
 ;   (set_attr "length" "1")])
        (mem:HI (plus:SI (mult:SI (match_operand:SI 2 "register_operand" "r")
                                  (const_int 2))
                         (match_operand:SI 1 "register_operand" "r"))))]
-  ""
+  "! TARGET_DISABLE_INDEXING"
   "ldhx,s %2(0,%1),%0"
   [(set_attr "type" "load")
    (set_attr "length" "1")])
 ;      (plus:SI (mult:SI (match_operand:SI 2 "register_operand" "r")
 ;                        (const_int 2))
 ;               (match_dup 1)))]
-;  ""
+;  "! TARGET_DISABLE_INDEXING"
 ;  "ldhx,sm %2(0,%1),%0"
 ;  [(set_attr "type" "load")
 ;   (set_attr "length" "1")])
   ""
   "
 {
-  if (TARGET_SNAKE)
+  if (TARGET_SNAKE && ! TARGET_DISABLE_FPREGS)
     {
       rtx scratch = gen_reg_rtx (DImode);
       operands[1] = force_reg (SImode, operands[1]);
   [(set (match_operand:DI 0 "register_operand" "=x")
        (mult:DI (zero_extend:DI (match_operand:SI 1 "register_operand" "x"))
                 (zero_extend:DI (match_operand:SI 2 "register_operand" "x"))))]
-  "TARGET_SNAKE"
+  "TARGET_SNAKE && ! TARGET_DISABLE_FPREGS"
   "xmpyu %1,%2,%0"
   [(set_attr "type" "fpmul")])