forked from avanhatt/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isaspec: generate
MovWide
spec (bytecodealliance#127)
Generate `MovWide` spec. Updates avanhatt#36 avanhatt#35
- Loading branch information
1 parent
f31bc1c
commit 7659774
Showing
3 changed files
with
204 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
;; GENERATED BY `isaspec`. DO NOT EDIT!!! | ||
|
||
(spec | ||
(MInst.MovWide op rd imm size) | ||
(provide | ||
(match | ||
size | ||
((Size64) | ||
(match | ||
op | ||
((MovZ) | ||
(and | ||
(=> (= (:shift imm) #b00) (= rd (zero_ext 64 (extract 15 0 (:bits imm))))) | ||
(=> (= (:shift imm) #b01) (= rd (zero_ext 64 (concat (extract 15 0 (:bits imm)) #x0000)))) | ||
(=> | ||
(= (:shift imm) #b10) | ||
(= rd (zero_ext 64 (concat (extract 15 0 (:bits imm)) #x00000000)))) | ||
(=> (= (:shift imm) #b11) (= rd (concat (extract 15 0 (:bits imm)) #x000000000000))))) | ||
((MovN) | ||
(and | ||
(=> (= (:shift imm) #b00) (= rd (bvnot (zero_ext 64 (extract 15 0 (:bits imm)))))) | ||
(=> | ||
(= (:shift imm) #b01) | ||
(= rd (bvnot (zero_ext 64 (concat (extract 15 0 (:bits imm)) #x0000))))) | ||
(=> | ||
(= (:shift imm) #b10) | ||
(= rd (bvnot (zero_ext 64 (concat (extract 15 0 (:bits imm)) #x00000000))))) | ||
(=> | ||
(= (:shift imm) #b11) | ||
(= rd (bvnot (concat (extract 15 0 (:bits imm)) #x000000000000)))))))) | ||
((Size32) | ||
(match | ||
op | ||
((MovZ) | ||
(and | ||
(=> (= (:shift imm) #b00) (= rd (zero_ext 64 (extract 15 0 (:bits imm))))) | ||
(=> (= (:shift imm) #b01) (= rd (zero_ext 64 (concat (extract 15 0 (:bits imm)) #x0000)))))) | ||
((MovN) | ||
(and | ||
(=> | ||
(= (:shift imm) #b00) | ||
(= rd (zero_ext 64 (bvnot (zero_ext 32 (extract 15 0 (:bits imm))))))) | ||
(=> | ||
(= (:shift imm) #b01) | ||
(= rd (zero_ext 64 (bvnot (concat (extract 15 0 (:bits imm)) #x0000))))))))))) | ||
(require | ||
(match | ||
size | ||
((Size64) | ||
(match | ||
op | ||
((MovZ) | ||
(or (= (:shift imm) #b00) (= (:shift imm) #b01) (= (:shift imm) #b10) (= (:shift imm) #b11))) | ||
((MovN) | ||
(or (= (:shift imm) #b00) (= (:shift imm) #b01) (= (:shift imm) #b10) (= (:shift imm) #b11))))) | ||
((Size32) | ||
(match | ||
op | ||
((MovZ) (or (= (:shift imm) #b00) (= (:shift imm) #b01))) | ||
((MovN) (or (= (:shift imm) #b00) (= (:shift imm) #b01)))))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters