Files
wasmtime/cranelift/codegen
Afonso Bordado db5566dadb aarch64: Fix lowering amounts for shifts
This commit addresses two issues:
* A panic when shifting any non i128 type by i128 amounts (#3064)
* Wrong results when lowering shifts with small types (i8, i16)

In these types when shifting for amounts larger than the size of the
type, we would not get the wrapping behaviour that we see on i32 and i64.
This is because in these larger types, the wrapping behaviour is automatically
implemented by using the appropriate instruction, however we do not
have i8 and i16 specific instructions, so we have to manually wrap
the shift amount with an AND instruction.

This issue is also found on x86_64 and s390x, and a separate issue will
be filed for those.

Closes #3064
2021-07-16 22:08:02 +01:00
..
2021-06-09 14:00:13 -05:00
2021-02-18 13:01:01 +01:00
2021-06-15 22:56:10 -05:00

This crate contains the core Cranelift code generator. It translates code from an intermediate representation into executable machine code.