]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/h8300/h8300.md (a peephole2): Tighten the condition.
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 2 Apr 2003 21:43:35 +0000 (21:43 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 2 Apr 2003 21:43:35 +0000 (21:43 +0000)
From-SVN: r65174

gcc/ChangeLog
gcc/config/h8300/h8300.md

index d7f2b9556f805d46237b1a3bad5723ffab07d72b..bfbcc946dec3b5882848e2fdbb7871214ae9fe2f 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (a peephole2): Tighten the condition.
+
 2003-04-02  Richard Henderson  <rth@redhat.com>
 
        * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
index 4b545431b4589880d5a61d5ba4284856debed4ef..a4c76f97ba789ce73b06c6dc108f60eff287d540 100644 (file)
                  gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx));
    operands[5] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
 
-;; Transform A <= 1 to (A & 0xfffffffe) == 0.
+;; Transform
+;;
+;;     cmp.l   #15,er0
+;;     bhi     .L1
+;;
+;; into
+;;
+;;     and     #240,r0l
+;;     mov.l   er0,er0
+;;     bne     .L1
 
 (define_peephole2
   [(set (cc0)
                      (pc)))]
   "(TARGET_H8300H || TARGET_H8300S)
    && peep2_reg_dead_p (1, operands[0])
-   && (INTVAL (operands[1]) == 1
-       || INTVAL (operands[1]) == 3
+   && ((TARGET_H8300H && INTVAL (operands[1]) == 3)
        || INTVAL (operands[1]) == 7
        || INTVAL (operands[1]) == 15
        || INTVAL (operands[1]) == 31