-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix float splat with immediate in JIT
Signed-off-by: Zoltan Herczeg [email protected]
- Loading branch information
1 parent
f8d10d7
commit ea09733
Showing
3 changed files
with
31 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(module | ||
(table $t 10 externref) | ||
|
||
(func (export "splat_f32") (result v128) | ||
f32.const 1234.75 | ||
f32x4.splat | ||
) | ||
|
||
(func (export "splat_f64") (result v128) | ||
f64.const -123456.75 | ||
f64x2.splat | ||
) | ||
) | ||
|
||
(assert_return (invoke "splat_f32") (v128.const f32x4 1234.75 1234.75 1234.75 1234.75)) | ||
(assert_return (invoke "splat_f64") (v128.const f64x2 -123456.75 -123456.75)) |