This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix disassembly of some altivec opcodes



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))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]