From: Richard Kenner Date: Fri, 27 May 1994 22:17:52 +0000 (-0400) Subject: (zero_extendqidi2, zero_extendhidi2): Use rldicl instruction. X-Git-Tag: misc/cutover-egcs-0~6567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4371f8afceeb77c398366b1ec3c26c43e9185673;p=thirdparty%2Fgcc.git (zero_extendqidi2, zero_extendhidi2): Use rldicl instruction. From-SVN: r7376 --- diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index aeaef4d589f4..63ac41bc8b2f 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -265,7 +265,7 @@ "TARGET_POWERPC64" "@ lbz%U1%X1 %0,%1 - andi %0,%1,0xff" + rldicl %0,%1,0,56" [(set_attr "type" "load,*")]) (define_insn "" @@ -274,7 +274,7 @@ (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 "" @@ -284,7 +284,7 @@ (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" @@ -333,7 +333,7 @@ "TARGET_POWERPC64" "@ lhz%U1%X1 %0,%1 - andi %0,%1,0xffff" + rldicl %0,%1,0,48" [(set_attr "type" "load,*")]) (define_insn "" @@ -342,7 +342,7 @@ (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 "" @@ -352,7 +352,7 @@ (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"