Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow full 12 bit unsigned immediates in I-type instructions #27

@kleinesfilmroellchen

Description

@kleinesfilmroellchen

Consider addi x5, x0, 0xf0f. The I-type instruction takes 12-bit immediates, which are sign-extended. Probably because of the sign extension, venus disallows unsigned immediates which occupy the 12th bit. It should be allowed to use these kinds of immediates with I-type instructions (and for that matter, full 20-bit unsigned immediates with U-type etc.), especially when we only care about the lowest 12 bits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions