-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3209 from jlb6740/fix-3161
Remove unnecessary, too strict assertion. Fix for 3161.
- Loading branch information
Showing
2 changed files
with
109 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
;; Tests inspired by https://github.com/bytecodealliance/wasmtime/issues/3161 | ||
;; which found issue in lowering Opcode::FcvtFromUint where valid instruction | ||
;; patterns were rejected | ||
(module | ||
(func (export "i16x8.extend_low_i8x16_s") (param v128) (result v128) | ||
local.get 0 | ||
i16x8.extend_low_i8x16_s | ||
f32x4.convert_i32x4_u) | ||
(func (export "i16x8.extend_low_i8x16_u") (param v128) (result v128) | ||
local.get 0 | ||
i16x8.extend_low_i8x16_u | ||
f32x4.convert_i32x4_u) | ||
(func (export "i32x4.extend_low_i16x8_s") (param v128) (result v128) | ||
local.get 0 | ||
i32x4.extend_low_i16x8_s | ||
f32x4.convert_i32x4_u) | ||
(func (export "i32x4.extend_low_i16x8_u") (param v128) (result v128) | ||
local.get 0 | ||
i32x4.extend_low_i16x8_u | ||
f32x4.convert_i32x4_u) | ||
(func (export "i64x2.extend_low_i32x4_s") (param v128) (result v128) | ||
local.get 0 | ||
i64x2.extend_low_i32x4_s | ||
f32x4.convert_i32x4_u) | ||
(func (export "i64x2.extend_low_i32x4_u") (param v128) (result v128) | ||
local.get 0 | ||
i64x2.extend_low_i32x4_u | ||
f32x4.convert_i32x4_u) | ||
) | ||
|
||
(assert_return (invoke "i16x8.extend_low_i8x16_s" (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)) | ||
(v128.const f32x4 0 0 0 0)) | ||
|
||
(assert_return (invoke "i16x8.extend_low_i8x16_u" (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)) | ||
(v128.const f32x4 0 0 0 0)) | ||
|
||
(assert_return (invoke "i32x4.extend_low_i16x8_s" (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)) | ||
(v128.const f32x4 0 0 0 0)) | ||
|
||
(assert_return (invoke "i32x4.extend_low_i16x8_u" (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)) | ||
(v128.const f32x4 0 0 0 0)) | ||
|
||
(assert_return (invoke "i64x2.extend_low_i32x4_s" (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)) | ||
(v128.const f32x4 0 0 0 0)) | ||
|
||
(assert_return (invoke "i64x2.extend_low_i32x4_u" (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)) | ||
(v128.const f32x4 0 0 0 0)) |