Skip to content

Commit 89521bd

Browse files
committed
Add table with arithmetic and comparison operators
1 parent 36c0f1f commit 89521bd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,18 @@ int add(int a, int b) {
8383
(get_local $a)
8484
(get_local $b)))
8585
```
86+
87+
### Operators
88+
| | i32 | i64 | f32 | f64 |
89+
|:-:| --- | --- | --- | --- |
90+
| + | `add` | `add` | `add` | `add` |
91+
| - | `sub` | `sub` | `sub` | `sub` |
92+
| * | `mul` | `mul` | `mul` | `mul` |
93+
| / | `div_s` | `div_s` | `div` | `div` |
94+
| % | `rem_s`| `rem_s` | | |
95+
| == | `eq` | `eq` | `eq` | `eq` |
96+
| != | `ne` | `ne` | `ne` | `ne` |
97+
| < | `lt_s` | `lt_s` | `lt` | `lt` |
98+
| <= | `le_s` | `le_s` | `le` | `le` |
99+
| > | `gt_s` | `gt_s` | `gt` | `gt` |
100+
| >= | `ge_s` | `ge_s` | `ge` | `ge` |

0 commit comments

Comments
 (0)