]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix bb instructions with double-word condition on hppa.
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 31 Jul 2017 16:51:25 +0000 (12:51 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 31 Jul 2017 16:51:25 +0000 (12:51 -0400)
gas/ChangeLog
gas/config/tc-hppa.c

index 7b716c3cc3bd458922040de82eebb4cf6243b9b5..1a3439d9e12fef19180184ad7506acb11a0f4bc9 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-31  John David Anglin  <danglin@gcc.gnu.org>
+
+       * config/tc-hppa.c (pa_ip): Clear `d' bit in branch on bit instructions
+       with a double-word condition and a fixed bit position greater than 31.
+
 2017-07-28  Andrew Waterman  <andrew@sifive.com>
 
        * config/tc-riscv.c (riscv_set_arch): Handle the Q subset like
index 724b48bfbce0d102f980f4f0a3bf3f809320404f..e4ec89260772767464733e013b2018891ccfe8e9 100644 (file)
@@ -5216,9 +5216,7 @@ pa_ip (char *str)
              s = expr_end;
              CHECK_FIELD (num, 63, 0, strict);
              if (num & 0x20)
-               ;
-             else
-               opcode |= (1 << 13);
+               opcode &= ~(1 << 13);
              INSERT_FIELD_AND_CONTINUE (opcode, num & 0x1f, 21);
 
            /* Handle a 5 bit immediate at 10.  */