Skip to content

riscv64imac-unknown-none-elf cross compiler got "error: instruction requires the following: 'M' (Integer Multiplication and Division)" #30

@elliott10

Description

@elliott10

When I cross-compile RISCV assembly instructions in file.asm with "rustc 1.60.0-nightly (5e57faa78 2022-01-19) riscv64imac-unknown-none-elf" toolchain.
I got the following error:

error: instruction requires the following: 'M' (Integer Multiplication and Division)
        mul t0, t0, a0
        ^

Please help, How should I avoid this error ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions