-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compiler: Add i64.[lt|le|gt|ge]_[s|u] opcodes
These share the same CIL opcodes as their 32-bit counterparts.
- Loading branch information
Showing
19 changed files
with
104 additions
and
16 deletions.
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
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
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:0) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "ges") (result i32) | ||
i32.const 10 | ||
i32.const 42 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:1) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "lts") (result i32) | ||
i32.const 10 | ||
i32.const 42 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:1) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "les") (result i32) | ||
i32.const 42 | ||
i32.const 42 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:0) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "gts") (result i32) | ||
i32.const 42 | ||
i32.const 42 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:0) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "geu") (result i32) | ||
i32.const 10 | ||
i32.const 42 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:1) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "ltu") (result i32) | ||
i32.const 10 | ||
i32.const 42 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:1) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "leu") (result i32) | ||
i32.const 42 | ||
i32.const 42 | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
;; expect: (i32:0) | ||
|
||
(module | ||
(memory 1) | ||
(func (export "gtu") (result i32) | ||
i32.const 42 | ||
i32.const 42 | ||
|
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,10 @@ | ||
;; invoke: lts | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "lts") (result i32) | ||
i64.const -10 | ||
i64.const 42 | ||
i64.lt_s | ||
) | ||
) |
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,10 @@ | ||
;; invoke: ltu | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "ltu") (result i32) | ||
i64.const 10 | ||
i64.const 42 | ||
i64.lt_u | ||
) | ||
) |
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,10 @@ | ||
;; invoke: gts | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "gts") (result i32) | ||
i64.const 42 | ||
i64.const -42 | ||
i64.gt_s | ||
) | ||
) |
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,10 @@ | ||
;; invoke: gtu | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "gtu") (result i32) | ||
i64.const 42 | ||
i64.const 1 | ||
i64.gt_u | ||
) | ||
) |
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,10 @@ | ||
;; invoke: les | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "les") (result i32) | ||
i64.const -42 | ||
i64.const -42 | ||
i64.le_s | ||
) | ||
) |
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,10 @@ | ||
;; invoke: leu | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "leu") (result i32) | ||
i64.const 42 | ||
i64.const 42 | ||
i64.le_u | ||
) | ||
) |
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,10 @@ | ||
;; invoke: ges | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "ges") (result i32) | ||
i64.const -42 | ||
i64.const -42 | ||
i64.ge_s | ||
) | ||
) |
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,10 @@ | ||
;; invoke: geu | ||
;; expect: (i32:1) | ||
|
||
(module | ||
(func (export "geu") (result i32) | ||
i64.const 42 | ||
i64.const 42 | ||
i64.ge_u | ||
) | ||
) |