implement bitwise operations

This commit is contained in:
Ilya Rezvov
2023-09-08 18:08:35 -06:00
parent f16ccb85a9
commit 3944bf9113
6 changed files with 98 additions and 25 deletions
+3
View File
@@ -71,6 +71,7 @@ data IUnOp =
| IExtend8S
| IExtend16S
| IExtend32S
| INot
deriving (Show, Eq, Generic, NFData)
data IBinOp =
@@ -82,6 +83,7 @@ data IBinOp =
| IRemU
| IRemS
| IAnd
| IAndNot
| IOr
| IXor
| IShl
@@ -249,6 +251,7 @@ data Instruction index =
| V128ReplaceLane SimdShape index
| V128AllTrue SimdShape
| V128AnyTrue
| V128BitSelect
| I8x16Swizzle
| I8x16Shuffle [Int]
deriving (Show, Eq, Generic, NFData)