Cranelift: ISLE: aarch64: fix imm12_from_negated_value for i32, i16 (#6078)

* Fix the semantics of imm12_from_negated_value, swapping to a partial term + rule

* wrapping_neg
This commit is contained in:
Alexa VanHattum
2023-03-21 15:16:25 -04:00
committed by GitHub
parent 59d46c2fec
commit 13be5618a7
6 changed files with 140 additions and 28 deletions

View File

@@ -93,6 +93,9 @@
(decl pure i64_as_u64 (i64) u64)
(extern constructor i64_as_u64 i64_as_u64)
(decl pure i64_neg (i64) i64)
(extern constructor i64_neg i64_neg)
(decl u128_as_u64 (u64) u128)
(extern extractor u128_as_u64 u128_as_u64)