Fix undefined compilation behaviour shifting a value into the sign bit of a signed...
authorMichael McConville <mmcco@mykolab.com>
Mon, 1 Feb 2016 10:41:32 +0000 (10:41 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 1 Feb 2016 10:41:32 +0000 (10:41 +0000)
* cgen-dis.c (count_decodable_bits): Use unsigned value for mask
test bit.

opcodes/ChangeLog
opcodes/cgen-dis.c

index 130a4a7032cc7a258949c65d7f237e873b6de7d1..505b5e7cc08e203f22f474db7b65b3518d354d9e 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-01  Michael McConville  <mmcco@mykolab.com>
+
+       * cgen-dis.c (count_decodable_bits): Use unsigned value for mask
+       test bit.
+
 2016-01-25  Renlin Li  <renlin.li@arm.com>
 
        * arm-dis.c (mapping_symbol_for_insn): New function.
index f9f7fb2867540285d4d8697228c176e3cf82e523..2d0f701c962b8e315f583a78a6932cc694abfc2b 100644 (file)
@@ -40,7 +40,8 @@ count_decodable_bits (const CGEN_INSN *insn)
 {
   unsigned mask = CGEN_INSN_BASE_MASK (insn);
   int bits = 0;
-  int m;
+  unsigned m;
+
   for (m = 1; m != 0; m <<= 1)
     {
       if (mask & m)
This page took 0.02552 seconds and 4 git commands to generate.