From 80890a619b855d6e124be63b31aae7201df994e3 Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Fri, 6 Feb 2009 01:50:54 +0000 Subject: [PATCH] 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. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/ppc/booke.d | 3 +++ gas/testsuite/gas/ppc/booke.s | 4 ++++ gas/testsuite/gas/ppc/power4_32.d | 3 +++ gas/testsuite/gas/ppc/power4_32.s | 3 +++ opcodes/ChangeLog | 6 ++++++ opcodes/ppc-opc.c | 8 +++++--- 7 files changed, 31 insertions(+), 3 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ff8a7bae770..354a1adb7bc 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2009-02-05 Peter Bergner + + * 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 * 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 403fa3f3cc1..a7792a86bef 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 4e513051f04..4061bf1fef8 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 bd5170fdd3a..1f2db94c7ba 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 88861a429d3..a2fd6a6c432 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 a2ecb32c8c9..4f14bef89a1 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2009-02-05 Peter Bergner + + * 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 AVX Programming Reference (January, 2009) diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 511fd81a77e..5ce87b71650 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}}, -- 2.30.2