]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(zero_extendqidi2, zero_extendhidi2): Use rldicl instruction.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 27 May 1994 22:17:52 +0000 (18:17 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 27 May 1994 22:17:52 +0000 (18:17 -0400)
From-SVN: r7376

gcc/config/rs6000/rs6000.md

index aeaef4d589f461398c2047b8b6bb629fdb743669..63ac41bc8b2f392076ee1778421583c7787d0beb 100644 (file)
   "TARGET_POWERPC64"
   "@
    lbz%U1%X1 %0,%1
-   andi %0,%1,0xff"
+   rldicl %0,%1,0,56"
   [(set_attr "type" "load,*")])
 
 (define_insn ""
                    (const_int 0)))
    (clobber (match_scratch:DI 2 "=r"))]
   "TARGET_POWERPC64"
-  "andi. %2,%1,0xff"
+  "rldicl. %2,%1,0,56"
   [(set_attr "type" "compare")])
 
 (define_insn ""
    (set (match_operand:DI 0 "gpc_reg_operand" "=r")
        (zero_extend:DI (match_dup 1)))]
   "TARGET_POWERPC64"
-  "andi. %0,%1,0xff"
+  "rldicl. %0,%1,0,56"
   [(set_attr "type" "compare")])
 
 (define_expand "extendqidi2"
   "TARGET_POWERPC64"
   "@
    lhz%U1%X1 %0,%1
-   andi %0,%1,0xffff"
+   rldicl %0,%1,0,48"
   [(set_attr "type" "load,*")])
 
 (define_insn ""
                    (const_int 0)))
    (clobber (match_scratch:DI 2 "=r"))]
   "TARGET_POWERPC64"
-  "andi. %2,%1,0xffff"
+  "rldicl. %2,%1,0,48"
   [(set_attr "type" "compare")])
 
 (define_insn ""
    (set (match_operand:DI 0 "gpc_reg_operand" "=r")
        (zero_extend:DI (match_dup 1)))]
   "TARGET_POWERPC64"
-  "andi. %0,%1,0xffff"
+  "rldicl. %0,%1,0,48"
   [(set_attr "type" "compare")])
 
 (define_expand "extendhidi2"