Skip to content

Test instruction encoding against another toolchain #1034

@pchickey

Description

@pchickey

I have encountered at least one bug related to instruction encodings that was pretty tricky to isolate, but easy enough to fix, bytecodealliance/cranelift#211

It would be helpful to have a test suite that compared Cretonne's encodings against another toolchain (probably llvm, though gcc could work too). The meta-language could add a way to specify how to translate an instruction into assembly language text, and the encoding of the instruction could be compared against the output of another assembler. The domain size for each instruction is small enough that this could probably be an exhaustive test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    craneliftIssues related to the Cranelift code generatorcranelift:area:machinstIssues related to instruction selection and the new MachInst backend.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions