Browse Source

Fix CI

pull/3497/head
bjorn3 3 years ago
parent
commit
86d2ef8952
  1. 4
      cranelift/interpreter/src/step.rs
  2. 4
      cranelift/reader/src/parser.rs

4
cranelift/interpreter/src/step.rs

@ -76,12 +76,12 @@ where
.as_slice();
DataValue::V128(buffer.try_into().expect("a 16-byte data buffer"))
}
InstructionData::Shuffle { mask, .. } => {
InstructionData::Shuffle { imm, .. } => {
let mask = state
.get_current_function()
.dfg
.immediates
.get(mask)
.get(imm)
.unwrap()
.as_slice();
DataValue::V128(mask.try_into().expect("a 16-byte vector mask"))

4
cranelift/reader/src/parser.rs

@ -2694,10 +2694,10 @@ impl<'a> Parser<'a> {
let b = self.match_value("expected SSA value second operand")?;
self.match_token(Token::Comma, "expected ',' between operands")?;
let uimm128 = self.match_uimm128(I8X16)?;
let mask = ctx.function.dfg.immediates.push(uimm128);
let imm = ctx.function.dfg.immediates.push(uimm128);
InstructionData::Shuffle {
opcode,
mask,
imm,
args: [a, b],
}
}

Loading…
Cancel
Save