diff options
author | Peter Bergner <bergner@vnet.ibm.com> | 2015-05-14 20:57:50 -0500 |
---|---|---|
committer | Peter Bergner <bergner@vnet.ibm.com> | 2015-05-14 21:02:50 -0500 |
commit | 4bc0608a8b693f033555aa5705fdd5fc44cb9a9a (patch) | |
tree | fcf2031635c4f9a600be59264ecbccae0010bd83 /gas | |
parent | 49a84e1373168f743fd6191035043389f0198a14 (diff) | |
download | binutils-gdb-4bc0608a8b693f033555aa5705fdd5fc44cb9a9a.tar.gz |
Fix some PPC assembler errors.
Remove the wait instructions for server processors, since they were never
implemented. Also add the extra operands added to the tlbie and slbia
instructions with ISA 2.06 and ISA 2.05 respectively.
binutils/
* MAINTAINERS: Add myself as PPC maintainer.
opcodes/
* ppc-opc.c (IH) New define.
(powerpc_opcodes) <wait>: Do not enable for POWER7.
<tlbie>: Add RS operand for POWER7.
<slbia>: Add IH operand for POWER6.
gas/testsuite/
* gas/ppc/power4.d: Add a slbia test.
* gas/ppc/power4.s: Likewise.
* gas/ppc/power6.d: Add slbia and tlbie tests.
* gas/ppc/power6.s: Likewise.
* gas/ppc/power7.d: Remove wait tests. Add a tlbie test.
* gas/ppc/power7.s: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power4.d | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power4.s | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power6.d | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power6.s | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power7.d | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/power7.s | 7 |
7 files changed, 30 insertions, 9 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 5f3f43dbd09..dab5fcf50a3 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2015-05-14 Peter Bergner <bergner@vnet.ibm.com> + + * gas/ppc/power4.d: Add a slbia test. + * gas/ppc/power4.s: Likewise. + * gas/ppc/power6.d: Add slbia and tlbie tests. + * gas/ppc/power6.s: Likewise. + * gas/ppc/power7.d: Remove wait tests. Add a tlbie test. + * gas/ppc/power7.s: Likewise. + 2015-05-13 Max Filippov <jcmvbkbc@gmail.com> * gas/xtensa/trampoline.s: Add regression testcase. diff --git a/gas/testsuite/gas/ppc/power4.d b/gas/testsuite/gas/ppc/power4.d index fa495a197e9..cd712458b0f 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+c8 +0+ +0+ +.* + +0 \.text +0+cc +0+ +0+ +.* +CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE +1 \.data +0+20 +0+ +0+ +.* +CONTENTS, ALLOC, LOAD, DATA @@ -98,3 +98,4 @@ Disassembly of section \.text: .*: (f8 40 00 12|12 00 40 f8) stq r2,16\(0\) .*: (f8 05 00 12|12 00 05 f8) stq r0,16\(r5\) .*: (f8 45 00 12|12 00 45 f8) stq r2,16\(r5\) +.*: (7c 00 03 e4|e4 03 00 7c) slbia diff --git a/gas/testsuite/gas/ppc/power4.s b/gas/testsuite/gas/ppc/power4.s index 7a60f04f5f4..49423a170f3 100644 --- a/gas/testsuite/gas/ppc/power4.s +++ b/gas/testsuite/gas/ppc/power4.s @@ -71,6 +71,7 @@ dsym1: stq 2,16(0) stq 0,16(5) stq 2,16(5) + slbia .section ".data" usym0: .llong 0xcafebabe diff --git a/gas/testsuite/gas/ppc/power6.d b/gas/testsuite/gas/ppc/power6.d index e21450134e8..9ba0687273d 100644 --- a/gas/testsuite/gas/ppc/power6.d +++ b/gas/testsuite/gas/ppc/power6.d @@ -71,4 +71,10 @@ Disassembly of section \.text: f4: (7d 4b 60 94|94 60 4b 7d) addg6s r10,r11,r12 f8: (60 21 00 00|00 00 21 60) ori r1,r1,0 fc: (60 21 00 00|00 00 21 60) ori r1,r1,0 +.*: (7c 00 03 e4|e4 03 00 7c) slbia +.*: (7c 00 03 e4|e4 03 00 7c) slbia +.*: (7c e0 03 e4|e4 03 e0 7c) slbia 7 +.*: (7c 00 52 64|64 52 00 7c) tlbie r10 +.*: (7c 00 52 64|64 52 00 7c) tlbie r10 +.*: (7c 20 52 64|64 52 20 7c) tlbie r10,1 #pass diff --git a/gas/testsuite/gas/ppc/power6.s b/gas/testsuite/gas/ppc/power6.s index 21bd66ebc30..d460fba08a8 100644 --- a/gas/testsuite/gas/ppc/power6.s +++ b/gas/testsuite/gas/ppc/power6.s @@ -66,3 +66,9 @@ start: addg6s 10,11,12 ori 1,1,0 .p2align 4,,15 + slbia + slbia 0 + slbia 7 + tlbie 10 + tlbie 10,0 + tlbie 10,1 diff --git a/gas/testsuite/gas/ppc/power7.d b/gas/testsuite/gas/ppc/power7.d index bed98ceedbd..a2e6df44a57 100644 --- a/gas/testsuite/gas/ppc/power7.d +++ b/gas/testsuite/gas/ppc/power7.d @@ -29,8 +29,6 @@ Disassembly of section \.text: .*: (f1 6c 67 87|87 67 6c f1) xvmovdp vs43,vs44 .*: (f0 64 2f 80|80 2f 64 f0) xvcpsgndp vs3,vs4,vs5 .*: (f1 6c 6f 87|87 6f 6c f1) xvcpsgndp vs43,vs44,vs45 -.*: (7c 00 00 7c|7c 00 00 7c) wait -.*: (7c 00 00 7c|7c 00 00 7c) wait .*: (4c 00 03 24|24 03 00 4c) doze .*: (4c 00 03 64|64 03 00 4c) nap .*: (4c 00 03 a4|a4 03 00 4c) sleep @@ -95,12 +93,12 @@ Disassembly of section \.text: .*: (ed c0 78 34|34 78 c0 ed) frsqrtes f14,f15 .*: (ed c0 78 35|35 78 c0 ed) frsqrtes\. f14,f15 .*: (7c 43 27 1e|1e 27 43 7c) isel r2,r3,r4,28 +.*: (7f 7b db 78|78 db 7b 7f) yield +.*: (7f 7b db 78|78 db 7b 7f) yield .*: (60 42 00 00|00 00 42 60) ori r2,r2,0 .*: (60 00 00 00|00 00 00 60) nop .*: (60 00 00 00|00 00 00 60) nop .*: (60 42 00 00|00 00 42 60) ori r2,r2,0 -.*: (7f 7b db 78|78 db 7b 7f) yield -.*: (7f 7b db 78|78 db 7b 7f) yield .*: (7f bd eb 78|78 eb bd 7f) mdoio .*: (7f bd eb 78|78 eb bd 7f) mdoio .*: (7f de f3 78|78 f3 de 7f) mdoom @@ -109,4 +107,5 @@ Disassembly of section \.text: .*: (7d 62 e2 a6|a6 e2 62 7d) mfppr32 r11 .*: (7d 80 e3 a6|a6 e3 80 7d) mtppr r12 .*: (7d a2 e3 a6|a6 e3 a2 7d) mtppr32 r13 +.*: (7d 60 52 64|64 52 60 7d) tlbie r10,r11 #pass diff --git a/gas/testsuite/gas/ppc/power7.s b/gas/testsuite/gas/ppc/power7.s index e76884eaf57..b8111128d6f 100644 --- a/gas/testsuite/gas/ppc/power7.s +++ b/gas/testsuite/gas/ppc/power7.s @@ -22,8 +22,6 @@ power7: xvcpsgndp 43,44,44 xvcpsgndp 3,4,5 xvcpsgndp 43,44,45 - wait - wait 0 doze nap sleep @@ -88,10 +86,10 @@ power7: frsqrtes 14,15 frsqrtes. 14,15 isel 2,3,4,28 - ori 2,2,0 - .p2align 4,,15 yield or 27,27,27 + ori 2,2,0 + .p2align 4,,15 mdoio or 29,29,29 mdoom @@ -100,3 +98,4 @@ power7: mfppr32 11 mtppr 12 mtppr32 13 + tlbie 10,11 |