Skip to content

c.nop encoding is different than riscv-opcodes #1177

@jordancarlin

Description

@jordancarlin

Current value and location
c.nop.yaml has a match field with a fully constrained value of 0000000000000001

Expected value
riscv-opcodes encodes c.nop as 000?00000?????01. Note the wildcards.

It looks like the divergence is because of how hints are handled. From the spec:

Image

The C.NOP code points with imm≠0 encode HINTs.

Discovered while comparing #1090 to the riscv-opcodes version of the header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions