cranelift: Support bnot, band, bor, bxor for x86_64. (#5036)

* Support `bnot`, `band`, `bor`, `bxor` for x86_64.

* Fix-up to handle `B{8,16,32,64}` type on bitops

* Fix-up conflict.
This commit is contained in:
Jun Ryung Ju
2022-11-19 00:45:54 +09:00
committed by GitHub
parent 7e4077805b
commit e5f93d9ec0
3 changed files with 67 additions and 34 deletions

View File

@@ -1531,6 +1531,8 @@
(decl sse_xor_op (Type) SseOpcode)
(rule 1 (sse_xor_op $F32X4) (SseOpcode.Xorps))
(rule 1 (sse_xor_op $F64X2) (SseOpcode.Xorpd))
(rule 1 (sse_xor_op $F32) (SseOpcode.Xorps))
(rule 1 (sse_xor_op $F64) (SseOpcode.Xorpd))
;; Priority 0 because multi_lane overlaps with the previous two explicit type
;; patterns.