Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GAS: Add OP_V to .insn directive #18

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gas/config/tc-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ static const struct opcode_name_t opcode_name_list[] =
{"NMADD", 0x4f},
{"NMSUB", 0x4b},
{"OP_FP", 0x53},
/*reserved 0x57. */
{"OP_V", 0x57},
{"CUSTOM_2", 0x5b},
/* 48b 0x5f. */

Expand Down
17 changes: 9 additions & 8 deletions gas/testsuite/gas/riscv/insn-dwarf.d
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ insn.s +53 +0x9a.*
insn.s +54 +0x9e.*
insn.s +55 +0xa2.*
insn.s +57 +0xa6.*
insn.s +58 +0xa8.*
insn.s +59 +0xac.*
insn.s +60 +0xb2.*
insn.s +61 +0xba.*
insn.s +62 +0xbc.*
insn.s +63 +0xc0.*
insn.s +64 +0xc6.*
insn.s +- +0xce
insn.s +59 +0xaa.*
insn.s +60 +0xac.*
insn.s +61 +0xb0.*
insn.s +62 +0xb6.*
insn.s +63 +0xbe.*
insn.s +64 +0xc0.*
insn.s +65 +0xc4.*
insn.s +66 +0xca.*
insn.s +- +0xd2
#pass
3 changes: 2 additions & 1 deletion gas/testsuite/gas/riscv/insn.d
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#as: -march=rv32ifc
#as: -march=rv32ifdcv
#objdump: -dr

.*:[ ]+file format .*
Expand Down Expand Up @@ -69,6 +69,7 @@ Disassembly of section .text:
[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
[^:]+:[ ]+00c58533[ ]+add[ ]+a0,a1,a2
[^:]+:[ ]+022180d7[ ]+vadd\.vv[ ]+v1,v2,v3
[^:]+:[ ]+0001[ ]+nop
[^:]+:[ ]+00000013[ ]+nop
[^:]+:[ ]+001f 0000 0000[ ].*
Expand Down
2 changes: 2 additions & 0 deletions gas/testsuite/gas/riscv/insn.s
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ target:
.insn r 0x33, 0, 0, a0, fa1, fa2
.insn r 0x33, 0, 0, fa0, fa1, fa2

.insn r OP_V, 0, 1, x1, x3, x2

.insn 0x0001
.insn 0x00000013
.insn 0x0000001f
Expand Down