diff options
author | Alan Modra <amodra@gmail.com> | 2020-05-11 09:48:29 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-11 21:08:37 +0930 |
commit | 9cc4ce88316e666fd5af0fbc1ea110a7dc42adb0 (patch) | |
tree | c2f632a6e2f70fda8a879566c8b72df8bbb4a1f9 /gas | |
parent | 5d57bc3ff934df1136daa19bbec45e155114ada3 (diff) | |
download | gdb-9cc4ce88316e666fd5af0fbc1ea110a7dc42adb0.zip gdb-9cc4ce88316e666fd5af0fbc1ea110a7dc42adb0.tar.gz gdb-9cc4ce88316e666fd5af0fbc1ea110a7dc42adb0.tar.bz2 |
Power10 VSX load/store rightmost element operations
opcodes/
* ppc-opc.c (powerpc_opcodes): Add lxvrbx, lxvrhx, lxvrwx, lxvrdx,
stxvrbx, stxvrhx, stxvrwx, stxvrdx.
gas/
* testsuite/gas/ppc/rightmost.d,
* testsuite/gas/ppc/rightmost.s: New test.
* testsuite/gas/ppc/ppc.exp: Run it.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/ppc.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/rightmost.d | 17 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/rightmost.s | 10 |
4 files changed, 34 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index dfb9d93..3f8c753 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 2020-05-11 Alan Modra <amodra@gmail.com> + * testsuite/gas/ppc/rightmost.d, + * testsuite/gas/ppc/rightmost.s: New test. + * testsuite/gas/ppc/ppc.exp: Run it. + +2020-05-11 Alan Modra <amodra@gmail.com> + * testsuite/gas/ppc/xvtlsbb.d, * testsuite/gas/ppc/xvtlsbb.s: New test. * testsuite/gas/ppc/ppc.exp: Run it. diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index eaede42..a895edb 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -144,3 +144,4 @@ run_dump_test "bitmanip" run_dump_test "set_bool" run_dump_test "stringop" run_dump_test "xvtlsbb" +run_dump_test "rightmost" diff --git a/gas/testsuite/gas/ppc/rightmost.d b/gas/testsuite/gas/ppc/rightmost.d new file mode 100644 index 0000000..95c37c9 --- /dev/null +++ b/gas/testsuite/gas/ppc/rightmost.d @@ -0,0 +1,17 @@ +#as: -mpower10 +#objdump: -dr -Mpower10 + +.* + + +Disassembly of section \.text: + +0+0 <_start>: +.*: (7f ef 80 1b|1b 80 ef 7f) lxvrbx vs63,r15,r16 +.*: (7f d1 90 5b|5b 90 d1 7f) lxvrhx vs62,r17,r18 +.*: (7f b3 a0 9b|9b a0 b3 7f) lxvrwx vs61,r19,r20 +.*: (7f 95 b0 db|db b0 95 7f) lxvrdx vs60,r21,r22 +.*: (7c 17 c1 1a|1a c1 17 7c) stxvrbx vs0,r23,r24 +.*: (7c 39 d1 5a|5a d1 39 7c) stxvrhx vs1,r25,r26 +.*: (7c 5b e1 9a|9a e1 5b 7c) stxvrwx vs2,r27,r28 +.*: (7c 7d f1 da|da f1 7d 7c) stxvrdx vs3,r29,r30 diff --git a/gas/testsuite/gas/ppc/rightmost.s b/gas/testsuite/gas/ppc/rightmost.s new file mode 100644 index 0000000..8e70994 --- /dev/null +++ b/gas/testsuite/gas/ppc/rightmost.s @@ -0,0 +1,10 @@ + .text +_start: + lxvrbx 63,15,16 + lxvrhx 62,17,18 + lxvrwx 61,19,20 + lxvrdx 60,21,22 + stxvrbx 0,23,24 + stxvrhx 1,25,26 + stxvrwx 2,27,28 + stxvrdx 3,29,30 |