File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
(global $scratch i32)
23
23
)
24
24
25
- (invoke "even" (const.i32 13)) ;; 0 : i32
26
- (invoke "even" (const.i32 20)) ;; 1 : i32
27
- (invoke "odd" (const.i32 13)) ;; 1 : i32
28
- (invoke "odd" (const.i32 20)) ;; 0 : i32
25
+ (asserteq ( invoke "even" (const.i32 13)) (const.i32 0))
26
+ (asserteq ( invoke "even" (const.i32 20)) (const.i32 1))
27
+ (asserteq ( invoke "odd" (const.i32 13)) (const.i32 1))
28
+ (asserteq ( invoke "odd" (const.i32 20)) (const.i32 0))
Original file line number Diff line number Diff line change 70
70
(eq.f64 (getnear.f64 (const.i32 8)) (cast.i64.f64 (const.i64 -12345)))
71
71
(return (const.f64 0))
72
72
)
73
- (setfarunaligneds.i16 (const.i64 3) (const.i32 -23423))
74
- (return (getnear.f64 (const.i32 0)))
73
+ (setfarunaligneds.i64 (const.i64 9) (const.i64 0))
74
+ (setfarunaligneds.i16 (const.i64 15) (const.i32 16453))
75
+ (return (getnearunaligned.f64 (const.i32 9)))
75
76
)
76
77
77
78
(export "data" $data)
83
84
(asserteq (invoke "data") (const.i32 1))
84
85
(asserteq (invoke "aligned") (const.i32 1))
85
86
(asserteq (invoke "unaligned") (const.i32 1))
86
- (invoke "cast") ;; -3.10552331246e+231 : f64
87
+ (asserteq ( invoke "cast") (const. f64 42.0))
You can’t perform that action at this time.
0 commit comments