aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-03-27 08:19:48 +1030
committerAlan Modra <amodra@gmail.com>2017-03-27 21:49:32 +1030
commit9b7539374617a94c2d646f49e1bbfc954b11891d (patch)
treebdf1936e48eb6ea08eb1d4cf297c067f9846351e /gas
parentd721ba37d8995b9c11a0b8eef0f4d2dc022f85aa (diff)
downloadbinutils-9b7539374617a94c2d646f49e1bbfc954b11891d.zip
binutils-9b7539374617a94c2d646f49e1bbfc954b11891d.tar.gz
binutils-9b7539374617a94c2d646f49e1bbfc954b11891d.tar.bz2
PR21303, objdump doesn't show e200z4 insns
PR 21303 opcodes/ * ppc-dis.c (struct ppc_mopt): Comment. (ppc_opts <e200z4>): Move PPC_OPCODE_VLE from .sticky to .cpu. gas/ * testsuite/gas/ppc/pr21303.d, * testsuite/gas/ppc/pr21303.s: New test * testsuite/gas/ppc/ppc.exp: Run it.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp1
-rw-r--r--gas/testsuite/gas/ppc/pr21303.d12
-rw-r--r--gas/testsuite/gas/ppc/pr21303.s5
4 files changed, 25 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c29d03a..1ec3708 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2017-03-27 Alan Modra <amodra@gmail.com>
+
+ PR 21303
+ * testsuite/gas/ppc/pr21303.d,
+ * testsuite/gas/ppc/pr21303.s: New test
+ * testsuite/gas/ppc/ppc.exp: Run it.
+
2017-03-27 Rinat Zelig <rinat@mellanox.com>
* testsuite/gas/arc/nps400-12.s: New file.
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index 86db455..55367ad 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -50,6 +50,7 @@ if { [istarget powerpc*-*-*] } then {
run_dump_test "common"
run_dump_test "476"
run_dump_test "a2"
+ run_dump_test "pr21303"
if { ![istarget powerpc*le-*-*] } then {
run_dump_test "vle"
run_dump_test "vle-reloc"
diff --git a/gas/testsuite/gas/ppc/pr21303.d b/gas/testsuite/gas/ppc/pr21303.d
new file mode 100644
index 0000000..64761a4
--- /dev/null
+++ b/gas/testsuite/gas/ppc/pr21303.d
@@ -0,0 +1,12 @@
+#objdump: -d -Me200z4
+#as: -a32 -mbig -me200z4
+
+.*
+
+Disassembly of section \.text:
+
+0+ <\.text>:
+ 0: 70 00 00 00 e_li r0,0
+ 4: 7c 01 14 04 lbdcbx r0,r1,r2
+ 8: 7c 01 14 44 lhdcbx r0,r1,r2
+ c: 7c 01 14 84 lwdcbx r0,r1,r2
diff --git a/gas/testsuite/gas/ppc/pr21303.s b/gas/testsuite/gas/ppc/pr21303.s
new file mode 100644
index 0000000..890ba94
--- /dev/null
+++ b/gas/testsuite/gas/ppc/pr21303.s
@@ -0,0 +1,5 @@
+ .text
+ e_li 0, 0
+ lbdcbx 0, 1, 2
+ lhdcbx 0, 1, 2
+ lwdcbx 0, 1, 2