File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ var: <int> | $<name>
154
154
155
155
unop: ctz | clz | popcnt | ...
156
156
binop: add | sub | mul | ...
157
- relop: eq | neq | lt | ...
157
+ relop: eq | ne | lt | ...
158
158
sign: s|u
159
159
align: 1|2|4|8|...
160
160
cvtop: trunc_s | trunc_u | extend_s | extend_u | ...
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ rule token = parse
192
192
{ BINARY (floatop t Float32Op. CopySign Float64Op. CopySign ) }
193
193
194
194
| (ixx as t)" .eq" { COMPARE (intop t Int32Op. Eq Int64Op. Eq ) }
195
- | (ixx as t)" .neq " { COMPARE (intop t Int32Op. Neq Int64Op. Neq ) }
195
+ | (ixx as t)" .ne " { COMPARE (intop t Int32Op. Ne Int64Op. Ne ) }
196
196
| (ixx as t)" .lt_s" { COMPARE (intop t Int32Op. LtS Int64Op. LtS ) }
197
197
| (ixx as t)" .lt_u" { COMPARE (intop t Int32Op. LtU Int64Op. LtU ) }
198
198
| (ixx as t)" .le_s" { COMPARE (intop t Int32Op. LeS Int64Op. LeS ) }
@@ -202,7 +202,7 @@ rule token = parse
202
202
| (ixx as t)" .ge_s" { COMPARE (intop t Int32Op. GeS Int64Op. GeS ) }
203
203
| (ixx as t)" .ge_u" { COMPARE (intop t Int32Op. GeU Int64Op. GtU ) }
204
204
| (fxx as t)" .eq" { COMPARE (floatop t Float32Op. Eq Float64Op. Eq ) }
205
- | (fxx as t)" .neq " { COMPARE (floatop t Float32Op. Neq Float64Op. Neq ) }
205
+ | (fxx as t)" .ne " { COMPARE (floatop t Float32Op. Ne Float64Op. Ne ) }
206
206
| (fxx as t)" .lt" { COMPARE (floatop t Float32Op. Lt Float64Op. Lt ) }
207
207
| (fxx as t)" .le" { COMPARE (floatop t Float32Op. Le Float64Op. Le ) }
208
208
| (fxx as t)" .gt" { COMPARE (floatop t Float32Op. Gt Float64Op. Gt ) }
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ struct
144
144
let relop op =
145
145
let f = match op with
146
146
| Eq -> (= )
147
- | Neq -> (<> )
147
+ | Ne -> (<> )
148
148
| LtS -> (< )
149
149
| LtU -> unsigned lt_big_int
150
150
| LeS -> (< = )
@@ -214,7 +214,7 @@ struct
214
214
let relop op =
215
215
let f = match op with
216
216
| Eq -> (= )
217
- | Neq -> (<> )
217
+ | Ne -> (<> )
218
218
| Lt -> (< )
219
219
| Le -> (< = )
220
220
| Gt -> (> )
Original file line number Diff line number Diff line change 37
37
type unop = Clz | Ctz | Popcnt
38
38
type binop = Add | Sub | Mul | DivS | DivU | RemS | RemU
39
39
| And | Or | Xor | Shl | ShrU | ShrS
40
- type relop = Eq | Neq | LtS | LtU | LeS | LeU | GtS | GtU | GeS | GeU
40
+ type relop = Eq | Ne | LtS | LtU | LeS | LeU | GtS | GtU | GeS | GeU
41
41
type cvt = ExtendSInt32 | ExtendUInt32 | WrapInt64
42
42
| TruncSFloat32 | TruncUFloat32 | TruncSFloat64 | TruncUFloat64
43
43
| ReinterpretFloat
@@ -47,7 +47,7 @@ module FloatOp () =
47
47
struct
48
48
type unop = Neg | Abs | Ceil | Floor | Trunc | Nearest | Sqrt
49
49
type binop = Add | Sub | Mul | Div | CopySign | Min | Max
50
- type relop = Eq | Neq | Lt | Le | Gt | Ge
50
+ type relop = Eq | Ne | Lt | Le | Gt | Ge
51
51
type cvt = ConvertSInt32 | ConvertUInt32 | ConvertSInt64 | ConvertUInt64
52
52
| PromoteFloat32 | DemoteFloat64
53
53
| ReinterpretInt
Original file line number Diff line number Diff line change 92
92
(i32.store (get_local 2) (get_local 0))
93
93
(set_local 1 (i32.load (get_local 2)))
94
94
(if
95
- (i32.neq (get_local 0) (get_local 1))
95
+ (i32.ne (get_local 0) (get_local 1))
96
96
(return (i32.const 0))
97
97
)
98
98
(set_local 0 (i32.sub (get_local 0) (i32.const 1)))
115
115
(f64.store/1 (get_local 0) (get_local 2))
116
116
(set_local 1 (f64.load/1 (get_local 0)))
117
117
(if
118
- (f64.neq (get_local 2) (get_local 1))
118
+ (f64.ne (get_local 2) (get_local 1))
119
119
(return (i32.const 0))
120
120
)
121
121
(set_local 0 (i32.sub (get_local 0) (i32.const 1)))
You can’t perform that action at this time.
0 commit comments