aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/testsuite/gas/ppc/byte_rev.d13
-rw-r--r--gas/testsuite/gas/ppc/byte_rev.s5
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp1
4 files changed, 25 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2f1caa7..1e741ed 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
2020-05-11 Peter Bergner <bergner@linux.ibm.com>
+ * testsuite/gas/ppc/byte_rev.d,
+ * testsuite/gas/ppc/byte_rev.s: New test.
+ * testsuite/gas/ppc/ppc.exp: Run it.
+
+2020-05-11 Peter Bergner <bergner@linux.ibm.com>
+
* testsuite/gas/ppc/power10.d: Add paste. tests.
* testsuite/gas/ppc/power10.s: Likewise.
diff --git a/gas/testsuite/gas/ppc/byte_rev.d b/gas/testsuite/gas/ppc/byte_rev.d
new file mode 100644
index 0000000..ace537c
--- /dev/null
+++ b/gas/testsuite/gas/ppc/byte_rev.d
@@ -0,0 +1,13 @@
+#as: -mpower10
+#objdump: -dr -Mpower10
+#name: byte reverse
+
+.*
+
+
+Disassembly of section \.text:
+
+0+0 <_start>:
+.*: (7c 83 01 76|76 01 83 7c) brd r3,r4
+.*: (7c a4 01 b6|b6 01 a4 7c) brh r4,r5
+.*: (7c c5 01 36|36 01 c5 7c) brw r5,r6
diff --git a/gas/testsuite/gas/ppc/byte_rev.s b/gas/testsuite/gas/ppc/byte_rev.s
new file mode 100644
index 0000000..87d4b9c
--- /dev/null
+++ b/gas/testsuite/gas/ppc/byte_rev.s
@@ -0,0 +1,5 @@
+ .text
+_start:
+ brd 3,4
+ brh 4,5
+ brw 5,6
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index 6426996..2b7af4f 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -131,3 +131,4 @@ run_dump_test "prefix-pcrel"
if { [supports_ppc64] } then {
run_dump_test "prefix-reloc"
}
+run_dump_test "byte_rev"