Jacob Bramley 05afebca4d Clean up intrinsic-test literals.
- Ensure that C literals don't rely on undefined overflow behaviour.
- We don't need to use 'as' casts, so remove them.
- We weren't using allow(overflowing_literals), so remove it.
- Format FP bit values as hex.

This simplifies the test input initialisers in the generated files,
making them shorter and easier to debug.
2023-11-01 14:33:48 +01:00
..
2023-11-01 14:33:48 +01:00
2023-10-10 14:47:43 +01:00

Generate and run programs using equivalent C and Rust intrinsics, checking that each produces the same result from random inputs.

Usage

USAGE:
    intrinsic-test [FLAGS] [OPTIONS] <INPUT>

FLAGS:
        --a32        Run tests for A32 instrinsics instead of A64
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --cppcompiler <CPPCOMPILER>    The C++ compiler to use for compiling the c++ code [default: clang++]
        --runner <RUNNER>              Run the C programs under emulation with this command
        --skip <SKIP>                  Filename for a list of intrinsics to skip (one per line)
        --toolchain <TOOLCHAIN>        The rust toolchain to use for building the rust code

ARGS:
    <INPUT>    The input file containing the intrinsics