diff options
author | Peter Bergner <bergner@linux.ibm.com> | 2020-05-11 09:45:42 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-11 21:08:37 +0930 |
commit | 4f3e9537c47ce65086cb86587a5fa9be4dc41392 (patch) | |
tree | 5adccbeda2ea15a813d22e3cd13fb24ff396d986 /gas | |
parent | ec40e91c77ecf4ca853577aa7d68bdaf5aeedfd5 (diff) | |
download | gdb-4f3e9537c47ce65086cb86587a5fa9be4dc41392.zip gdb-4f3e9537c47ce65086cb86587a5fa9be4dc41392.tar.gz gdb-4f3e9537c47ce65086cb86587a5fa9be4dc41392.tar.bz2 |
Power10 Set boolean extension
opcodes/
* ppc-opc.c (powerpc_opcodes) <setbc, setbcr, setnbc, setnbcr>: New
mnemonics.
gas/
* testsuite/gas/ppc/set_bool.d,
* testsuite/gas/ppc/set_bool.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/set_bool.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/set_bool.s | 6 |
4 files changed, 27 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 11a20f5..a7fbadc 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-05-11 Peter Bergner <bergner@linux.ibm.com> + + * testsuite/gas/ppc/set_bool.d, + * testsuite/gas/ppc/set_bool.s: New test. + * testsuite/gas/ppc/ppc.exp: Run it. + 2020-05-11 Alan Modra <amodra@gmail.com> * testsuite/gas/ppc/bitmanip.d, diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index 0e53a4c..e1c7bde 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -141,3 +141,4 @@ run_dump_test "outerprod" run_dump_test "maskmanip" run_dump_test "genpcv" run_dump_test "bitmanip" +run_dump_test "set_bool" diff --git a/gas/testsuite/gas/ppc/set_bool.d b/gas/testsuite/gas/ppc/set_bool.d new file mode 100644 index 0000000..6bf1ed6 --- /dev/null +++ b/gas/testsuite/gas/ppc/set_bool.d @@ -0,0 +1,14 @@ +#as: -mpower10 +#objdump: -dr -Mpower10 +#name: set bool + +.* + + +Disassembly of section \.text: + +0+00 <_start>: +.*: (7d 41 03 00|00 03 41 7d) setbc r10,gt +.*: (7d 62 03 40|40 03 62 7d) setbcr r11,eq +.*: (7d 83 03 80|80 03 83 7d) setnbc r12,so +.*: (7d a0 03 c0|c0 03 a0 7d) setnbcr r13,lt diff --git a/gas/testsuite/gas/ppc/set_bool.s b/gas/testsuite/gas/ppc/set_bool.s new file mode 100644 index 0000000..95f2881 --- /dev/null +++ b/gas/testsuite/gas/ppc/set_bool.s @@ -0,0 +1,6 @@ + .text +_start: + setbc 10,1 + setbcr 11,2 + setnbc 12,3 + setnbcr 13,0 |