aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bergner <bergner@vnet.ibm.com>2012-08-29 22:34:04 +0000
committerPeter Bergner <bergner@vnet.ibm.com>2012-08-29 22:34:04 +0000
commit382c72e904414bd6b15f6307d5aaf2708edb2eaf (patch)
tree47a8c12fde3183b8f8b09da16e8fddd17dc78568
parent8efd8e789a187d613e4ba8644eac831f54759e60 (diff)
downloadgdb-382c72e904414bd6b15f6307d5aaf2708edb2eaf.zip
gdb-382c72e904414bd6b15f6307d5aaf2708edb2eaf.tar.gz
gdb-382c72e904414bd6b15f6307d5aaf2708edb2eaf.tar.bz2
* ppc-opc.c (VXASHB_MASK): New define.
(powerpc_opcodes) <vsldoi>: Use VXASHB_MASK.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/ppc-opc.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index c89d7a1..a77330e 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2012-08-29 Peter Bergner <bergner@vnet.ibm.com>
+
+ * ppc-opc.c (VXASHB_MASK): New define.
+ (powerpc_opcodes) <vsldoi>: Use VXASHB_MASK.
+
2012-08-28 Peter Bergner <bergner@vnet.ibm.com>
* ppc-opc.c (UIMM4, UIMM3, UIMM2, VXVA_MASK, VXVB_MASK, VXVAVB_MASK,
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 57c075d..6ebcc90 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -2348,6 +2348,9 @@ extract_vleil (unsigned long insn,
/* The mask for an VA form instruction. */
#define VXA_MASK VXA(0x3f, 0x3f)
+/* A VXA_MASK with a SHB field. */
+#define VXASHB_MASK (VXA_MASK | (1 << 10))
+
/* A VXR form instruction. */
#define VXR(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))
@@ -2837,7 +2840,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
{"vsel", VXA(4, 42), VXA_MASK, PPCVEC|PPCVLE, PPCNONE, {VD, VA, VB, VC}},
{"ps_add.", A (4, 21,1), AFRC_MASK, PPCPS, PPCNONE, {FRT, FRA, FRB}},
{"vperm", VXA(4, 43), VXA_MASK, PPCVEC|PPCVLE, PPCNONE, {VD, VA, VB, VC}},
-{"vsldoi", VXA(4, 44), VXA_MASK, PPCVEC|PPCVLE, PPCNONE, {VD, VA, VB, SHB}},
+{"vsldoi", VXA(4, 44), VXASHB_MASK, PPCVEC|PPCVLE, PPCNONE, {VD, VA, VB, SHB}},
{"ps_sel", A (4, 23,0), A_MASK, PPCPS, PPCNONE, {FRT, FRA, FRC, FRB}},
{"vmaddfp", VXA(4, 46), VXA_MASK, PPCVEC|PPCVLE, PPCNONE, {VD, VA, VC, VB}},
{"ps_sel.", A (4, 23,1), A_MASK, PPCPS, PPCNONE, {FRT, FRA, FRC, FRB}},