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]
Other format: [Raw text]

[PPC] add dcbzl opcode for PPC970


The PPC970 includes a special form of the dcbz instruction (whose
mnemonic is "dcbzl") with bit 10 set in the instruction word.  This
signifies a 128-byte cache line zeroing.  Okay for the mainline?

Ben


2004-04-29  Ben Elliston  <bje@au.ibm.com>

	* ppc-opc.c (powerpc_opcodes): Add "dbczl" instruction for PPC970.

Index: opcodes/ppc-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/ppc-opc.c,v
retrieving revision 1.67
diff -u -p -r1.67 ppc-opc.c
--- opcodes/ppc-opc.c	16 Mar 2004 11:46:15 -0000	1.67
+++ opcodes/ppc-opc.c	30 Apr 2004 05:22:40 -0000
@@ -4303,6 +4303,7 @@ const struct powerpc_opcode powerpc_opco
 
 { "tlbli",   X(31,1010), XRTRA_MASK,	PPC,		{ RB } },
 
+{ "dcbzl",   XCMPL(31,1014,1), XRT_MASK,POWER4,            { RA, RB } },
 { "dcbz",    X(31,1014), XRT_MASK,	PPC,		{ RA, RB } },
 { "dclz",    X(31,1014), XRT_MASK,	PPC,		{ RA, RB } },

[testsuite]
2004-04-30  Ben Elliston  <bje@au.ibm.com>

	* gas/ppc/power4.s: Add dcbz and dcbzl test cases.
	* gas/ppc/power4.d: Update accordingly.

Index: gas/testsuite/gas/ppc/power4.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/power4.s,v
retrieving revision 1.1
diff -u -p -r1.1 power4.s
--- gas/testsuite/gas/ppc/power4.s	4 Jul 2003 13:35:35 -0000	1.1
+++ gas/testsuite/gas/ppc/power4.s	30 Apr 2004 05:22:32 -0000
@@ -68,6 +68,10 @@ dsym1:
 	mfcr	3,0x40
 	mfcr	3,0x80
 
+	dcbz    1, 2
+	dcbzl   3, 4
+	dcbz    5, 6
+
 	.section	".data"
 usym0:	.llong	0xcafebabe
 usym1:
Index: gas/testsuite/gas/ppc/power4.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/power4.d,v
retrieving revision 1.2
diff -u -p -r1.2 power4.d
--- gas/testsuite/gas/ppc/power4.d	16 Mar 2004 00:58:42 -0000	1.2
+++ gas/testsuite/gas/ppc/power4.d	30 Apr 2004 05:22:32 -0000
@@ -10,7 +10,7 @@ start address 0x0+
 
 Sections:
 Idx Name +Size +VMA +LMA +File off +Algn
- +0 \.text +0+b8 +0+ +0+ +.*
+ +0 \.text +0+c4 +0+ +0+ +.*
  +CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
  +1 \.data +0+10 +0+ +0+ +.*
  +CONTENTS, ALLOC, LOAD, DATA
@@ -99,3 +99,6 @@ Disassembly of section \.text:
  +ac:	7c 72 00 26 	mfcr    r3,32
  +b0:	7c 74 00 26 	mfcr    r3,64
  +b4:	7c 78 00 26 	mfcr    r3,128
+ +b8:	7c 01 17 ec 	dcbz    r1,r2
+ +bc:	7c 23 27 ec 	dcbzl   r3,r4
+ +c0:	7c 05 37 ec 	dcbz    r5,r6


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