]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/testsuite/binutils-all/riscv/unknown.s
riscv: print .2byte or .4byte before an unknown instruction encoding
[thirdparty/binutils-gdb.git] / binutils / testsuite / binutils-all / riscv / unknown.s
1 /* Copyright (C) 2021 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 3 of the License, or
6 (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>. */
15
16 .text
17 /* The following instruction is in the area set aside for
18 custom instruction extensions. As such it is unlikely that
19 an upstream extension should ever clash with this. */
20 .insn r 0x0b, 0x0, 0x0, x3, x4, x5
21 /* Unlike the above, the following is just a reserved
22 instruction encoding. This means that in the future an
23 extension to the compressed instruction set might use this
24 encoding. If/when that happens we'll need to find a
25 different unused encoding within the compressed instruction
26 space. */
27 .insn ca 0x1, 0x27, 0x2, x8, x9