This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Fix disassembly of some altivec opcodes
- To: binutils at sources dot redhat dot com
- Subject: [PATCH] Fix disassembly of some altivec opcodes
- From: David Schleef <ds at schleef dot org>
- Date: Sat, 8 Sep 2001 18:08:23 -0700
- Reply-To: David Schleef <ds at schleef dot org>
There's a small buglet in disassembly of some PowerPC altivec
opcodes, where they are not recognized. This patch fixes it.
dave...
diff -urN binutils-2.11.90.0.31/opcodes/ppc-opc.c binutils-2.11.90.0.31-ds/opcodes/ppc-opc.c
--- binutils-2.11.90.0.31/opcodes/ppc-opc.c Thu Aug 30 09:30:37 2001
+++ binutils-2.11.90.0.31-ds/opcodes/ppc-opc.c Sat Sep 8 16:42:02 2001
@@ -1153,10 +1153,10 @@
#define VX_MASK VX(0x3f, 0x7ff)
/* An VA form instruction. */
-#define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x07f))
+#define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x03f))
/* The mask for an VA form instruction. */
-#define VXA_MASK VXA(0x3f, 0x7f)
+#define VXA_MASK VXA(0x3f, 0x3f)
/* An VXR form instruction. */
#define VXR(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff))