Add unarrow instruction with x86 implementation

Adds a shared `unarrow` instruction in order to lower the Wasm SIMD specification's unsigned narrowing (see https://github.com/WebAssembly/simd/blob/master/proposals/simd/SIMD.md#integer-to-integer-narrowing). Additionally, this commit implements the instruction for x86 using PACKUSWB and PACKUSDW for the applicable encodings.
This commit is contained in:
Andrew Brown
2020-07-01 10:46:59 -07:00
parent 65e6de2344
commit 057c93b64e
6 changed files with 47 additions and 3 deletions

View File

@@ -2070,7 +2070,7 @@ pub(crate) fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
Opcode::AvgRound => unimplemented!(),
Opcode::Iabs => unimplemented!(),
Opcode::Snarrow => unimplemented!(),
Opcode::Snarrow | Opcode::Unarrow => unimplemented!(),
Opcode::TlsValue => unimplemented!(),
}