-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuzz: adds a float<>int conversion case (#2032)
Signed-off-by: Takeshi Yoneda <[email protected]>
- Loading branch information
Showing
3 changed files
with
267 additions
and
0 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
Binary file not shown.
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,251 @@ | ||
(module | ||
(func (param i32) (result f32 f64) | ||
i32.const 1 | ||
f32.convert_i32_s | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
i32.const 1 | ||
f64.convert_i32_s | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c3c7c7c7cp+968 (;=4441722447000897000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.a0a7c7c7c7c7cp-863 (;=0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002646371332579738;) | ||
i64.const 0 | ||
i64.const 0 | ||
i64.const 0 | ||
i64.const 0 | ||
i64.const 0 | ||
i64.const 0 | ||
i32.const 0 | ||
f32.const -0x1.a3a3a2p+36 (;=-112646040000;) | ||
f64.const -0x1.c41b44c4abff8p-791 (;=-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001356045409382692;) | ||
f64.const 0x1.c7c7c7c7c7c3fp+968 (;=4441723041807626700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.const -0x1.658afep-39 (;=-0.0000000000025404954;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.79cb0d6961b45p+710 (;=7948973738950113000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const -0x1.f7c7c7c7c7c7cp-775 (;=-0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009902723550684624;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c3f7c7cp+968 (;=4441723039593109000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x0p+0 (;=0;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
f64.const 0x1.c7c7c7c7c7c7cp+968 (;=4441723041807660500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;) | ||
f32.demote_f64 | ||
global.set $result1 | ||
global.get $result1 | ||
f64.promote_f32 | ||
global.set $result2 | ||
global.get $result2 | ||
local.get 0 | ||
i32.eqz | ||
if | ||
global.get $result1 | ||
global.get $result2 | ||
return | ||
else | ||
end | ||
|
||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
global.get 1 | ||
global.set 1 | ||
global.get 1 | ||
global.set 1 | ||
global.get 1 | ||
global.set 1 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
i64.reinterpret_f64 | ||
global.get 0 | ||
i64.xor | ||
global.set 0 | ||
i32.reinterpret_f32 | ||
global.get 1 | ||
i32.xor | ||
global.set 1 | ||
unreachable | ||
) | ||
(global (;0;) (mut i64) i64.const 0) | ||
(global (;2;) (mut i32) i32.const 0) | ||
(global $result1 (mut f32) f32.const 0) | ||
(global $result2 (mut f64) f64.const 0) | ||
(global (mut f64) f64.const 0) ;; dummy | ||
(export "" (func 0)) | ||
) |