]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/43264 (Arithmetic expression error)
authorJeff Law <law@redhat.com>
Fri, 6 Feb 2015 05:34:00 +0000 (22:34 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 6 Feb 2015 05:34:00 +0000 (22:34 -0700)
PR target/43264
* config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
24 to 28 bits for the H8/300.

From-SVN: r220471

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 90cee313a262ddd5f998ecdc96512ee5caaba9eb..2bbfeb3fdd14dc4a9e0e909efb401722ed5304b5 100644 (file)
@@ -1,3 +1,9 @@
+2015-02-05  Jeff Law  <law@redhat.com>
+
+       PR target/43264
+       * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
+       24 to 28 bits for the H8/300.
+
 2015-02-06  Alan Modra  <amodra@gmail.com>
 
        PR target/64876
index 5968e5572b948316ea6c5cd3f2e9b23ecf4686ee..4bd4787fcdca46597b67918180a8d634ce1c812c 100644 (file)
@@ -4384,7 +4384,7 @@ get_shift_alg (enum shift_type shift_type, enum shift_mode shift_mode,
              info->cc_inline = CC_SET_ZNV;
              goto end;
            case SHIFT_ASHIFTRT:
-             info->special = "mov.b\t%z0,%w0\n\tbld\t#7,%w0\n\tsubx\t%x0,%x0\n\tsubx\t%x0,%x0\n\tsubx\t%x0,%x0";
+             info->special = "mov.b\t%z0,%w0\n\tbld\t#7,%w0\n\tsubx\t%x0,%x0\n\tsubx\t%y0,%y0\n\tsubx\t%z0,%z0";
              info->shift1  = "shar.b\t%w0";
              info->cc_inline = CC_SET_ZNV;
              goto end;