]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ppc-opc.c (powerpc_macros <extrdi>): Allow n+b of 64.
authorAlan Modra <amodra@gmail.com>
Tue, 8 Sep 2009 09:02:35 +0000 (09:02 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 8 Sep 2009 09:02:35 +0000 (09:02 +0000)
opcodes/ChangeLog
opcodes/ppc-opc.c

index 2b9ae0aebf2ecc77c0dd65401141280e9cb1c544..4c3e62c72247fbb4983c72ec1b7ada38b30d9e9d 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * ppc-opc.c (powerpc_macros <extrdi>): Allow n+b of 64.
+
 2009-09-07  Alan Modra  <amodra@bigpond.net.au>
 
        * z8kgen.c (func): Fix thinko last patch.
index bc64e4940bae0124c273d9dc6b5a1b286e4b1a50..1a69d33d4f60fbbf488a6331339de37ef333ebfe 100644 (file)
@@ -5301,8 +5301,8 @@ const int powerpc_num_opcodes =
 const struct powerpc_macro powerpc_macros[] = {
 {"extldi",   4,        PPC64,  "rldicr %0,%1,%3,(%2)-1"},
 {"extldi.",  4,        PPC64,  "rldicr. %0,%1,%3,(%2)-1"},
-{"extrdi",   4,        PPC64,  "rldicl %0,%1,(%2)+(%3),64-(%2)"},
-{"extrdi.",  4,        PPC64,  "rldicl. %0,%1,(%2)+(%3),64-(%2)"},
+{"extrdi",   4,        PPC64,  "rldicl %0,%1,((%2)+(%3))&((%2)+(%3)<>64),64-(%2)"},
+{"extrdi.",  4,        PPC64,  "rldicl. %0,%1,((%2)+(%3))&((%2)+(%3)<>64),64-(%2)"},
 {"insrdi",   4,        PPC64,  "rldimi %0,%1,64-((%2)+(%3)),%3"},
 {"insrdi.",  4,        PPC64,  "rldimi. %0,%1,64-((%2)+(%3)),%3"},
 {"rotrdi",   3,        PPC64,  "rldicl %0,%1,(-(%2)!63)&((%2)|63),0"},