diff options
author | Peter Bergner <bergner@vnet.ibm.com> | 2012-08-15 21:25:21 +0000 |
---|---|---|
committer | Peter Bergner <bergner@vnet.ibm.com> | 2012-08-15 21:25:21 +0000 |
commit | 588925d0654555b1a0024f18bb7c0e073b285686 (patch) | |
tree | 2c2cd2b1e2eaf096e845511e1b32096ecbd74132 | |
parent | 9f6a6cc022e1be500d3e49da1ad8bb2463b6da1b (diff) | |
download | gdb-588925d0654555b1a0024f18bb7c0e073b285686.zip gdb-588925d0654555b1a0024f18bb7c0e073b285686.tar.gz gdb-588925d0654555b1a0024f18bb7c0e073b285686.tar.bz2 |
opcodes/
* ppc-opc.c <RSQ, RTQ>: Use PPC_OPERAND_GPR.
gas/testsuite/
* gas/ppc/power4.s <lq, stq>: Add more tests.
* gas/ppc/power4.d: Likewise.
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power4.d | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power4.s | 7 | ||||
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/ppc-opc.c | 6 |
5 files changed, 26 insertions, 4 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 5d903ab..5ccb640 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2012-08-15 Peter Bergner <bergner@vnet.ibm.com> + * gas/ppc/power4.s <lq, stq>: Add more tests. + * gas/ppc/power4.d: Likewise. + +2012-08-15 Peter Bergner <bergner@vnet.ibm.com> + * gas/ppc/common.d ("nop", "xnop"): Add tests. * gas/ppc/common.s: Likewise. * gas/ppc/power7.d ("yield", "mdoio", "mdoom"): Add tests. diff --git a/gas/testsuite/gas/ppc/power4.d b/gas/testsuite/gas/ppc/power4.d index 333c90d..f5978c8 100644 --- a/gas/testsuite/gas/ppc/power4.d +++ b/gas/testsuite/gas/ppc/power4.d @@ -10,7 +10,7 @@ start address 0x0+ Sections: Idx Name +Size +VMA +LMA +File off +Algn - +0 \.text +0+c4 +0+ +0+ +.* + +0 \.text +0+dc +0+ +0+ +.* +CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE +1 \.data +0+10 +0+ +0+ +.* +CONTENTS, ALLOC, LOAD, DATA @@ -102,3 +102,9 @@ Disassembly of section \.text: +b8: 7c 01 17 ec dcbz r1,r2 +bc: 7c 23 27 ec dcbzl r3,r4 +c0: 7c 05 37 ec dcbz r5,r6 + +c4: e0 40 00 10 lq r2,16\(0\) + +c8: e0 05 00 10 lq r0,16\(r5\) + +cc: e0 45 00 10 lq r2,16\(r5\) + +d0: f8 40 00 12 stq r2,16\(0\) + +d4: f8 05 00 12 stq r0,16\(r5\) + +d8: f8 45 00 12 stq r2,16\(r5\) diff --git a/gas/testsuite/gas/ppc/power4.s b/gas/testsuite/gas/ppc/power4.s index f2a162d..7e9042d 100644 --- a/gas/testsuite/gas/ppc/power4.s +++ b/gas/testsuite/gas/ppc/power4.s @@ -72,6 +72,13 @@ dsym1: dcbzl 3, 4 dcbz 5, 6 + lq 2,16(0) + lq 0,16(5) + lq 2,16(5) + stq 2,16(0) + stq 0,16(5) + stq 2,16(5) + .section ".data" usym0: .llong 0xcafebabe usym1: diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 9399da7..b5a75f6 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,9 @@ 2012-08-15 Peter Bergner <bergner@vnet.ibm.com> + * ppc-opc.c <RSQ, RTQ>: Use PPC_OPERAND_GPR. + +2012-08-15 Peter Bergner <bergner@vnet.ibm.com> + * ppc-opc.c <xnop, yield, mdoio, mdoom>: New extended mnemonics. 2012-08-14 Maciej W. Rozycki <macro@codesourcery.com> diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 911b53b..1b15568 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -512,11 +512,11 @@ const struct powerpc_operand powerpc_operands[] = #define RD RS { 0x1f, 21, NULL, NULL, PPC_OPERAND_GPR }, - /* The RS and RT fields of the DS form stq instruction, which have - special value restrictions. */ + /* The RS and RT fields of the DS form stq and DQ form lq instructions, + which have special value restrictions. */ #define RSQ RS + 1 #define RTQ RSQ - { 0x1e, 21, NULL, NULL, PPC_OPERAND_GPR_0 }, + { 0x1e, 21, NULL, NULL, PPC_OPERAND_GPR }, /* The RS field of the tlbwe instruction, which is optional. */ #define RSO RSQ + 1 |