]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
h8300.c (h8300_expand_prologue): Fix stm generation for H8/S.
authorJeff Law <law@redhat.com>
Tue, 23 Oct 2018 22:51:25 +0000 (16:51 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 23 Oct 2018 22:51:25 +0000 (16:51 -0600)
* config/h8300/h8300.c (h8300_expand_prologue): Fix stm generation
for H8/S.

From-SVN: r265444

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

index f0820c086afafe805491c3f08375d23aadb34695..5fe8205a94cccbf2996e72408ca8c48af8c05e90 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-12  Jeff Law  <law@redhat.com>
+
+        * config/h8300/h8300.c (h8300_expand_prologue): Fix stm generation
+        for H8/S.
+
 2018-10-23  Richard Biener  <rguenther@suse.de>
 
        * tree-vrp.c (add_assert_info): Guard dump_printf with
index 596f2fd2cda69e7d69214d586573f21d074646cb..24b7485602f7d41b4a24c627e8053441fe2c7e0e 100644 (file)
@@ -865,15 +865,15 @@ h8300_expand_prologue (void)
          if (TARGET_H8300S)
            {
              /* See how many registers we can push at the same time.  */
-             if ((!TARGET_H8300SX || (regno & 3) == 0)
+             if ((TARGET_H8300SX || (regno & 3) == 0)
                  && ((saved_regs >> regno) & 0x0f) == 0x0f)
                n_regs = 4;
 
-             else if ((!TARGET_H8300SX || (regno & 3) == 0)
+             else if ((TARGET_H8300SX || (regno & 3) == 0)
                       && ((saved_regs >> regno) & 0x07) == 0x07)
                n_regs = 3;
 
-             else if ((!TARGET_H8300SX || (regno & 1) == 0)
+             else if ((TARGET_H8300SX || (regno & 1) == 0)
                       && ((saved_regs >> regno) & 0x03) == 0x03)
                n_regs = 2;
            }