From: Kazu Hirata Date: Fri, 6 Jun 2003 05:28:07 +0000 (+0000) Subject: h8300.c (get_shift_alg): Correct the syntax of rotxl. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a35abc3ca3026d8140aadfee91aaca6572ab32e7;p=gcc.git h8300.c (get_shift_alg): Correct the syntax of rotxl. * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl. * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise. From-SVN: r67530 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d886022464e..c63338ddbe9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2003-06-06 Kazu Hirata + + * config/h8300/h8300.c (get_shift_alg): Correct the syntax of + rotxl. + * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): + Likewise. + 2003-06-05 Kelley Cook PR optimization/4490 diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 1639fbfc6b9..7ab530dbc8e 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -3056,10 +3056,10 @@ get_shift_alg (shift_type, shift_mode, count, info) case SHIFT_ASHIFT: abort (); case SHIFT_LSHIFTRT: - info->special = "bld\t#7,%z0\n\tmov.w\t%e0,%f0\n\txor\t%y0,%y0\n\txor\t%z0,%z0\n\trotxl\t%w0,%w0\n\trotxl\t%x0,%x0\n\trotxl\t%y0,%y0"; + info->special = "bld\t#7,%z0\n\tmov.w\t%e0,%f0\n\txor\t%y0,%y0\n\txor\t%z0,%z0\n\trotxl\t%w0\n\trotxl\t%x0\n\trotxl\t%y0"; goto end; case SHIFT_ASHIFTRT: - info->special = "bld\t#7,%z0\n\tmov.w\t%e0,%f0\n\trotxl\t%w0,%w0\n\trotxl\t%x0,%x0\n\tsubx\t%y0,%y0\n\tsubx\t%z0,%z0"; + info->special = "bld\t#7,%z0\n\tmov.w\t%e0,%f0\n\trotxl\t%w0\n\trotxl\t%x0\n\tsubx\t%y0,%y0\n\tsubx\t%z0,%z0"; goto end; } } diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 89014dd9e92..217c3155d91 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -2856,7 +2856,7 @@ (const_int 16)) (zero_extend:SI (match_operand:HI 2 "register_operand" "0"))))] "TARGET_H8300H || TARGET_H8300S" - "add.w\\t%e1,%f0\;xor.w\\t%e0,%e0\;rotxl.w\\t%e0,%e0" + "add.w\\t%e1,%f0\;xor.w\\t%e0,%e0\;rotxl.w\\t%e0" [(set_attr "cc" "clobber") (set_attr "length" "6")])