x64: Improve memory support in {insert,extract}lane (#5982)
* x64: Improve memory support in `{insert,extract}lane`
This commit improves adds support to Cranelift to emit `pextr{b,w,d,q}`
with a memory destination, merging a store-of-extract operation into one
instruction. Additionally AVX support is added for the `pextr*`
instructions.
I've additionally tried to ensure that codegen tests and runtests exist
for all forms of these instructions too.
* Add missing commas
* Fix tests
This commit is contained in:
@@ -1699,7 +1699,11 @@ impl AvxOpcode {
|
||||
| AvxOpcode::Vmovsd
|
||||
| AvxOpcode::Vmovups
|
||||
| AvxOpcode::Vmovupd
|
||||
| AvxOpcode::Vmovdqu => {
|
||||
| AvxOpcode::Vmovdqu
|
||||
| AvxOpcode::Vpextrb
|
||||
| AvxOpcode::Vpextrw
|
||||
| AvxOpcode::Vpextrd
|
||||
| AvxOpcode::Vpextrq => {
|
||||
smallvec![InstructionSet::AVX]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user