cranelift x64: add instruction set checks for popcnt/tzcnt/lzcnt;

This commit is contained in:
Benjamin Bouvier
2021-01-30 13:38:55 +01:00
parent a4eaefc670
commit 13027ad670
3 changed files with 24 additions and 4 deletions

View File

@@ -539,7 +539,6 @@ impl Inst {
| Inst::SignExtendData { .. }
| Inst::TrapIf { .. }
| Inst::Ud2 { .. }
| Inst::UnaryRmR { .. }
| Inst::VirtualSPOffsetAdj { .. }
| Inst::XmmCmove { .. }
| Inst::XmmCmpRmR { .. }
@@ -550,6 +549,8 @@ impl Inst {
| Inst::MachOTlsGetAddr { .. }
| Inst::ValueLabelMarker { .. } => None,
Inst::UnaryRmR { op, .. } => op.available_from(),
// These use dynamic SSE opcodes.
Inst::GprToXmm { op, .. }
| Inst::XmmMovRM { op, .. }