aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bergner <bergner@vnet.ibm.com>2009-02-06 01:50:54 +0000
committerPeter Bergner <bergner@vnet.ibm.com>2009-02-06 01:50:54 +0000
commit80890a619b855d6e124be63b31aae7201df994e3 (patch)
tree66df114ebf3593ae5c003f59641efb330f89a417
parent6d097e655a5687059556804d993e03ac4eaff7d8 (diff)
downloadgdb-80890a619b855d6e124be63b31aae7201df994e3.zip
gdb-80890a619b855d6e124be63b31aae7201df994e3.tar.gz
gdb-80890a619b855d6e124be63b31aae7201df994e3.tar.bz2
gas/testsuite/
* gas/ppc/booke.s ("dcbt", "dcbtst"): New tests. * gas/ppc/booke.d: Likewise. * gas/ppc/power4_32.s: Likewise. * gas/ppc/power4_32.d: Likewise. opcodes/ * ppc-opc.c: Update copyright year. (powerpc_opcodes) <"dcbt", "dcbtst">: Deprecate the Embedded operand ordering for POWER4 and later and use the correct Server ordering.
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/ppc/booke.d3
-rw-r--r--gas/testsuite/gas/ppc/booke.s4
-rw-r--r--gas/testsuite/gas/ppc/power4_32.d3
-rw-r--r--gas/testsuite/gas/ppc/power4_32.s3
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/ppc-opc.c8
7 files changed, 31 insertions, 3 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index ff8a7ba..354a1ad 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-05 Peter Bergner <bergner@vnet.ibm.com>
+
+ * gas/ppc/booke.s ("dcbt", "dcbtst"): New tests.
+ * gas/ppc/booke.d: Likewise.
+ * gas/ppc/power4_32.s: Likewise.
+ * gas/ppc/power4_32.d: Likewise.
+
2009-02-05 Catherine Moore <clm@codesourcery.com>
* gas/elf/elf.exp: Really run the symtab test.
diff --git a/gas/testsuite/gas/ppc/booke.d b/gas/testsuite/gas/ppc/booke.d
index 403fa3f..a7792a8 100644
--- a/gas/testsuite/gas/ppc/booke.d
+++ b/gas/testsuite/gas/ppc/booke.d
@@ -38,3 +38,6 @@ Disassembly of section \.text:
68: 7c 07 42 a6 mfsprg r0,7
6c: 7c 17 43 a6 mtsprg 7,r0
70: 7c 17 43 a6 mtsprg 7,r0
+ 74: 7c 05 32 2c dcbt r5,r6
+ 78: 7c 05 32 2c dcbt r5,r6
+ 7c: 7d 05 32 2c dcbt 8,r5,r6
diff --git a/gas/testsuite/gas/ppc/booke.s b/gas/testsuite/gas/ppc/booke.s
index 4e51305..4061bf1 100644
--- a/gas/testsuite/gas/ppc/booke.s
+++ b/gas/testsuite/gas/ppc/booke.s
@@ -36,3 +36,7 @@ branch_target_2:
mfsprg7 0
mtsprg 7, 0
mtsprg7 0
+
+ dcbt 5,6
+ dcbt 0,5,6
+ dcbt 8,5,6
diff --git a/gas/testsuite/gas/ppc/power4_32.d b/gas/testsuite/gas/ppc/power4_32.d
index bd5170f..1f2db94 100644
--- a/gas/testsuite/gas/ppc/power4_32.d
+++ b/gas/testsuite/gas/ppc/power4_32.d
@@ -41,3 +41,6 @@ Disassembly of section \.text:
7c: 7c 01 17 ec dcbz r1,r2
80: 7c 23 27 ec dcbzl r3,r4
84: 7c 05 37 ec dcbz r5,r6
+ 88: 7c 05 32 2c dcbt r5,r6
+ 8c: 7c 05 32 2c dcbt r5,r6
+ 90: 7d 05 32 2c dcbt r5,r6,8
diff --git a/gas/testsuite/gas/ppc/power4_32.s b/gas/testsuite/gas/ppc/power4_32.s
index 88861a4..a2fd6a6 100644
--- a/gas/testsuite/gas/ppc/power4_32.s
+++ b/gas/testsuite/gas/ppc/power4_32.s
@@ -34,3 +34,6 @@ start:
dcbz 1, 2
dcbzl 3, 4
dcbz 5, 6
+ dcbt 5,6
+ dcbt 5,6,0
+ dcbt 5,6,8
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a2ecb32..4f14bef 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-05 Peter Bergner <bergner@vnet.ibm.com>
+
+ * ppc-opc.c: Update copyright year.
+ (powerpc_opcodes) <"dcbt", "dcbtst">: Deprecate the Embedded operand
+ ordering for POWER4 and later and use the correct Server ordering.
+
2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
AVX Programming Reference (January, 2009)
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 511fd81..5ce87b7 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -1,6 +1,6 @@
/* ppc-opc.c -- PowerPC opcode list
Copyright 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+ 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support
This file is part of the GNU opcodes library.
@@ -3636,7 +3636,8 @@ const struct powerpc_opcode powerpc_opcodes[] = {
{"mtsrin", X(31,242), XRA_MASK, PPC32, PPCNONE, {RS, RB}},
{"mtsri", X(31,242), XRA_MASK, POWER32, PPCNONE, {RS, RB}},
-{"dcbtst", X(31,246), X_MASK, PPC, PPCNONE, {CT, RA, RB}},
+{"dcbtst", X(31,246), X_MASK, PPC, POWER4, {CT, RA, RB}},
+{"dcbtst", X(31,246), X_MASK, POWER4, PPCNONE, {RA, RB, CT}},
{"stbux", X(31,247), X_MASK, COM, PPCNONE, {RS, RAS, RB}},
@@ -3667,7 +3668,8 @@ const struct powerpc_opcode powerpc_opcodes[] = {
{"lscbx", XRC(31,277,0), X_MASK, M601, PPCNONE, {RT, RA, RB}},
{"lscbx.", XRC(31,277,1), X_MASK, M601, PPCNONE, {RT, RA, RB}},
-{"dcbt", X(31,278), X_MASK, PPC, PPCNONE, {CT, RA, RB}},
+{"dcbt", X(31,278), X_MASK, PPC, POWER4, {CT, RA, RB}},
+{"dcbt", X(31,278), X_MASK, POWER4, PPCNONE, {RA, RB, CT}},
{"lhzx", X(31,279), X_MASK, COM, PPCNONE, {RT, RA0, RB}},