Skip to content

Commit

Permalink
x64: Add test for a fixed issue
Browse files Browse the repository at this point in the history
This commit adds a test from bytecodealliance#3337 which is an issue that was fixed
in bytecodealliance#3506 due to moving `imul` lowering rules to ISLE which fixed the
underlying issue of accidentally not falling through to the necessary
case for general `i64x2.mul` multiplication.

Closes bytecodealliance#3337
  • Loading branch information
alexcrichton committed Nov 19, 2021
1 parent 352ee2b commit efa3468
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/misc_testsuite/simd/almost-extmul.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
;; regression test from #3337, there's a multiplication that sort of
;; looks like an extmul and codegen shouldn't pattern match too much
(module
(type (;0;) (func))
(func (;0;) (type 0)
v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000
i64x2.extend_low_i32x4_u
v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000
i64x2.mul
i32x4.all_true
i64.load offset=1 align=1
drop
unreachable)
(func (;1;) (type 0)
nop)
(memory (;0;) 5613 17832))

0 comments on commit efa3468

Please sign in to comment.