cranelift: Add support for bswap.i128 (#5186)
* fuzzgen: Request only one variable for bswap This was included by accident. Bswap only has one input, instead of two. * cranelift: Add `bswap.i128` support Adds support only for x86, AArch64, S390X. RISCV does not yet have bswap.
This commit is contained in:
@@ -1528,6 +1528,11 @@
|
||||
(rule (lower (has_type $I64 (bswap x)))
|
||||
(a64_rev64 $I64 x))
|
||||
|
||||
(rule (lower (has_type $I128 (bswap x)))
|
||||
(value_regs
|
||||
(a64_rev64 $I64 (value_regs_get x 1))
|
||||
(a64_rev64 $I64 (value_regs_get x 0))))
|
||||
|
||||
;;;; Rules for `bmask` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Bmask tests the value against zero, and uses `csetm` to assert the result.
|
||||
|
||||
Reference in New Issue
Block a user