Merge pull request #3279 from dheaton-arm/implement-insertlane

Implement `Insertlane` for the Cranelift interpreter
This commit is contained in:
Chris Fallin
2021-09-02 09:44:59 -07:00
committed by GitHub
3 changed files with 39 additions and 1 deletions

View File

@@ -298,6 +298,7 @@ impl InstructionData {
&InstructionData::UnaryBool { imm, .. } => Some(DataValue::from(imm)),
// 8-bit.
&InstructionData::BinaryImm8 { imm, .. }
| &InstructionData::TernaryImm8 { imm, .. }
| &InstructionData::BranchTableEntry { imm, .. } => Some(DataValue::from(imm as i8)), // Note the switch from unsigned to signed.
// 32-bit
&InstructionData::UnaryIeee32 { imm, .. } => Some(DataValue::from(imm)),