A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Cranelift: remove the rest of the `*_imm` instructions (#13553)
Nick Fitzgerald179484779594
diff --git a/cranelift/codegen/meta/src/shared/formats.rs b/cranelift/codegen/meta/src/shared/formats.rsindex 32c5d8b6ec..6abb605278 100644--- a/cranelift/codegen/meta/src/shared/formats.rs+++ b/cranelift/codegen/meta/src/shared/formats.rs@@ -7,7 +7,6 @@ pub(crate) struct Formats {pub(crate) atomic_rmw: Rc<InstructionFormat>,pub(crate) binary: Rc<InstructionFormat>,pub(crate) binary_imm8: Rc<InstructionFormat>,- pub(crate) binary_imm64: Rc<InstructionFormat>,pub(crate) branch_table: Rc<InstructionFormat>,pub(crate) brif: Rc<InstructionFormat>,pub(crate) call: Rc<InstructionFormat>,@@ -69,8 +68,6 @@ impl Formats {binary_imm8: Builder::new("BinaryImm8").value().imm(&imm.uimm8).build(),- binary_imm64: Builder::new("BinaryImm64").value().imm(&imm.imm64).build(),-// The select instructions are controlled by the second VALUE operand.// The first VALUE operand is the controlling flag which has a derived type.// The fma instruction has the same constraint on all inputs.diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rsindex a0203f95e6..0c4c791c80 100644--- a/cranelift/codegen/meta/src/shared/instructions.rs+++ b/cranelift/codegen/meta/src/shared/instructions.rs@@ -1964,7 +1964,8 @@ pub(crate) fn define(.operands_in(vec![Operand::new("x", iB), Operand::new("y", iB)]).operands_out(vec![Operand::new("a", iB)]).can_trap()- .side_effects_idempotent(),+ .side_effects_idempotent()+ .inst_builder_imm_method(true),);ig.push(@@ -1980,60 +1981,8 @@ pub(crate) fn define(.operands_in(vec![Operand::new("x", iB), Operand::new("y", iB)]).operands_out(vec![Operand::new("a", iB)]).can_trap()- .side_effects_idempotent(),- );-- ig.push(- Inst::new(- "urem_imm",- r#"- Unsigned integer remainder with immediate divisor.-- Same as `urem`, but one operand is a zero extended 64 bit immediate constant.-- This operation traps if the divisor is zero.- "#,- &formats.binary_imm64,- )- .operands_in(vec![Operand::new("x", iB), Operand::new("Y", &imm.imm64)])- .operands_out(vec![Operand::new("a", iB)]),- );-- ig.push(- Inst::new(- "srem_imm",- r#"- Signed integer remainder with immediate divisor.-- Same as `srem`, but one operand is a sign extended 64 bit immediate constant.-- This operation traps if the divisor is zero.- "#,- &formats.binary_imm64,- )- .operands_in(vec![Operand::new("x", iB), Operand::new("Y", &imm.imm64)])- .operands_out(vec![Operand::new("a", iB)]),- );-- ig.push(- Inst::new(- "irsub_imm",- r#"- Immediate reverse wrapping subtraction: `a := Y - x \pmod{2^B}`.-- The immediate operand is a sign extended 64 bit constant.-- Also works as integer negation when `Y = 0`. Use `iadd_imm`- with a negative immediate operand for the reverse immediate- subtraction.-- Polymorphic over all scalar integer types, but does not support vector- types.- "#,- &formats.binary_imm64,- )- .operands_in(vec![Operand::new("x", iB), Operand::new("Y", &imm.imm64)])- .operands_out(vec![Operand::new("a", iB)]),+ .side_effects_idempotent()+ .inst_builder_imm_method(true),);ig.push(@@ -2291,7 +2240,8 @@ pub(crate) fn define(&formats.binary,).operands_in(vec![Operand::new("x", bits), Operand::new("y", bits)])- .operands_out(vec![Operand::new("a", bits)]),+ .operands_out(vec![Operand::new("a", bits)])+ .inst_builder_imm_method(true),);ig.push(@@ -2303,7 +2253,8 @@ pub(crate) fn define(&formats.binary,).operands_in(vec![Operand::new("x", bits), Operand::new("y", bits)])- .operands_out(vec![Operand::new("a", bits)]),+ .operands_out(vec![Operand::new("a", bits)])+ .inst_builder_imm_method(true),);ig.push(@@ -2315,7 +2266,8 @@ pub(crate) fn define(&formats.binary,).operands_in(vec![Operand::new("x", bits), Operand::new("y", bits)])- .operands_out(vec![Operand::new("a", bits)]),+ .operands_out(vec![Operand::new("a", bits)])+ .inst_builder_imm_method(true),);ig.push(@@ -2372,57 +2324,6 @@ pub(crate) fn define(.operands_out(vec![Operand::new("a", bits)]),);- ig.push(- Inst::new(- "band_imm",- r#"- Bitwise and with immediate.-- Same as `band`, but one operand is a zero extended 64 bit immediate constant.-- Polymorphic over all scalar integer types, but does not support vector- types.- "#,- &formats.binary_imm64,- )- .operands_in(vec![Operand::new("x", iB), Operand::new("Y", &imm.imm64)])- .operands_out(vec![Operand::new("a", iB)]),- );-- ig.push(- Inst::new(- "bor_imm",- r#"- Bitwise or with immediate.-- Same as `bor`, but one operand is a zero extended 64 bit immediate constant.-- Polymorphic over all scalar integer types, but does not support vector- types.- "#,- &formats.binary_imm64,- )- .operands_in(vec![Operand::new("x", iB), Operand::new("Y", &imm.imm64)])- .operands_out(vec![Operand::new("a", iB)]),- );-- ig.push(- Inst::new(- "bxor_imm",- r#"- Bitwise xor with immediate.-- Same as `bxor`, but one operand is a zero extended 64 bit immediate constant.-- Polymorphic over all scalar integer types, but does not support vector- types.- "#,- &formats.binary_imm64,- )- .operands_in(vec![Operand::new("x", iB), Operand::new("Y", &imm.imm64)])- .operands_out(vec![Operand::new("a", iB)]),- );-ig.push(Inst::new("rotl",@@ -2437,7 +2338,8 @@ pub(crate) fn define(Operand::new("x", Int).with_doc("Scalar or vector value to shift"),Operand::new("y", iB).with_doc("Number of bits to shift"),])- .operands_out(vec![Operand::new("a", Int)]),+ .operands_out(vec![Operand::new("a", Int)])+ .inst_builder_imm_method(true),);ig.push(@@ -2454,41 +2356,8 @@ pub(crate) fn define(Operand::new("x", Int).with_doc("Scalar or vector value to shift"),Operand::new("y", iB).with_doc("Number of bits to shift"),])- .operands_out(vec![Operand::new("a", Int)]),- );-- ig.push(- Inst::new(- "rotl_imm",- r#"- Rotate left by immediate.-- Same as `rotl`, but one operand is a zero extended 64 bit immediate constant.- "#,- &formats.binary_imm64,- )- .operands_in(vec![- Operand::new("x", Int).with_doc("Scalar or vector value to shift"),- Operand::new("Y", &imm.imm64),- ])- .operands_out(vec![Operand::new("a", Int)]),- );-- ig.push(- Inst::new(- "rotr_imm",- r#"- Rotate right by immediate.-- Same as `rotr`, but one operand is a zero extended 64 bit immediate constant.- "#,- &formats.binary_imm64,- )- .operands_in(vec![- Operand::new("x", Int).with_doc("Scalar or vector value to shift"),- Operand::new("Y", &imm.imm64),- ])- .operands_out(vec![Operand::new("a", Int)]),+ .operands_out(vec![Operand::new("a", Int)])+ .inst_builder_imm_method(true),);ig.push(@@ -2513,7 +2382,8 @@ pub(crate) fn define(Operand::new("x", Int).with_doc("Scalar or vector value to shift"),Operand::new("y", iB).with_doc("Number of bits to shift"),])- .operands_out(vec![Operand::new("a", Int)]),+ .operands_out(vec![Operand::new("a", Int)])+ .inst_builder_imm_method(true),);ig.push(@@ -2539,7 +2409,8 @@ pub(crate) fn define(Operand::new("x", Int).with_doc("Scalar or vector value to shift"),Operand::new("y", iB).with_doc("Number of bits to shift"),])- .operands_out(vec![Operand::new("a", Int)]),+ .operands_out(vec![Operand::new("a", Int)])+ .inst_builder_imm_method(true),);ig.push(@@ -2558,58 +2429,8 @@ pub(crate) fn define(Operand::new("x", Int).with_doc("Scalar or vector value to shift"),Operand::new("y", iB).with_doc("Number of bits to shift"),])- .operands_out(vec![Operand::new("a", Int)]),- );-- ig.push(- Inst::new(- "ishl_imm",- r#"- Integer shift left by immediate.-- The shift amount is masked to the size of ``x``.- "#,- &formats.binary_imm64,- )- .operands_in(vec![- Operand::new("x", Int).with_doc("Scalar or vector value to shift"),- Operand::new("Y", &imm.imm64),- ])- .operands_out(vec![Operand::new("a", Int)]),- );-- ig.push(- Inst::new(- "ushr_imm",- r#"- Unsigned shift right by immediate.-- The shift amount is masked to the size of ``x``.- "#,- &formats.binary_imm64,- )- .operands_in(vec![- Operand::new("x", Int).with_doc("Scalar or vector value to shift"),- Operand::new("Y", &imm.imm64),- ])- .operands_out(vec![Operand::new("a", Int)]),- );-- ig.push(- Inst::new(- "sshr_imm",- r#"- Signed shift right by immediate.-- The shift amount is masked to the size of ``x``.- "#,- &formats.binary_imm64,- )- .operands_in(vec![- Operand::new("x", Int).with_doc("Scalar or vector value to shift"),- Operand::new("Y", &imm.imm64),- ])- .operands_out(vec![Operand::new("a", Int)]),+ .operands_out(vec![Operand::new("a", Int)])+ .inst_builder_imm_method(true),);ig.push(diff --git a/cranelift/codegen/src/ir/instructions.rs b/cranelift/codegen/src/ir/instructions.rsindex fd2c6d7809..78ecc596b6 100644--- a/cranelift/codegen/src/ir/instructions.rs+++ b/cranelift/codegen/src/ir/instructions.rs@@ -642,15 +642,6 @@ impl InstructionData {Self::UnaryImm { opcode: _, imm } => {*imm = imm.mask_to_width(bit_width);}- Self::BinaryImm64 {- opcode,- arg: _,- imm,- } => {- if *opcode == Opcode::SremImm {- *imm = imm.mask_to_width(bit_width);- }- }_ => {}}}diff --git a/cranelift/codegen/src/legalizer/mod.rs b/cranelift/codegen/src/legalizer/mod.rsindex 35be9a826e..3e5941ae06 100644--- a/cranelift/codegen/src/legalizer/mod.rs+++ b/cranelift/codegen/src/legalizer/mod.rs@@ -14,8 +14,6 @@//! from the encoding recipes, and solved later by the register allocator.use crate::cursor::{Cursor, FuncCursor};-use crate::ir::immediates::Imm64;-use crate::ir::types::{self, I64, I128};use crate::ir::{self, InstBuilder, InstructionData, MemFlagsData, Value};use crate::isa::TargetIsa;use crate::trace;@@ -28,31 +26,6 @@ mod globalvalue;use self::branch_to_trap::BranchToTrap;use self::globalvalue::expand_global_value;-fn imm_const(pos: &mut FuncCursor, arg: Value, imm: Imm64, is_signed: bool) -> Value {- let ty = pos.func.dfg.value_type(arg);- match (ty, is_signed) {- (I128, true) => {- let imm = pos.ins().iconst(I64, imm);- pos.ins().sextend(I128, imm)- }- (I128, false) => {- let imm = pos.ins().iconst(I64, imm);- pos.ins().uextend(I128, imm)- }- _ => {- let bits = imm.bits();- let unsigned = match ty.lane_type() {- types::I8 => bits as u8 as i64,- types::I16 => bits as u16 as i64,- types::I32 => bits as u32 as i64,- types::I64 => bits,- _ => unreachable!(),- };- pos.ins().iconst(ty.lane_type(), unsigned)- }- }-}-/// A command describing how the walk over instructions should proceed.enum WalkCommand {/// Continue walking to the next instruction, if any.@@ -149,10 +122,6 @@ pub fn simple_legalize(func: &mut ir::Function, isa: &dyn TargetIsa) {dynamic_stack_slot,} => expand_dynamic_stack_store(isa, func, inst, arg, dynamic_stack_slot),- InstructionData::BinaryImm64 { opcode, arg, imm } => {- expand_binary_imm64(func, inst, opcode, arg, imm)- }-InstructionData::Binary { opcode, args } => expand_binary(func, inst, opcode, args),_ => WalkCommand::Continue,@@ -193,68 +162,6 @@ fn expand_binary(WalkCommand::Continue}-fn expand_binary_imm64(- func: &mut ir::Function,- inst: ir::Inst,- opcode: ir::Opcode,- arg: Value,- imm: Imm64,-) -> WalkCommand {- let mut pos = FuncCursor::new(func);- pos.goto_inst(inst);-- let is_signed = match opcode {- ir::Opcode::IrsubImm | ir::Opcode::SremImm => true,- _ => false,- };-- let imm = imm_const(&mut pos, arg, imm, is_signed);-- let replace = pos.func.replace(inst);- match opcode {- // bitops- ir::Opcode::BandImm => {- replace.band(arg, imm);- }- ir::Opcode::BorImm => {- replace.bor(arg, imm);- }- ir::Opcode::BxorImm => {- replace.bxor(arg, imm);- }- // bitshifting- ir::Opcode::IshlImm => {- replace.ishl(arg, imm);- }- ir::Opcode::RotlImm => {- replace.rotl(arg, imm);- }- ir::Opcode::RotrImm => {- replace.rotr(arg, imm);- }- ir::Opcode::SshrImm => {- replace.sshr(arg, imm);- }- ir::Opcode::UshrImm => {- replace.ushr(arg, imm);- }- // math- ir::Opcode::IrsubImm => {- // note: arg order reversed- replace.isub(imm, arg);- }- ir::Opcode::SremImm => {- replace.srem(arg, imm);- }- ir::Opcode::UremImm => {- replace.urem(arg, imm);- }- _ => {}- }-- WalkCommand::Continue-}-fn expand_dynamic_stack_store(isa: &dyn TargetIsa,func: &mut ir::Function,diff --git a/cranelift/codegen/src/souper_harvest.rs b/cranelift/codegen/src/souper_harvest.rsindex 982e536171..b379ec66e2 100644--- a/cranelift/codegen/src/souper_harvest.rs+++ b/cranelift/codegen/src/souper_harvest.rs@@ -95,27 +95,18 @@ fn harvest_candidate_lhs(let should_trace = |val| match func.dfg.value_def(val) {ir::ValueDef::Result(inst, 0) => match func.dfg.insts[inst].opcode() {ir::Opcode::Iadd- | ir::Opcode::IrsubImm| ir::Opcode::Imul| ir::Opcode::Udiv| ir::Opcode::Sdiv| ir::Opcode::Urem- | ir::Opcode::UremImm| ir::Opcode::Srem- | ir::Opcode::SremImm| ir::Opcode::Band- | ir::Opcode::BandImm| ir::Opcode::Bor- | ir::Opcode::BorImm| ir::Opcode::Bxor- | ir::Opcode::BxorImm| ir::Opcode::Bnot| ir::Opcode::Ishl- | ir::Opcode::IshlImm| ir::Opcode::Sshr- | ir::Opcode::SshrImm| ir::Opcode::Ushr- | ir::Opcode::UshrImm| ir::Opcode::Select| ir::Opcode::Uextend| ir::Opcode::Sextend@@ -181,17 +172,6 @@ fn harvest_candidate_lhs(let b = arg(allocs, 1);ast::Instruction::Add { a, b }.into()}- (ir::Opcode::IrsubImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let b = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let a = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Sub { a, b }.into()- }(ir::Opcode::Imul, _) => {let a = arg(allocs, 0);let b = arg(allocs, 1);@@ -212,81 +192,26 @@ fn harvest_candidate_lhs(let b = arg(allocs, 1);ast::Instruction::Urem { a, b }.into()}- (ir::Opcode::UremImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Urem { a, b }.into()- }(ir::Opcode::Srem, _) => {let a = arg(allocs, 0);let b = arg(allocs, 1);ast::Instruction::Srem { a, b }.into()}- (ir::Opcode::SremImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Srem { a, b }.into()- }(ir::Opcode::Band, _) => {let a = arg(allocs, 0);let b = arg(allocs, 1);ast::Instruction::And { a, b }.into()}- (ir::Opcode::BandImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::And { a, b }.into()- }(ir::Opcode::Bor, _) => {let a = arg(allocs, 0);let b = arg(allocs, 1);ast::Instruction::Or { a, b }.into()}- (ir::Opcode::BorImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Or { a, b }.into()- }(ir::Opcode::Bxor, _) => {let a = arg(allocs, 0);let b = arg(allocs, 1);ast::Instruction::Xor { a, b }.into()}- (ir::Opcode::BxorImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Xor { a, b }.into()- }(ir::Opcode::Bnot, _) => {let a = arg(allocs, 0);let b = ast::Constant {@@ -301,49 +226,16 @@ fn harvest_candidate_lhs(let b = arg(allocs, 1);ast::Instruction::Shl { a, b }.into()}- (ir::Opcode::IshlImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Shl { a, b }.into()- }(ir::Opcode::Sshr, _) => {let a = arg(allocs, 0);let b = arg(allocs, 1);ast::Instruction::Ashr { a, b }.into()}- (ir::Opcode::SshrImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Ashr { a, b }.into()- }(ir::Opcode::Ushr, _) => {let a = arg(allocs, 0);let b = arg(allocs, 1);ast::Instruction::Lshr { a, b }.into()}- (ir::Opcode::UshrImm, ir::InstructionData::BinaryImm64 { imm, .. }) => {- let a = arg(allocs, 0);- let value: i64 = (*imm).into();- let value: i128 = value.into();- let b = ast::Constant {- value,- r#type: souper_type_of(&func.dfg, val),- }- .into();- ast::Instruction::Lshr { a, b }.into()- }(ir::Opcode::Select, _) => {let a = arg(allocs, 0);diff --git a/cranelift/codegen/src/verifier/mod.rs b/cranelift/codegen/src/verifier/mod.rsindex 3e93e6d5fe..f07afc305e 100644--- a/cranelift/codegen/src/verifier/mod.rs+++ b/cranelift/codegen/src/verifier/mod.rs@@ -743,7 +743,6 @@ impl<'a> Verifier<'a> {| UnaryIeee64 { .. }| Binary { .. }| BinaryImm8 { .. }- | BinaryImm64 { .. }| Ternary { .. }| TernaryImm8 { .. }| Shuffle { .. }diff --git a/cranelift/codegen/src/write.rs b/cranelift/codegen/src/write.rsindex 92e6a4ce60..3d5b0fc2d0 100644--- a/cranelift/codegen/src/write.rs+++ b/cranelift/codegen/src/write.rs@@ -417,13 +417,6 @@ pub fn write_operands(w: &mut dyn Write, dfg: &DataFlowGraph, inst: Inst) -> fmt} => write!(w, " {constant_handle}"),Binary { args, .. } => write!(w, " {}, {}", args[0], args[1]),BinaryImm8 { arg, imm, .. } => write!(w, " {arg}, {imm}"),- BinaryImm64 { arg, imm, .. } => write!(w, " {}, {}", arg, {- let mut imm = imm;- if ctrl_ty.bits() != 0 {- imm = imm.sign_extend_from_width(ctrl_ty.bits());- }- imm- }),Ternary { args, .. } => write!(w, " {}, {}, {}", args[0], args[1], args[2]),MultiAry { ref args, .. } => {if args.is_empty() {diff --git a/cranelift/filetests/filetests/egraph/extends.clif b/cranelift/filetests/filetests/egraph/extends.clifindex a4b260eebf..fb891619f4 100644--- a/cranelift/filetests/filetests/egraph/extends.clif+++ b/cranelift/filetests/filetests/egraph/extends.clif@@ -240,7 +240,8 @@ block0(v0: i64):function %sext128(i64) -> i128 {block0(v0: i64):- v1 = sshr_imm v0, 63+ v3 = iconst.i64 63+ v1 = sshr v0, v3v2 = iconcat v0, v1return v2}diff --git a/cranelift/filetests/filetests/egraph/shifts.clif b/cranelift/filetests/filetests/egraph/shifts.clifindex e2179e1bd3..96da6611b6 100644--- a/cranelift/filetests/filetests/egraph/shifts.clif+++ b/cranelift/filetests/filetests/egraph/shifts.clif@@ -12,7 +12,6 @@ block0(v0: i8):; check: v5 = band v0, v4; check: return v5}-function %unsigned_shift_right_shift_left_i32(i32) -> i32 {block0(v0: i32):v1 = iconst.i32 5@@ -23,7 +22,6 @@ block0(v0: i32):; check: v5 = band v0, v4; check: return v5}-function %unsigned_shift_right_shift_left_i64(i64) -> i64 {block0(v0: i64):v1 = iconst.i64 5@@ -34,7 +32,6 @@ block0(v0: i64):; check: v5 = band v0, v4; check: return v5}-function %signed_shift_right_shift_left_i8(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 5@@ -45,7 +42,6 @@ block0(v0: i8):; check: v5 = band v0, v4; check: return v5}-function %signed_shift_right_shift_left_i32(i32) -> i32 {block0(v0: i32):v1 = iconst.i32 5@@ -56,7 +52,6 @@ block0(v0: i32):; check: v5 = band v0, v4; check: return v5}-function %signed_shift_right_shift_left_i64(i64) -> i64 {block0(v0: i64):v1 = iconst.i64 5@@ -67,7 +62,6 @@ block0(v0: i64):; check: v5 = band v0, v4; check: return v5}-function %signed_shift_right_shift_left_i8_mask_rhs(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 0xf5@@ -78,7 +72,6 @@ block0(v0: i8):; check: v8 = band v0, v7; check: return v8}-function %sextend_shift_32_64_unsigned(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 32@@ -89,7 +82,6 @@ block0(v0: i32):; check: v7 = uextend.i64 v0; check: return v7}-function %sextend_shift_32_64_signed(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 32@@ -99,7 +91,6 @@ block0(v0: i32):return v4; check: return v2}-function %sextend_undershift_32_64_unsigned(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 31@@ -111,7 +102,6 @@ block0(v0: i32):; check: v6 = band v2, v5; check: return v6}-function %sextend_undershift_32_64_signed(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 31@@ -121,7 +111,6 @@ block0(v0: i32):return v4; check: return v2}-function %sextend_shift_8_64_unsigned(i8) -> i64 {block0(v0: i8):v1 = iconst.i8 56@@ -132,7 +121,6 @@ block0(v0: i8):; check: v7 = uextend.i64 v0; check: return v7}-function %sextend_shift_8_64_signed(i8) -> i64 {block0(v0: i8):v1 = iconst.i8 56@@ -142,7 +130,6 @@ block0(v0: i8):return v4; check: return v2}-function %uextend_shift_32_64_unsigned(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 32@@ -152,7 +139,6 @@ block0(v0: i32):return v4; check: return v2}-function %uextend_shift_32_64_signed(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 32@@ -163,7 +149,6 @@ block0(v0: i32):; check: v5 = sextend.i64 v0; check: return v5}-function %uextend_undershift_32_64_unsigned(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 31@@ -173,7 +158,6 @@ block0(v0: i32):return v4; check: return v2}-function %uextend_undershift_32_64_signed(i32) -> i64 {block0(v0: i32):v1 = iconst.i8 31@@ -183,7 +167,6 @@ block0(v0: i32):return v4; check: return v2}-function %uextend_shift_8_64_unsigned(i8) -> i64 {block0(v0: i8):v1 = iconst.i8 56@@ -193,7 +176,6 @@ block0(v0: i8):return v4; check: return v2}-function %uextend_shift_8_64_signed(i8) -> i64 {block0(v0: i8):v1 = iconst.i8 56@@ -204,8 +186,6 @@ block0(v0: i8):; check: v5 = sextend.i64 v0; check: return v5}--function %ineg_ushr_to_sshr(i64) -> i64 {block0(v0: i64):v1 = iconst.i64 63@@ -215,316 +195,236 @@ block0(v0: i64):; check: v4 = sshr v0, v1; check: return v4}-function %i32_shl_sshr_8_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 24- v2 = sshr_imm v1, 24+ v7 = iconst.i32 24+ v1 = ishl v0, v7+ v11 = iconst.i32 24+ v2 = sshr v1, v11return v2- ; check: v5 = ireduce.i8 v0- ; check: v6 = sextend.i32 v5- ; check: return v6+ ; check: v12 = ireduce.i8 v0+ ; check: v13 = sextend.i32 v12+ ; check: return v13}-function %i32_shl_sshr_16_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 16- v2 = sshr_imm v1, 16+ v7 = iconst.i32 16+ v1 = ishl v0, v7+ v11 = iconst.i32 16+ v2 = sshr v1, v11return v2- ; check: v5 = ireduce.i16 v0- ; check: v6 = sextend.i32 v5- ; check: return v6+ ; check: v12 = ireduce.i16 v0+ ; check: v13 = sextend.i32 v12+ ; check: return v13}-function %i64_shl_sshr_8_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 56- v2 = sshr_imm v1, 56+ v7 = iconst.i64 56+ v1 = ishl v0, v7+ v11 = iconst.i64 56+ v2 = sshr v1, v11return v2- ; check: v5 = ireduce.i8 v0- ; check: v6 = sextend.i64 v5- ; check: return v6+ ; check: v12 = ireduce.i8 v0+ ; check: v13 = sextend.i64 v12+ ; check: return v13}-function %i64_shl_sshr_16_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 48- v2 = sshr_imm v1, 48+ v7 = iconst.i64 48+ v1 = ishl v0, v7+ v11 = iconst.i64 48+ v2 = sshr v1, v11return v2- ; check: v5 = ireduce.i16 v0- ; check: v6 = sextend.i64 v5- ; check: return v6+ ; check: v12 = ireduce.i16 v0+ ; check: v13 = sextend.i64 v12+ ; check: return v13}-function %i64_shl_sshr_32_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 32- v2 = sshr_imm v1, 32+ v7 = iconst.i64 32+ v1 = ishl v0, v7+ v11 = iconst.i64 32+ v2 = sshr v1, v11return v2- ; check: v5 = ireduce.i32 v0- ; check: v6 = sextend.i64 v5- ; check: return v6+ ; check: v12 = ireduce.i32 v0+ ; check: v13 = sextend.i64 v12+ ; check: return v13}-function %i32_shl_ushr_8_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 24- v2 = ushr_imm v1, 24+ v9 = iconst.i32 24+ v1 = ishl v0, v9+ v15 = iconst.i32 24+ v2 = ushr v1, v15return v2- ; check: v7 = ireduce.i8 v0- ; check: v8 = uextend.i32 v7- ; check: return v8+ ; check: v18 = ireduce.i8 v0+ ; check: v19 = uextend.i32 v18+ ; check: return v19}-function %i32_shl_ushr_16_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 16- v2 = ushr_imm v1, 16+ v9 = iconst.i32 16+ v1 = ishl v0, v9+ v15 = iconst.i32 16+ v2 = ushr v1, v15return v2- ; check: v7 = ireduce.i16 v0- ; check: v8 = uextend.i32 v7- ; check: return v8+ ; check: v18 = ireduce.i16 v0+ ; check: v19 = uextend.i32 v18+ ; check: return v19}-function %i64_shl_ushr_8_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 56- v2 = ushr_imm v1, 56+ v9 = iconst.i64 56+ v1 = ishl v0, v9+ v15 = iconst.i64 56+ v2 = ushr v1, v15return v2- ; check: v7 = ireduce.i8 v0- ; check: v8 = uextend.i64 v7- ; check: return v8+ ; check: v18 = ireduce.i8 v0+ ; check: v19 = uextend.i64 v18+ ; check: return v19}-function %i64_shl_ushr_16_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 48- v2 = ushr_imm v1, 48+ v9 = iconst.i64 48+ v1 = ishl v0, v9+ v15 = iconst.i64 48+ v2 = ushr v1, v15return v2- ; check: v7 = ireduce.i16 v0- ; check: v8 = uextend.i64 v7- ; check: return v8+ ; check: v18 = ireduce.i16 v0+ ; check: v19 = uextend.i64 v18+ ; check: return v19}-function %i64_shl_ushr_32_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 32- v2 = ushr_imm v1, 32+ v9 = iconst.i64 32+ v1 = ishl v0, v9+ v15 = iconst.i64 32+ v2 = ushr v1, v15return v2- ; check: v7 = ireduce.i32 v0- ; check: v8 = uextend.i64 v7- ; check: return v8+ ; check: v18 = ireduce.i32 v0+ ; check: v19 = uextend.i64 v18+ ; check: return v19}-function %ishl_amt_type_ireduce(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = ireduce.i8 v1v3 = ishl.i8 v0, v2return v3}--; check: v4 = ishl v0, v1-; check: return v4-function %ishl_amt_type_sextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = sextend.i32 v1v3 = ishl.i8 v0, v2return v3}--; check: v4 = ishl v0, v1-; check: return v4-function %ishl_amt_type_uextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = uextend.i32 v1v3 = ishl.i8 v0, v2return v3}--; check: v4 = ishl v0, v1-; check: return v4--function %ushr_amt_type_ireduce(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = ireduce.i8 v1v3 = ushr.i8 v0, v2return v3}--; check: v4 = ushr v0, v1-; check: return v4-function %ushr_amt_type_sextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = sextend.i32 v1v3 = ushr.i8 v0, v2return v3}--; check: v4 = ushr v0, v1-; check: return v4-function %ushr_amt_type_uextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = uextend.i32 v1v3 = ushr.i8 v0, v2return v3}--; check: v4 = ushr v0, v1-; check: return v4--function %sshr_amt_type_ireduce(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = ireduce.i8 v1v3 = sshr.i8 v0, v2return v3}--; check: v4 = sshr v0, v1-; check: return v4-function %sshr_amt_type_sextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = sextend.i32 v1v3 = sshr.i8 v0, v2return v3}--; check: v4 = sshr v0, v1-; check: return v4-function %sshr_amt_type_uextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = uextend.i32 v1v3 = sshr.i8 v0, v2return v3}--; check: v4 = sshr v0, v1-; check: return v4--function %rotr_amt_type_ireduce(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = ireduce.i8 v1v3 = rotr.i8 v0, v2return v3}--; check: v4 = rotr v0, v1-; check: return v4-function %rotr_amt_type_sextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = sextend.i32 v1v3 = rotr.i8 v0, v2return v3}--; check: v4 = rotr v0, v1-; check: return v4-function %rotr_amt_type_uextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = uextend.i32 v1v3 = rotr.i8 v0, v2return v3}--; check: v4 = rotr v0, v1-; check: return v4--function %rotl_amt_type_ireduce(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = ireduce.i8 v1v3 = rotl.i8 v0, v2return v3}--; check: v4 = rotl v0, v1-; check: return v4-function %rotl_amt_type_sextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = sextend.i32 v1v3 = rotl.i8 v0, v2return v3}--; check: v4 = rotl v0, v1-; check: return v4-function %rotl_amt_type_uextend(i8, i16) -> i8 {block0(v0: i8, v1: i16):v2 = uextend.i32 v1v3 = rotl.i8 v0, v2return v3}--; check: v4 = rotl v0, v1-; check: return v4--function %ishl_amt_type_iconcat(i8, i16, i16) -> i8 {block0(v0: i8, v1: i16, v2: i16):v3 = iconcat.i16 v1, v2v4 = ishl.i8 v0, v3return v4}--; check: v5 = ishl v0, v1-; check: return v5--function %ushr_amt_type_iconcat(i8, i16, i16) -> i8 {block0(v0: i8, v1: i16, v2: i16):v3 = iconcat.i16 v1, v2v4 = ushr.i8 v0, v3return v4}--; check: v5 = ushr v0, v1-; check: return v5--function %sshr_amt_type_iconcat(i8, i16, i16) -> i8 {block0(v0: i8, v1: i16, v2: i16):v3 = iconcat.i16 v1, v2v4 = sshr.i8 v0, v3return v4}--; check: v5 = sshr v0, v1-; check: return v5--function %rotr_amt_type_iconcat(i8, i16, i16) -> i8 {block0(v0: i8, v1: i16, v2: i16):v3 = iconcat.i16 v1, v2v4 = rotr.i8 v0, v3return v4}--; check: v5 = rotr v0, v1-; check: return v5--function %rotl_amt_type_iconcat(i8, i16, i16) -> i8 {block0(v0: i8, v1: i16, v2: i16):v3 = iconcat.i16 v1, v2v4 = rotl.i8 v0, v3return v4}--; check: v5 = rotl v0, v1-; check: return v5-function %ishl_prop_overflow(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 7@@ -533,10 +433,6 @@ block0(v0: i8):v4 = ishl.i8 v3, v2return v4}--; check: v5 = iconst.i8 0-; check: return v5 ; v5 = 0-function %ishl_prop_type_diff(i8) -> i8 {block0(v0: i8):v1 = iconst.i16 7@@ -545,10 +441,6 @@ block0(v0: i8):v4 = ishl.i8 v3, v2return v4}--; check: v5 = iconst.i8 0-; check: return v5 ; v5 = 0-function %ushr_prop(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 1@@ -557,11 +449,6 @@ block0(v0: i8):v4 = ushr.i8 v3, v2return v4}--; check: v5 = iconst.i8 2-; check: v6 = ushr v0, v5 ; v5 = 2-; check: return v6-function %ushr_prop_overflow(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 7@@ -570,11 +457,6 @@ block0(v0: i8):v4 = ushr.i8 v3, v2return v4}--; check: v5 = iconst.i8 0-; check: return v5 ; v5 = 0--function %sshr_prop(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 1@@ -583,11 +465,6 @@ block0(v0: i8):v4 = sshr.i8 v3, v2return v4}--; check: v5 = iconst.i8 2-; check: v6 = sshr v0, v5 ; v5 = 2-; check: return v6-function %i128_ushr_overflow_becomes_0(i128) -> i128 {block0(v0: i128):v1 = iconst.i16 200@@ -595,12 +472,6 @@ block0(v0: i128):v3 = ushr v2, v1return v3}--; check: v7 = iconst.i64 0-; nextln: v8 = uextend.i128 v7-; nextln: return v8--function %i128_ishl_overflow_becomes_0(i128) -> i128 {block0(v0: i128):v1 = iconst.i16 200@@ -608,11 +479,6 @@ block0(v0: i128):v3 = ishl v2, v1return v3}--; check: v7 = iconst.i64 0-; nextln: v8 = uextend.i128 v7-; nextln: return v8-function %simd_shift_does_not_panic(i8x16) -> i8x16 {block0(v0: i8x16):v1 = iconst.i64 0@@ -620,11 +486,6 @@ block0(v0: i8x16):v3 = ushr v2, v1return v3}--; check: v1 = iconst.i64 0-; nextln: v2 = ushr v0, v1 ; v1 = 0-; check: return v2-function %merges_shift_amount_based_on_lane_type(i8x16) -> i8x16 {block0(v0: i8x16):v1 = iconst.i16 30@@ -635,13 +496,6 @@ block0(v0: i8x16):v5 = sshr v4, v2return v5}--; check: v6 = iconst.i16 6-; check: v7 = sshr v0, v6-; check: v9 = sshr v7, v6-; check: return v9--function %rotr_rotr_prop(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 1@@ -650,22 +504,12 @@ block0(v0: i8):v4 = rotr.i8 v3, v2return v4}--; check: v6 = iconst.i8 2-; check: v11 = rotr v0, v6 ; v6 = 2-; check: return v11-function %rotr_rotr_add(i8, i8, i8) -> i8 {block0(v0: i8, v1: i8, v2: i8):v3 = rotr.i8 v0, v1v4 = rotr.i8 v3, v2return v4}--; check: v5 = iadd v1, v2-; check: v6 = rotr v0, v5-; check: return v6-function %rotl_rotl_prop(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 1@@ -674,23 +518,12 @@ block0(v0: i8):v4 = rotl.i8 v3, v2return v4}--; check: v6 = iconst.i8 2-; check: v11 = rotl v0, v6 ; v6 = 2-; check: return v11-function %rotl_rotl_add(i8, i8, i8) -> i8 {block0(v0: i8, v1: i8, v2: i8):v3 = rotl.i8 v0, v1v4 = rotl.i8 v3, v2return v4}--; check: v5 = iadd v1, v2-; check: v6 = rotl v0, v5-; check: return v6--function %rotl_rotr_prop(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 2@@ -699,22 +532,12 @@ block0(v0: i8):v4 = rotl.i8 v3, v2return v4}--; check: v2 = iconst.i8 1-; check: v14 = rotr v0, v2 ; v2 = 1-; check: return v14-function %rotl_rotr_add(i8, i8, i8) -> i8 {block0(v0: i8, v1: i8, v2: i8):v3 = rotr.i8 v0, v1v4 = rotl.i8 v3, v2return v4}--; check: v5 = isub v1, v2-; check: v6 = rotr v0, v5-; check: return v6-function %rotl_rotr_prop(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 2@@ -723,41 +546,24 @@ block0(v0: i8):v4 = rotr.i8 v3, v2return v4}--; check: v2 = iconst.i8 1-; check: v14 = rotl v0, v2 ; v2 = 1-; check: return v14-function %rotl_rotr_add(i8, i8, i8) -> i8 {block0(v0: i8, v1: i8, v2: i8):v3 = rotl.i8 v0, v1v4 = rotr.i8 v3, v2return v4}--; check: v5 = isub v1, v2-; check: v6 = rotl v0, v5-; check: return v6-function %rotl_rotr_subsume(i8, i8) -> i8 {block0(v0: i8, v1: i8):v2 = rotl.i8 v0, v1v3 = rotr.i8 v2, v1return v3}--; check: return v0--function %rotr_rotl_subsume(i8, i8) -> i8 {block0(v0: i8, v1: i8):v2 = rotr.i8 v0, v1v3 = rotl.i8 v2, v1return v3}--; check: return v0-function %rotr_iconst_select_iconsts(i8) -> i8 {block0(v0: i8):v1 = iconst.i8 1@@ -767,12 +573,6 @@ block0(v0: i8):v5 = rotr.i8 v1, v4return v5}--; check: v6 = iconst.i8 -128-; check: v7 = iconst.i8 64-; check: v8 = select v0, v6, v7-; check: return v8-function %shifts_to_rotl(i64) -> i64 {block0(v0: i64):v1 = iconst.i16 3@@ -782,12 +582,6 @@ block0(v0: i64):v5 = bor v3, v4return v5}--; check: v1 = iconst.i16 3-; nextln: v6 = rotl v0, v1 ; v1 = 3-; check: return v6--function %shifts_to_rotl_reverse(i64) -> i64 {block0(v0: i64):v1 = iconst.i16 32@@ -797,11 +591,6 @@ block0(v0: i64):v5 = bor v4, v3return v5}--; check: v1 = iconst.i16 32-; nextln: v6 = rotl v0, v1 ; v1 = 32-; check: return v6-function %shifts_to_rotr_equivalent(i64) -> i64 {block0(v0: i64):v1 = iconst.i16 3@@ -811,18 +600,9 @@ block0(v0: i64):v5 = bor v3, v4return v5}--; check: v2 = iconst.i32 61-; nextln: v6 = rotl v0, v2 ; v2 = 61-; check: return v6-function %ishl_normalize_amount(i64) -> i64 {block0(v0: i64):v1 = iconst.i32 99v2 = ishl v0, v1return v2}--; check: v3 = iconst.i32 35-; check: v4 = ishl v0, v3-; check: return v4diff --git a/cranelift/filetests/filetests/isa/aarch64/amodes.clif b/cranelift/filetests/filetests/isa/aarch64/amodes.clifindex cefb45c2c5..241f19b3a3 100644--- a/cranelift/filetests/filetests/isa/aarch64/amodes.clif+++ b/cranelift/filetests/filetests/isa/aarch64/amodes.clif@@ -523,7 +523,8 @@ block0(v0: i64, v1: i32):function %load_scaled16(i64, i64) -> i8 {block0(v0: i64, v1: i64):- v2 = ishl_imm v1, 0+ v5 = iconst.i64 0+ v2 = ishl v1, v5v3 = iadd v0, v2v4 = load.i8 v3return v4@@ -541,7 +542,8 @@ block0(v0: i64, v1: i64):function %load_scaled16(i64, i64) -> i16 {block0(v0: i64, v1: i64):- v2 = ishl_imm v1, 1+ v5 = iconst.i64 1+ v2 = ishl v1, v5v3 = iadd v0, v2v4 = load.i16 v3return v4@@ -559,7 +561,8 @@ block0(v0: i64, v1: i64):function %load_scaled32(i64, i64) -> i32 {block0(v0: i64, v1: i64):- v2 = ishl_imm v1, 2+ v5 = iconst.i64 2+ v2 = ishl v1, v5v3 = iadd v0, v2v4 = load.i32 v3return v4@@ -577,7 +580,8 @@ block0(v0: i64, v1: i64):function %load_scaled64(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ishl_imm v1, 3+ v5 = iconst.i64 3+ v2 = ishl v1, v5v3 = iadd v0, v2v4 = load.i64 v3return v4@@ -595,7 +599,8 @@ block0(v0: i64, v1: i64):function %load_not_scaled64(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ishl_imm v1, 2+ v5 = iconst.i64 2+ v2 = ishl v1, v5v3 = iadd v0, v2v4 = load.i64 v3return v4@@ -616,7 +621,8 @@ block0(v0: i64, v1: i64):function %load_uextend_scaled16(i64, i32) -> i8 {block0(v0: i64, v1: i32):v2 = uextend.i64 v1- v3 = ishl_imm v2, 0+ v6 = iconst.i64 0+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i8 v4return v5@@ -635,7 +641,8 @@ block0(v0: i64, v1: i32):function %load_uextend_scaled16(i64, i32) -> i16 {block0(v0: i64, v1: i32):v2 = uextend.i64 v1- v3 = ishl_imm v2, 1+ v6 = iconst.i64 1+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i16 v4return v5@@ -654,7 +661,8 @@ block0(v0: i64, v1: i32):function %load_uextend_scaled32(i64, i32) -> i32 {block0(v0: i64, v1: i32):v2 = uextend.i64 v1- v3 = ishl_imm v2, 2+ v6 = iconst.i64 2+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i32 v4return v5@@ -673,7 +681,8 @@ block0(v0: i64, v1: i32):function %load_uextend_scaled64(i64, i32) -> i64 {block0(v0: i64, v1: i32):v2 = uextend.i64 v1- v3 = ishl_imm v2, 3+ v6 = iconst.i64 3+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i64 v4return v5@@ -691,7 +700,8 @@ block0(v0: i64, v1: i32):function %load_not_extend_scaled64(i64, i32) -> i64 {block0(v0: i64, v1: i32):- v2 = ishl_imm v1, 3+ v6 = iconst.i32 3+ v2 = ishl v1, v6v3 = uextend.i64 v2v4 = iadd v0, v3v5 = load.i64 v4@@ -713,7 +723,8 @@ block0(v0: i64, v1: i32):function %load_sextend_scaled8(i64, i32) -> i8 {block0(v0: i64, v1: i32):v2 = sextend.i64 v1- v3 = ishl_imm v2, 0+ v6 = iconst.i64 0+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i8 v4return v5@@ -732,7 +743,8 @@ block0(v0: i64, v1: i32):function %load_sextend_scaled16(i64, i32) -> i16 {block0(v0: i64, v1: i32):v2 = sextend.i64 v1- v3 = ishl_imm v2, 1+ v6 = iconst.i64 1+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i16 v4return v5@@ -751,7 +763,8 @@ block0(v0: i64, v1: i32):function %load_sextend_scaled32(i64, i32) -> i32 {block0(v0: i64, v1: i32):v2 = sextend.i64 v1- v3 = ishl_imm v2, 2+ v6 = iconst.i64 2+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i32 v4return v5@@ -770,7 +783,8 @@ block0(v0: i64, v1: i32):function %load_sextend_scaled64(i64, i32) -> i64 {block0(v0: i64, v1: i32):v2 = sextend.i64 v1- v3 = ishl_imm v2, 3+ v6 = iconst.i64 3+ v3 = ishl v2, v6v4 = iadd v0, v3v5 = load.i64 v4return v5@@ -788,11 +802,13 @@ block0(v0: i64, v1: i32):function %no_panic(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v8 = ishl_imm v1, 100+ v11 = iconst.i64 100+ v8 = ishl v1, v11v9 = iadd v0, v8v10 = load.i64 v9- v5 = ishl_imm v1, 100+ v12 = iconst.i64 100+ v5 = ishl v1, v12v6 = iadd v5, v0v7 = load.i64 v6return v10diff --git a/cranelift/filetests/filetests/isa/aarch64/condbr.clif b/cranelift/filetests/filetests/isa/aarch64/condbr.clifindex 6ab00ba0f0..6f0842273f 100644--- a/cranelift/filetests/filetests/isa/aarch64/condbr.clif+++ b/cranelift/filetests/filetests/isa/aarch64/condbr.clif@@ -631,7 +631,8 @@ block1:function %tbnz_i8(i8) {block0(v0: i8):- v1 = band_imm v0, 0x10+ v2 = iconst.i8 16+ v1 = band v0, v2brif v1, block1, block2block1:@@ -658,7 +659,8 @@ block2:function %tbz_i16(i16) {block0(v0: i16):- v1 = band_imm v0, 0x1000+ v4 = iconst.i16 4096+ v1 = band v0, v4v3 = iconst.i16 0v2 = icmp eq v1, v3brif v2, block1, block2@@ -687,7 +689,8 @@ block2:function %tbnz_i32(i32) {block0(v0: i32):- v1 = band_imm v0, 0x10000+ v2 = iconst.i32 65536+ v1 = band v0, v2brif v1, block1, block2block1:@@ -715,7 +718,8 @@ block2:function %tbz_i64(i64) {block0(v0: i64):- v1 = band_imm v0, 0x1_00000000+ v4 = iconst.i64 0x1_00000000+ v1 = band v0, v4v3 = iconst.i64 0v2 = icmp eq v1, v3brif v2, block1, block2@@ -744,7 +748,8 @@ block2:function %not_tbz1(i8) {block0(v0: i8):- v1 = band_imm v0, 0x100+ v4 = iconst.i8 0+ v1 = band v0, v4v3 = iconst.i8 0v2 = icmp eq v1, v3brif v2, block1, block2@@ -779,7 +784,8 @@ block2:function %not_tbz2(i8) {block0(v0: i8):- v1 = band_imm v0, 0x3+ v4 = iconst.i8 3+ v1 = band v0, v4v3 = iconst.i8 0v2 = icmp eq v1, v3brif v2, block1, block2diff --git a/cranelift/filetests/filetests/isa/aarch64/extr.clif b/cranelift/filetests/filetests/isa/aarch64/extr.clifindex c89ca75207..da776cbb24 100644--- a/cranelift/filetests/filetests/isa/aarch64/extr.clif+++ b/cranelift/filetests/filetests/isa/aarch64/extr.clif@@ -3,8 +3,10 @@ target aarch64function %a64_extr_i32_12(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ushr_imm v0, 12- v3 = ishl_imm v1, 20+ v6 = iconst.i32 12+ v2 = ushr v0, v6+ v5 = iconst.i32 20+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -21,8 +23,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i32_12_swap(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ishl_imm v0, 20- v3 = ushr_imm v1, 12+ v5 = iconst.i32 20+ v2 = ishl v0, v5+ v6 = iconst.i32 12+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -39,8 +43,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i32_28(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ushr_imm v0, 4- v3 = ishl_imm v1, 28+ v6 = iconst.i32 4+ v2 = ushr v0, v6+ v5 = iconst.i32 28+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -57,8 +63,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i32_28_swap(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ishl_imm v0, 4- v3 = ushr_imm v1, 28+ v5 = iconst.i32 4+ v2 = ishl v0, v5+ v6 = iconst.i32 28+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -75,8 +83,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i64_12(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ushr_imm v0, 12- v3 = ishl_imm v1, 52+ v6 = iconst.i64 12+ v2 = ushr v0, v6+ v5 = iconst.i64 52+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -93,8 +103,10 @@ block0(v0: i64, v1: i64):function %a64_extr_i64_12_swap(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ishl_imm v0, 52- v3 = ushr_imm v1, 12+ v5 = iconst.i64 52+ v2 = ishl v0, v5+ v6 = iconst.i64 12+ v3 = ushr v1, v6v4 = bor v2, v3return v4}diff --git a/cranelift/filetests/filetests/isa/aarch64/i128.clif b/cranelift/filetests/filetests/isa/aarch64/i128.clifindex a07ca6a88f..62b71e3961 100644--- a/cranelift/filetests/filetests/isa/aarch64/i128.clif+++ b/cranelift/filetests/filetests/isa/aarch64/i128.clif@@ -52,7 +52,9 @@ block0(v0: i64, v1: i64):v2 = sextend.i128 v0v3 = sextend.i128 v1v4 = imul v2, v3- v5 = sshr_imm v4, 64+ v7 = iconst.i64 64+ v8 = uextend.i128 v7+ v5 = sshr v4, v8v6 = ireduce.i64 v5return v6}@@ -91,7 +93,9 @@ block0(v0: i64, v1: i64):v2 = uextend.i128 v0v3 = uextend.i128 v1v4 = imul v2, v3- v5 = ushr_imm v4, 64+ v7 = iconst.i64 64+ v8 = uextend.i128 v7+ v5 = ushr v4, v8v6 = ireduce.i64 v5return v6}diff --git a/cranelift/filetests/filetests/isa/aarch64/simd-bitwise-compile.clif b/cranelift/filetests/filetests/isa/aarch64/simd-bitwise-compile.clifindex fb53df63ed..02d398edfa 100644--- a/cranelift/filetests/filetests/isa/aarch64/simd-bitwise-compile.clif+++ b/cranelift/filetests/filetests/isa/aarch64/simd-bitwise-compile.clif@@ -306,7 +306,8 @@ block0(v0: i32):function %sshr_i8x16_imm(i8x16, i32) -> i8x16 {block0(v0: i8x16, v1: i32):- v2 = sshr_imm v0, 3+ v3 = iconst.i8 3+ v2 = sshr v0, v3return v2}diff --git a/cranelift/filetests/filetests/isa/pulley64/band.clif b/cranelift/filetests/filetests/isa/pulley64/band.clifindex 8df24e14f7..d393408c59 100644--- a/cranelift/filetests/filetests/isa/pulley64/band.clif+++ b/cranelift/filetests/filetests/isa/pulley64/band.clif@@ -3,7 +3,8 @@ target pulley64function %i8_imm(i8) -> i8 {block0(v0: i8):- v2 = band_imm v0, 7+ v3 = iconst.i8 7+ v2 = band v0, v3return v2}@@ -18,7 +19,8 @@ block0(v0: i8):function %i8_imm2(i8) -> i8 {block0(v0: i8):- v2 = band_imm v0, -7+ v3 = iconst.i8 -7+ v2 = band v0, v3return v2}@@ -33,7 +35,8 @@ block0(v0: i8):function %i16_imm(i16) -> i16 {block0(v0: i16):- v2 = band_imm v0, 7+ v3 = iconst.i16 7+ v2 = band v0, v3return v2}@@ -48,7 +51,8 @@ block0(v0: i16):function %i16_imm2(i16) -> i16 {block0(v0: i16):- v2 = band_imm v0, -7+ v3 = iconst.i16 -7+ v2 = band v0, v3return v2}@@ -63,7 +67,8 @@ block0(v0: i16):function %i32_imm(i32) -> i32 {block0(v0: i32):- v2 = band_imm v0, 7+ v3 = iconst.i32 7+ v2 = band v0, v3return v2}@@ -78,7 +83,8 @@ block0(v0: i32):function %i32_imm2(i32) -> i32 {block0(v0: i32):- v2 = band_imm v0, -7+ v3 = iconst.i32 -7+ v2 = band v0, v3return v2}@@ -93,7 +99,8 @@ block0(v0: i32):function %i32_imm_big(i32) -> i32 {block0(v0: i32):- v2 = band_imm v0, 77777+ v3 = iconst.i32 77777+ v2 = band v0, v3return v2}@@ -108,7 +115,8 @@ block0(v0: i32):function %i32_imm_big2(i32) -> i32 {block0(v0: i32):- v2 = band_imm v0, -77777+ v3 = iconst.i32 -77777+ v2 = band v0, v3return v2}@@ -123,7 +131,8 @@ block0(v0: i32):function %i64_imm(i64) -> i64 {block0(v0: i64):- v2 = band_imm v0, 7+ v3 = iconst.i64 7+ v2 = band v0, v3return v2}@@ -138,7 +147,8 @@ block0(v0: i64):function %i64_imm2(i64) -> i64 {block0(v0: i64):- v2 = band_imm v0, -7+ v3 = iconst.i64 -7+ v2 = band v0, v3return v2}@@ -153,7 +163,8 @@ block0(v0: i64):function %i64_imm_big(i64) -> i64 {block0(v0: i64):- v2 = band_imm v0, 77777+ v3 = iconst.i64 77777+ v2 = band v0, v3return v2}@@ -168,7 +179,8 @@ block0(v0: i64):function %i64_imm_big2(i64) -> i64 {block0(v0: i64):- v2 = band_imm v0, -77777+ v3 = iconst.i64 -77777+ v2 = band v0, v3return v2}diff --git a/cranelift/filetests/filetests/isa/pulley64/bor.clif b/cranelift/filetests/filetests/isa/pulley64/bor.clifindex 0db4011d9d..50f88a96be 100644--- a/cranelift/filetests/filetests/isa/pulley64/bor.clif+++ b/cranelift/filetests/filetests/isa/pulley64/bor.clif@@ -3,7 +3,8 @@ target pulley64function %i8_imm(i8) -> i8 {block0(v0: i8):- v2 = bor_imm v0, 7+ v3 = iconst.i8 7+ v2 = bor v0, v3return v2}@@ -18,7 +19,8 @@ block0(v0: i8):function %i8_imm2(i8) -> i8 {block0(v0: i8):- v2 = bor_imm v0, -7+ v3 = iconst.i8 -7+ v2 = bor v0, v3return v2}@@ -33,7 +35,8 @@ block0(v0: i8):function %i16_imm(i16) -> i16 {block0(v0: i16):- v2 = bor_imm v0, 7+ v3 = iconst.i16 7+ v2 = bor v0, v3return v2}@@ -48,7 +51,8 @@ block0(v0: i16):function %i16_imm2(i16) -> i16 {block0(v0: i16):- v2 = bor_imm v0, -7+ v3 = iconst.i16 -7+ v2 = bor v0, v3return v2}@@ -63,7 +67,8 @@ block0(v0: i16):function %i32_imm(i32) -> i32 {block0(v0: i32):- v2 = bor_imm v0, 7+ v3 = iconst.i32 7+ v2 = bor v0, v3return v2}@@ -78,7 +83,8 @@ block0(v0: i32):function %i32_imm2(i32) -> i32 {block0(v0: i32):- v2 = bor_imm v0, -7+ v3 = iconst.i32 -7+ v2 = bor v0, v3return v2}@@ -93,7 +99,8 @@ block0(v0: i32):function %i32_imm_big(i32) -> i32 {block0(v0: i32):- v2 = bor_imm v0, 77777+ v3 = iconst.i32 77777+ v2 = bor v0, v3return v2}@@ -108,7 +115,8 @@ block0(v0: i32):function %i32_imm_big2(i32) -> i32 {block0(v0: i32):- v2 = bor_imm v0, -77777+ v3 = iconst.i32 -77777+ v2 = bor v0, v3return v2}@@ -123,7 +131,8 @@ block0(v0: i32):function %i64_imm(i64) -> i64 {block0(v0: i64):- v2 = bor_imm v0, 7+ v3 = iconst.i64 7+ v2 = bor v0, v3return v2}@@ -138,7 +147,8 @@ block0(v0: i64):function %i64_imm2(i64) -> i64 {block0(v0: i64):- v2 = bor_imm v0, -7+ v3 = iconst.i64 -7+ v2 = bor v0, v3return v2}@@ -153,7 +163,8 @@ block0(v0: i64):function %i64_imm_big(i64) -> i64 {block0(v0: i64):- v2 = bor_imm v0, 77777+ v3 = iconst.i64 77777+ v2 = bor v0, v3return v2}@@ -168,7 +179,8 @@ block0(v0: i64):function %i64_imm_big2(i64) -> i64 {block0(v0: i64):- v2 = bor_imm v0, -77777+ v3 = iconst.i64 -77777+ v2 = bor v0, v3return v2}diff --git a/cranelift/filetests/filetests/isa/pulley64/bxor.clif b/cranelift/filetests/filetests/isa/pulley64/bxor.clifindex 8981900ae6..ce23c82945 100644--- a/cranelift/filetests/filetests/isa/pulley64/bxor.clif+++ b/cranelift/filetests/filetests/isa/pulley64/bxor.clif@@ -3,7 +3,8 @@ target pulley64function %i8_imm(i8) -> i8 {block0(v0: i8):- v2 = bxor_imm v0, 7+ v3 = iconst.i8 7+ v2 = bxor v0, v3return v2}@@ -18,7 +19,8 @@ block0(v0: i8):function %i8_imm2(i8) -> i8 {block0(v0: i8):- v2 = bxor_imm v0, -7+ v3 = iconst.i8 -7+ v2 = bxor v0, v3return v2}@@ -33,7 +35,8 @@ block0(v0: i8):function %i16_imm(i16) -> i16 {block0(v0: i16):- v2 = bxor_imm v0, 7+ v3 = iconst.i16 7+ v2 = bxor v0, v3return v2}@@ -48,7 +51,8 @@ block0(v0: i16):function %i16_imm2(i16) -> i16 {block0(v0: i16):- v2 = bxor_imm v0, -7+ v3 = iconst.i16 -7+ v2 = bxor v0, v3return v2}@@ -63,7 +67,8 @@ block0(v0: i16):function %i32_imm(i32) -> i32 {block0(v0: i32):- v2 = bxor_imm v0, 7+ v3 = iconst.i32 7+ v2 = bxor v0, v3return v2}@@ -78,7 +83,8 @@ block0(v0: i32):function %i32_imm2(i32) -> i32 {block0(v0: i32):- v2 = bxor_imm v0, -7+ v3 = iconst.i32 -7+ v2 = bxor v0, v3return v2}@@ -93,7 +99,8 @@ block0(v0: i32):function %i32_imm_big(i32) -> i32 {block0(v0: i32):- v2 = bxor_imm v0, 77777+ v3 = iconst.i32 77777+ v2 = bxor v0, v3return v2}@@ -108,7 +115,8 @@ block0(v0: i32):function %i32_imm_big2(i32) -> i32 {block0(v0: i32):- v2 = bxor_imm v0, -77777+ v3 = iconst.i32 -77777+ v2 = bxor v0, v3return v2}@@ -123,7 +131,8 @@ block0(v0: i32):function %i64_imm(i64) -> i64 {block0(v0: i64):- v2 = bxor_imm v0, 7+ v3 = iconst.i64 7+ v2 = bxor v0, v3return v2}@@ -138,7 +147,8 @@ block0(v0: i64):function %i64_imm2(i64) -> i64 {block0(v0: i64):- v2 = bxor_imm v0, -7+ v3 = iconst.i64 -7+ v2 = bxor v0, v3return v2}@@ -153,7 +163,8 @@ block0(v0: i64):function %i64_imm_big(i64) -> i64 {block0(v0: i64):- v2 = bxor_imm v0, 77777+ v3 = iconst.i64 77777+ v2 = bxor v0, v3return v2}@@ -168,7 +179,8 @@ block0(v0: i64):function %i64_imm_big2(i64) -> i64 {block0(v0: i64):- v2 = bxor_imm v0, -77777+ v3 = iconst.i64 -77777+ v2 = bxor v0, v3return v2}diff --git a/cranelift/filetests/filetests/isa/pulley64/shifts.clif b/cranelift/filetests/filetests/isa/pulley64/shifts.clifindex d60f8c03de..37c7290c2e 100644--- a/cranelift/filetests/filetests/isa/pulley64/shifts.clif+++ b/cranelift/filetests/filetests/isa/pulley64/shifts.clif@@ -3,7 +3,8 @@ target pulley64function %i32_imm(i32) -> i32 {block0(v0: i32):- v2 = ishl_imm v0, 7+ v3 = iconst.i32 7+ v2 = ishl v0, v3return v2}@@ -18,7 +19,8 @@ block0(v0: i32):function %i32_imm2(i32) -> i32 {block0(v0: i32):- v2 = ishl_imm v0, 0x187+ v3 = iconst.i32 391+ v2 = ishl v0, v3return v2}@@ -33,7 +35,8 @@ block0(v0: i32):function %i64_imm(i64) -> i64 {block0(v0: i64):- v2 = ishl_imm v0, 7+ v3 = iconst.i64 7+ v2 = ishl v0, v3return v2}@@ -48,7 +51,8 @@ block0(v0: i64):function %i64_imm2(i64) -> i64 {block0(v0: i64):- v2 = ishl_imm v0, 0x187+ v3 = iconst.i64 0x187+ v2 = ishl v0, v3return v2}@@ -63,7 +67,8 @@ block0(v0: i64):function %i32_ushr_imm(i32) -> i32 {block0(v0: i32):- v2 = ushr_imm v0, 7+ v3 = iconst.i32 7+ v2 = ushr v0, v3return v2}@@ -78,7 +83,8 @@ block0(v0: i32):function %i32_ushr_imm2(i32) -> i32 {block0(v0: i32):- v2 = ushr_imm v0, 0x187+ v3 = iconst.i32 391+ v2 = ushr v0, v3return v2}@@ -93,7 +99,8 @@ block0(v0: i32):function %i64_ushr_imm(i64) -> i64 {block0(v0: i64):- v2 = ushr_imm v0, 7+ v3 = iconst.i64 7+ v2 = ushr v0, v3return v2}@@ -108,7 +115,8 @@ block0(v0: i64):function %i64_ushr_imm2(i64) -> i64 {block0(v0: i64):- v2 = ushr_imm v0, 0x187+ v3 = iconst.i64 0x187+ v2 = ushr v0, v3return v2}@@ -123,7 +131,8 @@ block0(v0: i64):function %i32_sshr_imm(i32) -> i32 {block0(v0: i32):- v2 = sshr_imm v0, 7+ v3 = iconst.i32 7+ v2 = sshr v0, v3return v2}@@ -138,7 +147,8 @@ block0(v0: i32):function %i32_sshr_imm2(i32) -> i32 {block0(v0: i32):- v2 = sshr_imm v0, 0x187+ v3 = iconst.i32 391+ v2 = sshr v0, v3return v2}@@ -153,7 +163,8 @@ block0(v0: i32):function %i64_sshr_imm(i64) -> i64 {block0(v0: i64):- v2 = sshr_imm v0, 7+ v3 = iconst.i64 7+ v2 = sshr v0, v3return v2}@@ -168,7 +179,8 @@ block0(v0: i64):function %i64_sshr_imm2(i64) -> i64 {block0(v0: i64):- v2 = sshr_imm v0, 0x187+ v3 = iconst.i64 0x187+ v2 = sshr v0, v3return v2}diff --git a/cranelift/filetests/filetests/isa/riscv64/i128.clif b/cranelift/filetests/filetests/isa/riscv64/i128.clifindex 777a8183fa..9c0be9323e 100644--- a/cranelift/filetests/filetests/isa/riscv64/i128.clif+++ b/cranelift/filetests/filetests/isa/riscv64/i128.clif@@ -51,7 +51,9 @@ block0(v0: i64, v1: i64):v2 = sextend.i128 v0v3 = sextend.i128 v1v4 = imul v2, v3- v5 = sshr_imm v4, 64+ v7 = iconst.i64 64+ v8 = uextend.i128 v7+ v5 = sshr v4, v8v6 = ireduce.i64 v5return v6}@@ -90,7 +92,9 @@ block0(v0: i64, v1: i64):v2 = uextend.i128 v0v3 = uextend.i128 v1v4 = imul v2, v3- v5 = ushr_imm v4, 64+ v7 = iconst.i64 64+ v8 = uextend.i128 v7+ v5 = ushr v4, v8v6 = ireduce.i64 v5return v6}diff --git a/cranelift/filetests/filetests/isa/riscv64/zca.clif b/cranelift/filetests/filetests/isa/riscv64/zca.clifindex 6a022f9edf..0ef17a9714 100644--- a/cranelift/filetests/filetests/isa/riscv64/zca.clif+++ b/cranelift/filetests/filetests/isa/riscv64/zca.clif@@ -36,7 +36,8 @@ block0(v0: i64, v1: i64):function %c_mv_ori(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = bor_imm.i64 v1, 0+ v3 = iconst.i64 0+ v2 = bor v1, v3return v2}@@ -388,7 +389,8 @@ block0:function %c_slli(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm.i64 v0, 63+ v2 = iconst.i64 63+ v1 = ishl v0, v2return v1}@@ -404,7 +406,8 @@ block0(v0: i64):function %c_srai(i64) -> i64 {block0(v0: i64):- v1 = sshr_imm.i64 v0, 63+ v2 = iconst.i64 63+ v1 = sshr v0, v2return v1}@@ -420,7 +423,8 @@ block0(v0: i64):function %c_srli(i64) -> i64 {block0(v0: i64):- v1 = ushr_imm.i64 v0, 20+ v2 = iconst.i64 20+ v1 = ushr v0, v2return v1}@@ -640,7 +644,8 @@ block0:function %c_andi_f(i64) -> i64 {block0(v0: i64):- v1 = band_imm.i64 v0, 0xf+ v2 = iconst.i64 0xf+ v1 = band v0, v2return v1}@@ -656,7 +661,8 @@ block0(v0: i64):function %c_andi_neg_16(i64) -> i64 {block0(v0: i64):- v1 = band_imm.i64 v0, -16+ v2 = iconst.i64 -16+ v1 = band v0, v2return v1}@@ -672,7 +678,8 @@ block0(v0: i64):function %c_andi_zero(i64) -> i64 {block0(v0: i64):- v1 = band_imm.i64 v0, 0+ v2 = iconst.i64 0+ v1 = band v0, v2return v1}diff --git a/cranelift/filetests/filetests/isa/s390x/i128.clif b/cranelift/filetests/filetests/isa/s390x/i128.clifindex 6bbef8b28e..41655c58b9 100644--- a/cranelift/filetests/filetests/isa/s390x/i128.clif+++ b/cranelift/filetests/filetests/isa/s390x/i128.clif@@ -60,7 +60,9 @@ block0(v0: i64, v1: i64):v2 = sextend.i128 v0v3 = sextend.i128 v1v4 = imul v2, v3- v5 = sshr_imm v4, 64+ v7 = iconst.i64 64+ v8 = uextend.i128 v7+ v5 = sshr v4, v8v6 = ireduce.i64 v5return v6}@@ -105,7 +107,9 @@ block0(v0: i64, v1: i64):v2 = uextend.i128 v0v3 = uextend.i128 v1v4 = imul v2, v3- v5 = ushr_imm v4, 64+ v7 = iconst.i64 64+ v8 = uextend.i128 v7+ v5 = ushr v4, v8v6 = ireduce.i64 v5return v6}diff --git a/cranelift/filetests/filetests/isa/x64/amode-opt.clif b/cranelift/filetests/filetests/isa/x64/amode-opt.clifindex c85d4b76c2..a46801c3e0 100644--- a/cranelift/filetests/filetests/isa/x64/amode-opt.clif+++ b/cranelift/filetests/filetests/isa/x64/amode-opt.clif@@ -170,7 +170,8 @@ function %amode_reg_reg_imm_scaled(i64, i64) -> i64 {block0(v0: i64, v1: i64):v2 = iconst.i64 -1v3 = iadd v0, v2- v4 = ishl_imm v1, 3+ v7 = iconst.i64 3+ v4 = ishl v1, v7v5 = iadd v3, v4v6 = load.i64 v5return v6@@ -199,7 +200,8 @@ function %amode_reg_reg_imm_uext_scaled(i64, i32) -> i64 {block0(v0: i64, v1: i32):v2 = iconst.i64 -1v3 = iadd v0, v2- v4 = ishl_imm v1, 3+ v8 = iconst.i32 3+ v4 = ishl v1, v8v5 = uextend.i64 v4v6 = iadd v3, v5v7 = load.i64 v6@@ -232,7 +234,8 @@ block0(v0: i64, v1: i32, v2: i32):v3 = iconst.i64 -1v4 = iadd v0, v3v5 = iadd v1, v2- v6 = ishl_imm v5, 2+ v10 = iconst.i32 2+ v6 = ishl v5, v10v7 = uextend.i64 v6v8 = iadd v4, v7v9 = load.i64 v8diff --git a/cranelift/filetests/filetests/isa/x64/ishl.clif b/cranelift/filetests/filetests/isa/x64/ishl.clifindex 5d8ce0a929..b3f7c61460 100644--- a/cranelift/filetests/filetests/isa/x64/ishl.clif+++ b/cranelift/filetests/filetests/isa/x64/ishl.clif@@ -898,7 +898,8 @@ block0(v0: i8, v1: i8):function %ishl_i64_const(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm.i64 v0, 65+ v2 = iconst.i64 65+ v1 = ishl v0, v2return v1}@@ -925,7 +926,8 @@ block0(v0: i64):function %ishl_i32_const(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm.i32 v0, 33+ v2 = iconst.i32 33+ v1 = ishl v0, v2return v1}@@ -952,7 +954,8 @@ block0(v0: i32):function %ishl_i16_const(i16) -> i16 {block0(v0: i16):- v1 = ishl_imm.i16 v0, 17+ v2 = iconst.i16 17+ v1 = ishl v0, v2return v1}@@ -979,7 +982,8 @@ block0(v0: i16):function %ishl_i8_const(i8) -> i8 {block0(v0: i8):- v1 = ishl_imm.i8 v0, 9+ v2 = iconst.i8 9+ v1 = ishl v0, v2return v1}diff --git a/cranelift/filetests/filetests/isa/x64/shift-to-extend.clif b/cranelift/filetests/filetests/isa/x64/shift-to-extend.clifindex ebdc70b27e..942e8b246f 100644--- a/cranelift/filetests/filetests/isa/x64/shift-to-extend.clif+++ b/cranelift/filetests/filetests/isa/x64/shift-to-extend.clif@@ -5,8 +5,10 @@ target x86_64function %i32_shl_sshr_8_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 24- v2 = sshr_imm v1, 24+ v3 = iconst.i32 24+ v1 = ishl v0, v3+ v4 = iconst.i32 24+ v2 = sshr v1, v4return v2}@@ -31,8 +33,10 @@ block0(v0: i32):function %i32_shl_sshr_16_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 16- v2 = sshr_imm v1, 16+ v3 = iconst.i32 16+ v1 = ishl v0, v3+ v4 = iconst.i32 16+ v2 = sshr v1, v4return v2}@@ -57,8 +61,10 @@ block0(v0: i32):function %i64_shl_sshr_8_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 56- v2 = sshr_imm v1, 56+ v3 = iconst.i64 56+ v1 = ishl v0, v3+ v4 = iconst.i64 56+ v2 = sshr v1, v4return v2}@@ -83,8 +89,10 @@ block0(v0: i64):function %i64_shl_sshr_16_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 48- v2 = sshr_imm v1, 48+ v3 = iconst.i64 48+ v1 = ishl v0, v3+ v4 = iconst.i64 48+ v2 = sshr v1, v4return v2}@@ -109,8 +117,10 @@ block0(v0: i64):function %i64_shl_sshr_32_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 32- v2 = sshr_imm v1, 32+ v3 = iconst.i64 32+ v1 = ishl v0, v3+ v4 = iconst.i64 32+ v2 = sshr v1, v4return v2}@@ -135,8 +145,10 @@ block0(v0: i64):function %i32_shl_ushr_8_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 24- v2 = ushr_imm v1, 24+ v3 = iconst.i32 24+ v1 = ishl v0, v3+ v4 = iconst.i32 24+ v2 = ushr v1, v4return v2}@@ -161,8 +173,10 @@ block0(v0: i32):function %i32_shl_ushr_16_to_ireduce(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm v0, 16- v2 = ushr_imm v1, 16+ v3 = iconst.i32 16+ v1 = ishl v0, v3+ v4 = iconst.i32 16+ v2 = ushr v1, v4return v2}@@ -187,8 +201,10 @@ block0(v0: i32):function %i64_shl_ushr_8_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 56- v2 = ushr_imm v1, 56+ v3 = iconst.i64 56+ v1 = ishl v0, v3+ v4 = iconst.i64 56+ v2 = ushr v1, v4return v2}@@ -213,8 +229,10 @@ block0(v0: i64):function %i64_shl_ushr_16_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 48- v2 = ushr_imm v1, 48+ v3 = iconst.i64 48+ v1 = ishl v0, v3+ v4 = iconst.i64 48+ v2 = ushr v1, v4return v2}@@ -239,8 +257,10 @@ block0(v0: i64):function %i64_shl_ushr_32_to_ireduce(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm v0, 32- v2 = ushr_imm v1, 32+ v3 = iconst.i64 32+ v1 = ishl v0, v3+ v4 = iconst.i64 32+ v2 = ushr v1, v4return v2}diff --git a/cranelift/filetests/filetests/isa/x64/shld.clif b/cranelift/filetests/filetests/isa/x64/shld.clifindex 28805e6c43..275492716d 100644--- a/cranelift/filetests/filetests/isa/x64/shld.clif+++ b/cranelift/filetests/filetests/isa/x64/shld.clif@@ -3,8 +3,10 @@ target x86_64function %x64_shld_i32_20(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ushr_imm v0, 12- v3 = ishl_imm v1, 20+ v6 = iconst.i32 12+ v2 = ushr v0, v6+ v5 = iconst.i32 20+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -32,8 +34,10 @@ block0(v0: i32, v1: i32):function %x64_shld_i32_20_swap(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ishl_imm v0, 20- v3 = ushr_imm v1, 12+ v5 = iconst.i32 20+ v2 = ishl v0, v5+ v6 = iconst.i32 12+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -61,8 +65,10 @@ block0(v0: i32, v1: i32):function %x64_shld_i32_28(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ushr_imm v0, 4- v3 = ishl_imm v1, 28+ v6 = iconst.i32 4+ v2 = ushr v0, v6+ v5 = iconst.i32 28+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -90,8 +96,10 @@ block0(v0: i32, v1: i32):function %x64_shld_i32_28_swap(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ishl_imm v0, 28- v3 = ushr_imm v1, 4+ v5 = iconst.i32 28+ v2 = ishl v0, v5+ v6 = iconst.i32 4+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -119,8 +127,10 @@ block0(v0: i32, v1: i32):function %x64_shld_i64_52(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ushr_imm v0, 12- v3 = ishl_imm v1, 52+ v6 = iconst.i64 12+ v2 = ushr v0, v6+ v5 = iconst.i64 52+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -148,8 +158,10 @@ block0(v0: i64, v1: i64):function %x64_shld_i64_52_swap(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ishl_imm v0, 52- v3 = ushr_imm v1, 12+ v5 = iconst.i64 52+ v2 = ishl v0, v5+ v6 = iconst.i64 12+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -177,8 +189,10 @@ block0(v0: i64, v1: i64):function %x64_shld_i16_3(i16, i16) -> i16 {block0(v0: i16, v1: i16):- v2 = ushr_imm v0, 3- v3 = ishl_imm v1, 13+ v6 = iconst.i16 3+ v2 = ushr v0, v6+ v5 = iconst.i16 13+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -206,8 +220,10 @@ block0(v0: i16, v1: i16):function %x64_shld_i8_3(i8, i8) -> i8 {block0(v0: i8, v1: i8):- v2 = ushr_imm v0, 3- v3 = ishl_imm v1, 5+ v6 = iconst.i8 3+ v2 = ushr v0, v6+ v5 = iconst.i8 5+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -239,8 +255,10 @@ block0(v0: i8, v1: i8):function %x64_shld_i32_32(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ushr_imm v0, 32- v3 = ishl_imm v1, 0+ v6 = iconst.i32 32+ v2 = ushr v0, v6+ v5 = iconst.i32 0+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -273,8 +291,10 @@ block0(v0: i32, v1: i32):function %x64_shld_i32_32_swap(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ishl_imm v1, 0- v3 = ushr_imm v0, 32+ v5 = iconst.i32 0+ v2 = ishl v1, v5+ v6 = iconst.i32 32+ v3 = ushr v0, v6v4 = bor v2, v3return v4}diff --git a/cranelift/filetests/filetests/isa/x64/simd-bitwise-compile.clif b/cranelift/filetests/filetests/isa/x64/simd-bitwise-compile.clifindex 09fb7d7bf6..92703f5c35 100644--- a/cranelift/filetests/filetests/isa/x64/simd-bitwise-compile.clif+++ b/cranelift/filetests/filetests/isa/x64/simd-bitwise-compile.clif@@ -642,7 +642,8 @@ block0(v0: i32):function %sshr_i8x16_imm(i8x16, i32) -> i8x16 {block0(v0: i8x16, v1: i32):- v2 = sshr_imm v0, 3+ v3 = iconst.i8 3+ v2 = sshr v0, v3return v2}diff --git a/cranelift/filetests/filetests/isa/x64/simd-i64x2-shift-avx512.clif b/cranelift/filetests/filetests/isa/x64/simd-i64x2-shift-avx512.clifindex 99541018a2..7476c47821 100644--- a/cranelift/filetests/filetests/isa/x64/simd-i64x2-shift-avx512.clif+++ b/cranelift/filetests/filetests/isa/x64/simd-i64x2-shift-avx512.clif@@ -43,7 +43,8 @@ block0(v0: i64x2, v1: i64):function %sshr_imm(i64x2) -> i64x2 {block0(v0: i64x2):- v1 = sshr_imm v0, 31+ v2 = iconst.i64 31+ v1 = sshr v0, v2return v1}@@ -69,7 +70,8 @@ block0(v0: i64x2):function %sshr_load_imm(i64) -> i64x2 {block0(v0: i64):v1 = load.i64x2 v0- v2 = sshr_imm v1, 31+ v3 = iconst.i64 31+ v2 = sshr v1, v3return v2}@@ -95,7 +97,8 @@ block0(v0: i64):function %sshr_load2_imm(i64) -> i64x2 {block0(v0: i64):v1 = load.i64x2 v0+7- v2 = sshr_imm v1, 31+ v3 = iconst.i64 31+ v2 = sshr v1, v3return v2}@@ -121,7 +124,8 @@ block0(v0: i64):function %sshr_load3_imm(i64) -> i64x2 {block0(v0: i64):v1 = load.i64x2 v0+16- v2 = sshr_imm v1, 31+ v3 = iconst.i64 31+ v2 = sshr v1, v3return v2}diff --git a/cranelift/filetests/filetests/isa/x64/sshr.clif b/cranelift/filetests/filetests/isa/x64/sshr.clifindex 882e0fa246..61e38b0231 100644--- a/cranelift/filetests/filetests/isa/x64/sshr.clif+++ b/cranelift/filetests/filetests/isa/x64/sshr.clif@@ -937,7 +937,8 @@ block0(v0: i8, v1: i8):function %sshr_i64_const(i64) -> i64 {block0(v0: i64):- v1 = sshr_imm.i64 v0, 65+ v2 = iconst.i64 65+ v1 = sshr v0, v2return v1}@@ -964,7 +965,8 @@ block0(v0: i64):function %sshr_i32_const(i32) -> i32 {block0(v0: i32):- v1 = sshr_imm.i32 v0, 33+ v2 = iconst.i32 33+ v1 = sshr v0, v2return v1}@@ -991,7 +993,8 @@ block0(v0: i32):function %sshr_i16_const(i16) -> i16 {block0(v0: i16):- v1 = sshr_imm.i16 v0, 17+ v2 = iconst.i16 17+ v1 = sshr v0, v2return v1}@@ -1018,7 +1021,8 @@ block0(v0: i16):function %sshr_i8_const(i8) -> i8 {block0(v0: i8):- v1 = sshr_imm.i8 v0, 9+ v2 = iconst.i8 9+ v1 = sshr v0, v2return v1}diff --git a/cranelift/filetests/filetests/isa/x64/ushr.clif b/cranelift/filetests/filetests/isa/x64/ushr.clifindex 276164338a..b7d6b37efd 100644--- a/cranelift/filetests/filetests/isa/x64/ushr.clif+++ b/cranelift/filetests/filetests/isa/x64/ushr.clif@@ -897,7 +897,8 @@ block0(v0: i8, v1: i8):function %ushr_i64_const(i64) -> i64 {block0(v0: i64):- v1 = ushr_imm.i64 v0, 65+ v2 = iconst.i64 65+ v1 = ushr v0, v2return v1}@@ -924,7 +925,8 @@ block0(v0: i64):function %ushr_i32_const(i32) -> i32 {block0(v0: i32):- v1 = ushr_imm.i32 v0, 33+ v2 = iconst.i32 33+ v1 = ushr v0, v2return v1}@@ -951,7 +953,8 @@ block0(v0: i32):function %ushr_i16_const(i16) -> i16 {block0(v0: i16):- v1 = ushr_imm.i16 v0, 17+ v2 = iconst.i16 17+ v1 = ushr v0, v2return v1}@@ -978,7 +981,8 @@ block0(v0: i16):function %ushr_i8_const(i8) -> i8 {block0(v0: i8):- v1 = ushr_imm.i8 v0, 9+ v2 = iconst.i8 9+ v1 = ushr v0, v2return v1}diff --git a/cranelift/filetests/filetests/legalizer/bxor_imm.clif b/cranelift/filetests/filetests/legalizer/bxor_imm.clifindex 12a149eed9..4fc9a102f1 100644--- a/cranelift/filetests/filetests/legalizer/bxor_imm.clif+++ b/cranelift/filetests/filetests/legalizer/bxor_imm.clif@@ -4,7 +4,8 @@ target x86_64function %foo(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = bxor_imm.i64 v0, 0x100000000+ v3 = iconst.i64 0x100000000+ v2 = bxor v0, v3return v2}diff --git a/cranelift/filetests/filetests/parser/tiny.clif b/cranelift/filetests/filetests/parser/tiny.clifindex 4acafb039a..775198c01e 100644--- a/cranelift/filetests/filetests/parser/tiny.clif+++ b/cranelift/filetests/filetests/parser/tiny.clif@@ -93,7 +93,8 @@ block0(v90: i32, v91: i32):v1 = icmp ult v90, v91v92 = iconst.i32 -12v2 = icmp sge v90, v92- v3 = irsub_imm v91, 45+ v93 = iconst.i32 45+ v3 = isub v93, v91v4 = icmp eq v90, v91brif v4, block0(v91, v90), block0(v91, v90)}@@ -103,7 +104,8 @@ block0(v90: i32, v91: i32):; nextln: v1 = icmp ult v90, v91; nextln: v92 = iconst.i32 -12; nextln: v2 = icmp sge v90, v92-; nextln: v3 = irsub_imm v91, 45+; nextln: v93 = iconst.i32 45+; nextln: v3 = isub v93, v91; nextln: v4 = icmp eq v90, v91; nextln: brif v4, block0(v91, v90), block0(v91, v90); nextln: }diff --git a/cranelift/filetests/filetests/runtests/bitops.clif b/cranelift/filetests/filetests/runtests/bitops.clifindex d049b29da0..b1e327277b 100644--- a/cranelift/filetests/filetests/runtests/bitops.clif+++ b/cranelift/filetests/filetests/runtests/bitops.clif@@ -56,8 +56,10 @@ block0(v0: i16):function %a64_extr_i32_12(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ushr_imm v0, 12- v3 = ishl_imm v1, 20+ v6 = iconst.i32 12+ v2 = ushr v0, v6+ v5 = iconst.i32 20+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -66,8 +68,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i32_12_swap(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ishl_imm v0, 20- v3 = ushr_imm v1, 12+ v5 = iconst.i32 20+ v2 = ishl v0, v5+ v6 = iconst.i32 12+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -76,8 +80,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i32_28(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ushr_imm v0, 4- v3 = ishl_imm v1, 28+ v6 = iconst.i32 4+ v2 = ushr v0, v6+ v5 = iconst.i32 28+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -86,8 +92,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i32_28_swap(i32, i32) -> i32 {block0(v0: i32, v1: i32):- v2 = ishl_imm v0, 4- v3 = ushr_imm v1, 28+ v5 = iconst.i32 4+ v2 = ishl v0, v5+ v6 = iconst.i32 28+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -96,8 +104,10 @@ block0(v0: i32, v1: i32):function %a64_extr_i64_12(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ushr_imm v0, 12- v3 = ishl_imm v1, 52+ v6 = iconst.i64 12+ v2 = ushr v0, v6+ v5 = iconst.i64 52+ v3 = ishl v1, v5v4 = bor v2, v3return v4}@@ -105,8 +115,10 @@ block0(v0: i64, v1: i64):function %a64_extr_i64_12_swap(i64, i64) -> i64 {block0(v0: i64, v1: i64):- v2 = ishl_imm v0, 52- v3 = ushr_imm v1, 12+ v5 = iconst.i64 52+ v2 = ishl v0, v5+ v6 = iconst.i64 12+ v3 = ushr v1, v6v4 = bor v2, v3return v4}@@ -735,8 +747,10 @@ block0(v0: i32, v1: i32):function %test_aarch64_extr(i32, i32) -> i32 fast {block0(v0: i32, v1: i32):- v2 = ishl_imm v0, 32- v3 = ushr_imm v1, 0+ v5 = iconst.i32 32+ v2 = ishl v0, v5+ v6 = iconst.i32 0+ v3 = ushr v1, v6v4 = bor v2, v3return v4}diff --git a/cranelift/filetests/filetests/runtests/i128-srem.clif b/cranelift/filetests/filetests/runtests/i128-srem.clifindex 68dcd2e9de..1616d8643b 100644--- a/cranelift/filetests/filetests/runtests/i128-srem.clif+++ b/cranelift/filetests/filetests/runtests/i128-srem.clif@@ -19,7 +19,9 @@ block0(v0: i128,v1: i128):function %srem_imm_i128(i128) -> i128 {block0(v0: i128):- v1 = srem_imm v0, 3+ v2 = iconst.i64 3+ v3 = sextend.i128 v2+ v1 = srem v0, v3return v1}; run: %srem_imm_i128(0) == 0diff --git a/cranelift/filetests/filetests/runtests/i128-urem.clif b/cranelift/filetests/filetests/runtests/i128-urem.clifindex f3968caf12..985f972879 100644--- a/cranelift/filetests/filetests/runtests/i128-urem.clif+++ b/cranelift/filetests/filetests/runtests/i128-urem.clif@@ -19,7 +19,9 @@ block0(v0: i128,v1: i128):function %urem_imm_i128(i128) -> i128 {block0(v0: i128):- v1 = urem_imm v0, 3+ v2 = iconst.i64 3+ v3 = uextend.i128 v2+ v1 = urem v0, v3return v1}; run: %urem_imm_i128(0) == 0diff --git a/cranelift/filetests/filetests/runtests/issue5569.clif b/cranelift/filetests/filetests/runtests/issue5569.clifindex 73697598e2..48331cc9ad 100644--- a/cranelift/filetests/filetests/runtests/issue5569.clif+++ b/cranelift/filetests/filetests/runtests/issue5569.clif@@ -16,7 +16,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v55 = iconst.i32 0v56 = iconst.i32 1v57 = icmp eq v2, v55 ; v55 = 0- v58 = ishl_imm v56, 31 ; v56 = 1+ v802 = iconst.i32 31+ v58 = ishl v56, v802 ; v56 = 1v59 = isub v55, v56 ; v55 = 0, v56 = 1v60 = icmp eq v2, v58v61 = icmp eq v2, v59@@ -27,7 +28,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v65 = iconst.i32 0v66 = iconst.i32 1v67 = icmp eq v13, v65 ; v65 = 0- v68 = ishl_imm v66, 31 ; v66 = 1+ v803 = iconst.i32 31+ v68 = ishl v66, v803 ; v66 = 1v69 = isub v65, v66 ; v65 = 0, v66 = 1v70 = icmp eq v13, v68v71 = icmp eq v13, v69@@ -38,7 +40,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v75 = iconst.i32 0v76 = iconst.i32 1v77 = icmp eq v14, v75 ; v75 = 0- v78 = ishl_imm v76, 31 ; v76 = 1+ v804 = iconst.i32 31+ v78 = ishl v76, v804 ; v76 = 1v79 = isub v75, v76 ; v75 = 0, v76 = 1v80 = icmp eq v14, v78v81 = icmp eq v14, v79@@ -49,7 +52,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v85 = iconst.i64 0v86 = iconst.i64 1v87 = icmp eq v3, v85 ; v85 = 0- v88 = ishl_imm v86, 63 ; v86 = 1+ v805 = iconst.i64 63+ v88 = ishl v86, v805 ; v86 = 1v89 = isub v85, v86 ; v85 = 0, v86 = 1v90 = icmp eq v3, v88v91 = icmp eq v3, v89@@ -60,7 +64,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v95 = iconst.i32 0v96 = iconst.i32 1v97 = icmp eq v15, v95 ; v95 = 0- v98 = ishl_imm v96, 31 ; v96 = 1+ v806 = iconst.i32 31+ v98 = ishl v96, v806 ; v96 = 1v99 = isub v95, v96 ; v95 = 0, v96 = 1v100 = icmp eq v15, v98v101 = icmp eq v15, v99@@ -73,7 +78,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v105 = iconst.i32 0v106 = iconst.i32 1v107 = icmp eq v17, v105 ; v105 = 0- v108 = ishl_imm v106, 31 ; v106 = 1+ v807 = iconst.i32 31+ v108 = ishl v106, v807 ; v106 = 1v109 = isub v105, v106 ; v105 = 0, v106 = 1v110 = icmp eq v17, v108v111 = icmp eq v17, v109@@ -84,7 +90,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v115 = iconst.i32 0v116 = iconst.i32 1v117 = icmp eq v19, v115 ; v115 = 0- v118 = ishl_imm v116, 31 ; v116 = 1+ v808 = iconst.i32 31+ v118 = ishl v116, v808 ; v116 = 1v119 = isub v115, v116 ; v115 = 0, v116 = 1v120 = icmp eq v19, v118v121 = icmp eq v19, v119@@ -95,7 +102,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v125 = iconst.i32 0v126 = iconst.i32 1v127 = icmp eq v20, v125 ; v125 = 0- v128 = ishl_imm v126, 31 ; v126 = 1+ v809 = iconst.i32 31+ v128 = ishl v126, v809 ; v126 = 1v129 = isub v125, v126 ; v125 = 0, v126 = 1v130 = icmp eq v20, v128v131 = icmp eq v20, v129@@ -107,7 +115,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v135 = iconst.i32 0v136 = iconst.i32 1v137 = icmp eq v21, v135 ; v135 = 0- v138 = ishl_imm v136, 31 ; v136 = 1+ v810 = iconst.i32 31+ v138 = ishl v136, v810 ; v136 = 1v139 = isub v135, v136 ; v135 = 0, v136 = 1v140 = icmp eq v21, v138v141 = icmp eq v21, v139@@ -118,7 +127,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v145 = iconst.i32 0v146 = iconst.i32 1v147 = icmp eq v22, v145 ; v145 = 0- v148 = ishl_imm v146, 31 ; v146 = 1+ v811 = iconst.i32 31+ v148 = ishl v146, v811 ; v146 = 1v149 = isub v145, v146 ; v145 = 0, v146 = 1v150 = icmp eq v22, v148v151 = icmp eq v22, v149@@ -129,7 +139,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v155 = iconst.i32 0v156 = iconst.i32 1v157 = icmp eq v23, v155 ; v155 = 0- v158 = ishl_imm v156, 31 ; v156 = 1+ v812 = iconst.i32 31+ v158 = ishl v156, v812 ; v156 = 1v159 = isub v155, v156 ; v155 = 0, v156 = 1v160 = icmp eq v23, v158v161 = icmp eq v23, v159@@ -140,7 +151,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v165 = iconst.i32 0v166 = iconst.i32 1v167 = icmp eq v24, v165 ; v165 = 0- v168 = ishl_imm v166, 31 ; v166 = 1+ v813 = iconst.i32 31+ v168 = ishl v166, v813 ; v166 = 1v169 = isub v165, v166 ; v165 = 0, v166 = 1v170 = icmp eq v24, v168v171 = icmp eq v24, v169@@ -151,7 +163,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v175 = iconst.i32 0v176 = iconst.i32 1v177 = icmp eq v25, v175 ; v175 = 0- v178 = ishl_imm v176, 31 ; v176 = 1+ v814 = iconst.i32 31+ v178 = ishl v176, v814 ; v176 = 1v179 = isub v175, v176 ; v175 = 0, v176 = 1v180 = icmp eq v25, v178v181 = icmp eq v25, v179@@ -162,7 +175,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v185 = iconst.i32 0v186 = iconst.i32 1v187 = icmp eq v26, v185 ; v185 = 0- v188 = ishl_imm v186, 31 ; v186 = 1+ v815 = iconst.i32 31+ v188 = ishl v186, v815 ; v186 = 1v189 = isub v185, v186 ; v185 = 0, v186 = 1v190 = icmp eq v26, v188v191 = icmp eq v26, v189@@ -173,7 +187,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v195 = iconst.i32 0v196 = iconst.i32 1v197 = icmp eq v27, v195 ; v195 = 0- v198 = ishl_imm v196, 31 ; v196 = 1+ v816 = iconst.i32 31+ v198 = ishl v196, v816 ; v196 = 1v199 = isub v195, v196 ; v195 = 0, v196 = 1v200 = icmp eq v27, v198v201 = icmp eq v27, v199@@ -184,7 +199,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v205 = iconst.i32 0v206 = iconst.i32 1v207 = icmp eq v28, v205 ; v205 = 0- v208 = ishl_imm v206, 31 ; v206 = 1+ v817 = iconst.i32 31+ v208 = ishl v206, v817 ; v206 = 1v209 = isub v205, v206 ; v205 = 0, v206 = 1v210 = icmp eq v28, v208v211 = icmp eq v28, v209@@ -199,7 +215,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v215 = iconst.i32 0v216 = iconst.i32 1v217 = icmp eq v29, v215 ; v215 = 0- v218 = ishl_imm v216, 31 ; v216 = 1+ v818 = iconst.i32 31+ v218 = ishl v216, v818 ; v216 = 1v219 = isub v215, v216 ; v215 = 0, v216 = 1v220 = icmp eq v29, v218v221 = icmp eq v29, v219@@ -210,7 +227,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v225 = iconst.i32 0v226 = iconst.i32 1v227 = icmp eq v31, v225 ; v225 = 0- v228 = ishl_imm v226, 31 ; v226 = 1+ v819 = iconst.i32 31+ v228 = ishl v226, v819 ; v226 = 1v229 = isub v225, v226 ; v225 = 0, v226 = 1v230 = icmp eq v31, v228v231 = icmp eq v31, v229@@ -221,7 +239,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v235 = iconst.i32 0v236 = iconst.i32 1v237 = icmp eq v32, v235 ; v235 = 0- v238 = ishl_imm v236, 31 ; v236 = 1+ v820 = iconst.i32 31+ v238 = ishl v236, v820 ; v236 = 1v239 = isub v235, v236 ; v235 = 0, v236 = 1v240 = icmp eq v32, v238v241 = icmp eq v32, v239@@ -232,7 +251,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v245 = iconst.i32 0v246 = iconst.i32 1v247 = icmp eq v33, v245 ; v245 = 0- v248 = ishl_imm v246, 31 ; v246 = 1+ v821 = iconst.i32 31+ v248 = ishl v246, v821 ; v246 = 1v249 = isub v245, v246 ; v245 = 0, v246 = 1v250 = icmp eq v33, v248v251 = icmp eq v33, v249@@ -245,7 +265,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v255 = iconst.i32 0v256 = iconst.i32 1v257 = icmp eq v34, v255 ; v255 = 0- v258 = ishl_imm v256, 31 ; v256 = 1+ v822 = iconst.i32 31+ v258 = ishl v256, v822 ; v256 = 1v259 = isub v255, v256 ; v255 = 0, v256 = 1v260 = icmp eq v34, v258v261 = icmp eq v34, v259@@ -256,7 +277,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v265 = iconst.i32 0v266 = iconst.i32 1v267 = icmp eq v36, v265 ; v265 = 0- v268 = ishl_imm v266, 31 ; v266 = 1+ v823 = iconst.i32 31+ v268 = ishl v266, v823 ; v266 = 1v269 = isub v265, v266 ; v265 = 0, v266 = 1v270 = icmp eq v36, v268v271 = icmp eq v36, v269@@ -267,7 +289,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v275 = iconst.i32 0v276 = iconst.i32 1v277 = icmp eq v37, v275 ; v275 = 0- v278 = ishl_imm v276, 31 ; v276 = 1+ v824 = iconst.i32 31+ v278 = ishl v276, v824 ; v276 = 1v279 = isub v275, v276 ; v275 = 0, v276 = 1v280 = icmp eq v37, v278v281 = icmp eq v37, v279@@ -279,7 +302,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v285 = iconst.i32 0v286 = iconst.i32 1v287 = icmp eq v38, v285 ; v285 = 0- v288 = ishl_imm v286, 31 ; v286 = 1+ v825 = iconst.i32 31+ v288 = ishl v286, v825 ; v286 = 1v289 = isub v285, v286 ; v285 = 0, v286 = 1v290 = icmp eq v38, v288v291 = icmp eq v38, v289@@ -290,7 +314,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v295 = iconst.i32 0v296 = iconst.i32 1v297 = icmp eq v39, v295 ; v295 = 0- v298 = ishl_imm v296, 31 ; v296 = 1+ v826 = iconst.i32 31+ v298 = ishl v296, v826 ; v296 = 1v299 = isub v295, v296 ; v295 = 0, v296 = 1v300 = icmp eq v39, v298v301 = icmp eq v39, v299@@ -302,7 +327,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v305 = iconst.i32 0v306 = iconst.i32 1v307 = icmp eq v40, v305 ; v305 = 0- v308 = ishl_imm v306, 31 ; v306 = 1+ v827 = iconst.i32 31+ v308 = ishl v306, v827 ; v306 = 1v309 = isub v305, v306 ; v305 = 0, v306 = 1v310 = icmp eq v40, v308v311 = icmp eq v40, v309@@ -313,7 +339,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v315 = iconst.i32 0v316 = iconst.i32 1v317 = icmp eq v42, v315 ; v315 = 0- v318 = ishl_imm v316, 31 ; v316 = 1+ v828 = iconst.i32 31+ v318 = ishl v316, v828 ; v316 = 1v319 = isub v315, v316 ; v315 = 0, v316 = 1v320 = icmp eq v42, v318v321 = icmp eq v42, v319@@ -324,7 +351,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v325 = iconst.i32 0v326 = iconst.i32 1v327 = icmp eq v43, v325 ; v325 = 0- v328 = ishl_imm v326, 31 ; v326 = 1+ v829 = iconst.i32 31+ v328 = ishl v326, v829 ; v326 = 1v329 = isub v325, v326 ; v325 = 0, v326 = 1v330 = icmp eq v43, v328v331 = icmp eq v43, v329@@ -335,7 +363,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v335 = iconst.i32 0v336 = iconst.i32 1v337 = icmp eq v44, v335 ; v335 = 0- v338 = ishl_imm v336, 31 ; v336 = 1+ v830 = iconst.i32 31+ v338 = ishl v336, v830 ; v336 = 1v339 = isub v335, v336 ; v335 = 0, v336 = 1v340 = icmp eq v44, v338v341 = icmp eq v44, v339@@ -346,7 +375,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v345 = iconst.i32 0v346 = iconst.i32 1v347 = icmp eq v45, v345 ; v345 = 0- v348 = ishl_imm v346, 31 ; v346 = 1+ v831 = iconst.i32 31+ v348 = ishl v346, v831 ; v346 = 1v349 = isub v345, v346 ; v345 = 0, v346 = 1v350 = icmp eq v45, v348v351 = icmp eq v45, v349@@ -357,7 +387,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v355 = iconst.i32 0v356 = iconst.i32 1v357 = icmp eq v46, v355 ; v355 = 0- v358 = ishl_imm v356, 31 ; v356 = 1+ v832 = iconst.i32 31+ v358 = ishl v356, v832 ; v356 = 1v359 = isub v355, v356 ; v355 = 0, v356 = 1v360 = icmp eq v46, v358v361 = icmp eq v46, v359@@ -369,7 +400,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v365 = iconst.i32 0v366 = iconst.i32 1v367 = icmp eq v47, v365 ; v365 = 0- v368 = ishl_imm v366, 31 ; v366 = 1+ v833 = iconst.i32 31+ v368 = ishl v366, v833 ; v366 = 1v369 = isub v365, v366 ; v365 = 0, v366 = 1v370 = icmp eq v47, v368v371 = icmp eq v47, v369@@ -380,7 +412,8 @@ block0(v0: i16, v1: f64, v2: i32, v3: i64, v4: i16, v5: i128, v6: f32):v375 = iconst.i32 0v376 = iconst.i32 1v377 = icmp eq v49, v375 ; v375 = 0- v378 = ishl_imm v376, 31 ; v376 = 1+ v834 = iconst.i32 31+ v378 = ishl v376, v834 ; v376 = 1v379 = isub v375, v376 ; v375 = 0, v376 = 1v380 = icmp eq v49, v378v381 = icmp eq v49, v379diff --git a/cranelift/filetests/filetests/runtests/shifts.clif b/cranelift/filetests/filetests/runtests/shifts.clifindex 9ff5bbe6f2..113879b153 100644--- a/cranelift/filetests/filetests/runtests/shifts.clif+++ b/cranelift/filetests/filetests/runtests/shifts.clif@@ -723,28 +723,32 @@ block0(v0: i8, v1: i8):function %ishl_i64_const(i64) -> i64 {block0(v0: i64):- v1 = ishl_imm.i64 v0, 65+ v2 = iconst.i64 65+ v1 = ishl v0, v2return v1}; run: %ishl_i64_const(0x00000000_00000004) == 0x00000000_00000008function %ishl_i32_const(i32) -> i32 {block0(v0: i32):- v1 = ishl_imm.i32 v0, 33+ v2 = iconst.i32 33+ v1 = ishl v0, v2return v1}; run: %ishl_i32_const(0x00000004) == 0x00000008function %ishl_i16_const(i16) -> i16 {block0(v0: i16):- v1 = ishl_imm.i16 v0, 17+ v2 = iconst.i16 17+ v1 = ishl v0, v2return v1}; run: %ishl_i16_const(0x0004) == 0x0008function %ishl_i8_const(i8) -> i8 {block0(v0: i8):- v1 = ishl_imm.i8 v0, 9+ v2 = iconst.i8 9+ v1 = ishl v0, v2return v1}; run: %ishl_i8_const(0x04) == 0x08@@ -753,28 +757,32 @@ block0(v0: i8):function %ushr_i64_const(i64) -> i64 {block0(v0: i64):- v1 = ushr_imm.i64 v0, 65+ v2 = iconst.i64 65+ v1 = ushr v0, v2return v1}; run: %ushr_i64_const(0x40000000_40000000) == 0x20000000_20000000function %ushr_i32_const(i32) -> i32 {block0(v0: i32):- v1 = ushr_imm.i32 v0, 33+ v2 = iconst.i32 33+ v1 = ushr v0, v2return v1}; run: %ushr_i32_const(0x40000000) == 0x20000000function %ushr_i16_const(i16) -> i16 {block0(v0: i16):- v1 = ushr_imm.i16 v0, 17+ v2 = iconst.i16 17+ v1 = ushr v0, v2return v1}; run: %ushr_i16_const(0x4000) == 0x2000function %ushr_i8_const(i8) -> i8 {block0(v0: i8):- v1 = ushr_imm.i8 v0, 9+ v2 = iconst.i8 9+ v1 = ushr v0, v2return v1}; run: %ushr_i8_const(0x40) == 0x20@@ -782,28 +790,32 @@ block0(v0: i8):function %sshr_i64_const(i64) -> i64 {block0(v0: i64):- v1 = sshr_imm.i64 v0, 65+ v2 = iconst.i64 65+ v1 = sshr v0, v2return v1}; run: %sshr_i64_const(0x40000000_40000000) == 0x20000000_20000000function %sshr_i32_const(i32) -> i32 {block0(v0: i32):- v1 = sshr_imm.i32 v0, 33+ v2 = iconst.i32 33+ v1 = sshr v0, v2return v1}; run: %sshr_i32_const(0x40000000) == 0x20000000function %sshr_i16_const(i16) -> i16 {block0(v0: i16):- v1 = sshr_imm.i16 v0, 17+ v2 = iconst.i16 17+ v1 = sshr v0, v2return v1}; run: %sshr_i16_const(0x4000) == 0x2000function %sshr_i8_const(i8) -> i8 {block0(v0: i8):- v1 = sshr_imm.i8 v0, 9+ v2 = iconst.i8 9+ v1 = sshr v0, v2return v1}; run: %sshr_i8_const(0x40) == 0x20diff --git a/cranelift/filetests/filetests/runtests/simd-ishl.clif b/cranelift/filetests/filetests/runtests/simd-ishl.clifindex 0812738cc3..c7f6293390 100644--- a/cranelift/filetests/filetests/runtests/simd-ishl.clif+++ b/cranelift/filetests/filetests/runtests/simd-ishl.clif@@ -48,7 +48,8 @@ block0(v0: i64x2, v1: i32):function %ishl_imm_i64x2(i64x2) -> i64x2 {block0(v0: i64x2):- v2 = ishl_imm v0, 1+ v3 = iconst.i64 1+ v2 = ishl v0, v3return v2}; run: %ishl_imm_i64x2([1 0]) == [2 0]diff --git a/cranelift/filetests/filetests/runtests/simd-sshr.clif b/cranelift/filetests/filetests/runtests/simd-sshr.clifindex b14e4d6215..c50e42ae9e 100644--- a/cranelift/filetests/filetests/runtests/simd-sshr.clif+++ b/cranelift/filetests/filetests/runtests/simd-sshr.clif@@ -58,14 +58,16 @@ block0(v0:i64x2, v1:i32):function %sshr_imm_i32x4(i32x4) -> i32x4 {block0(v0: i32x4):- v1 = sshr_imm v0, 1+ v2 = iconst.i32 1+ v1 = sshr v0, v2return v1}; run: %sshr_imm_i32x4([1 2 4 -8]) == [0 1 2 -4]function %sshr_imm_i16x8(i16x8) -> i16x8 {block0(v0: i16x8):- v1 = sshr_imm v0, 1+ v2 = iconst.i16 1+ v1 = sshr v0, v2return v1}; run: %sshr_imm_i16x8([1 2 4 -8 0 0 0 0]) == [0 1 2 -4 0 0 0 0]diff --git a/cranelift/filetests/filetests/runtests/simd-ushr.clif b/cranelift/filetests/filetests/runtests/simd-ushr.clifindex 15db013b6f..ce5f3a3b8b 100644--- a/cranelift/filetests/filetests/runtests/simd-ushr.clif+++ b/cranelift/filetests/filetests/runtests/simd-ushr.clif@@ -49,7 +49,8 @@ block0(v0: i64x2, v1: i32):function %ushr_imm_i16x8() -> i16x8 {block0:v1 = vconst.i16x8 [1 2 4 -8 0 0 0 0]- v2 = ushr_imm v1, 1+ v3 = iconst.i16 1+ v2 = ushr v1, v3return v2}; run: %ushr_imm_i16x8() == [0 1 2 32764 0 0 0 0]diff --git a/cranelift/filetests/filetests/runtests/srem.clif b/cranelift/filetests/filetests/runtests/srem.clifindex 38eca30e17..0fb5fe5866 100644--- a/cranelift/filetests/filetests/runtests/srem.clif+++ b/cranelift/filetests/filetests/runtests/srem.clif@@ -87,7 +87,8 @@ block0(v0: i8,v1: i8):function %srem_imm_i64(i64) -> i64 {block0(v0: i64):- v1 = srem_imm v0, 3+ v2 = iconst.i64 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i64(0) == 0@@ -103,7 +104,8 @@ block0(v0: i64):function %srem_imm_i32(i32) -> i32 {block0(v0: i32):- v1 = srem_imm v0, 3+ v2 = iconst.i32 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i32(0) == 0@@ -119,7 +121,8 @@ block0(v0: i32):function %srem_imm_i16(i16) -> i16 {block0(v0: i16):- v1 = srem_imm v0, 3+ v2 = iconst.i16 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i16(0) == 0@@ -134,7 +137,8 @@ block0(v0: i16):function %srem_imm_i8(i8) -> i8 {block0(v0: i8):- v1 = srem_imm v0, 3+ v2 = iconst.i8 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i8(0) == 0diff --git a/cranelift/filetests/filetests/runtests/srem_opts.clif b/cranelift/filetests/filetests/runtests/srem_opts.clifindex 8ba1aa13a9..a59e923ec8 100644--- a/cranelift/filetests/filetests/runtests/srem_opts.clif+++ b/cranelift/filetests/filetests/runtests/srem_opts.clif@@ -102,7 +102,8 @@ block0(v0: i8,v1: i8):function %srem_imm_i64(i64) -> i64 {block0(v0: i64):- v1 = srem_imm v0, 3+ v2 = iconst.i64 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i64(0) == 0@@ -118,7 +119,8 @@ block0(v0: i64):function %srem_imm_i32(i32) -> i32 {block0(v0: i32):- v1 = srem_imm v0, 3+ v2 = iconst.i32 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i32(0) == 0@@ -134,7 +136,8 @@ block0(v0: i32):function %srem_imm_i16(i16) -> i16 {block0(v0: i16):- v1 = srem_imm v0, 3+ v2 = iconst.i16 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i16(0) == 0@@ -149,7 +152,8 @@ block0(v0: i16):function %srem_imm_i8(i8) -> i8 {block0(v0: i8):- v1 = srem_imm v0, 3+ v2 = iconst.i8 3+ v1 = srem v0, v2return v1}; run: %srem_imm_i8(0) == 0@@ -270,7 +274,8 @@ block0:function %const_srem_imm_pow2_i64() -> i64 {block0:v0 = iconst.i64 1000- v1 = srem_imm v0, 16+ v2 = iconst.i64 16+ v1 = srem v0, v2return v1}; run: %const_srem_imm_pow2_i64() == 8@@ -278,7 +283,8 @@ block0:function %const_srem_imm_non_pow2_i64() -> i64 {block0:v0 = iconst.i64 1000- v1 = srem_imm v0, 7+ v2 = iconst.i64 7+ v1 = srem v0, v2return v1}; run: %const_srem_imm_non_pow2_i64() == 6@@ -286,7 +292,8 @@ block0:function %const_srem_imm_negative_i64() -> i64 {block0:v0 = iconst.i64 -1000- v1 = srem_imm v0, 7+ v2 = iconst.i64 7+ v1 = srem v0, v2return v1}; run: %const_srem_imm_negative_i64() == -6@@ -365,7 +372,8 @@ block0:function %srem_imm_pow2_more_i64(i64) -> i64 {block0(v0: i64):- v1 = srem_imm v0, 32+ v2 = iconst.i64 32+ v1 = srem v0, v2return v1}; run: %srem_imm_pow2_more_i64(100) == 4@@ -375,7 +383,8 @@ block0(v0: i64):function %srem_imm_pow2_more_i32(i32) -> i32 {block0(v0: i32):- v1 = srem_imm v0, 64+ v2 = iconst.i32 64+ v1 = srem v0, v2return v1}; run: %srem_imm_pow2_more_i32(100) == 36@@ -386,7 +395,8 @@ block0(v0: i32):; Test larger non-power-of-2 immediatesfunction %srem_imm_large_i64(i64) -> i64 {block0(v0: i64):- v1 = srem_imm v0, 1337+ v2 = iconst.i64 1337+ v1 = srem v0, v2return v1}; run: %srem_imm_large_i64(10000) == 641@@ -396,7 +406,8 @@ block0(v0: i64):function %srem_imm_prime_i64(i64) -> i64 {block0(v0: i64):- v1 = srem_imm v0, 97+ v2 = iconst.i64 97+ v1 = srem v0, v2return v1}; run: %srem_imm_prime_i64(1000) == 30diff --git a/cranelift/filetests/filetests/runtests/urem.clif b/cranelift/filetests/filetests/runtests/urem.clifindex d9c6906bbc..6527399dab 100644--- a/cranelift/filetests/filetests/runtests/urem.clif+++ b/cranelift/filetests/filetests/runtests/urem.clif@@ -86,7 +86,8 @@ block0(v0: i8,v1: i8):function %urem_imm_i64(i64) -> i64 {block0(v0: i64):- v1 = urem_imm v0, 3+ v2 = iconst.i64 3+ v1 = urem v0, v2return v1}; run: %urem_imm_i64(0) == 0@@ -100,7 +101,8 @@ block0(v0: i64):function %urem_imm_i32(i32) -> i32 {block0(v0: i32):- v1 = urem_imm v0, 3+ v2 = iconst.i32 3+ v1 = urem v0, v2return v1}; run: %urem_imm_i32(0) == 0@@ -114,7 +116,8 @@ block0(v0: i32):function %urem_imm_i16(i16) -> i16 {block0(v0: i16):- v1 = urem_imm v0, 3+ v2 = iconst.i16 3+ v1 = urem v0, v2return v1}; run: %urem_imm_i16(0) == 0@@ -128,7 +131,8 @@ block0(v0: i16):function %urem_imm_i8(i8) -> i8 {block0(v0: i8):- v1 = urem_imm v0, 3+ v2 = iconst.i8 3+ v1 = urem v0, v2return v1}; run: %urem_imm_i8(0) == 0diff --git a/cranelift/fuzzgen/src/function_generator.rs b/cranelift/fuzzgen/src/function_generator.rsindex cfea410027..746a71fd32 100644--- a/cranelift/fuzzgen/src/function_generator.rs+++ b/cranelift/fuzzgen/src/function_generator.rs@@ -925,22 +925,11 @@ static OPCODE_SIGNATURES: LazyLock<Vec<OpcodeSignature>> = LazyLock::new(|| {(Opcode::GetReturnAddress),(Opcode::Blendv),(Opcode::X86Pmulhrsw),- (Opcode::UremImm),- (Opcode::SremImm),- (Opcode::IrsubImm),(Opcode::UaddOverflowCin),(Opcode::SaddOverflowCin),(Opcode::UaddOverflowTrap),(Opcode::UsubOverflowBin),(Opcode::SsubOverflowBin),- (Opcode::BandImm),- (Opcode::BorImm),- (Opcode::BxorImm),- (Opcode::RotlImm),- (Opcode::RotrImm),- (Opcode::IshlImm),- (Opcode::UshrImm),- (Opcode::SshrImm),(Opcode::ScalarToVector),(Opcode::X86Pmaddubsw),(Opcode::X86Cvtt2dq),@@ -1076,7 +1065,6 @@ fn inserter_for_format(fmt: InstructionFormat) -> OpcodeInserter {InstructionFormat::AtomicCas => insert_atomic_cas,InstructionFormat::AtomicRmw => insert_atomic_rmw,InstructionFormat::Binary => insert_opcode,- InstructionFormat::BinaryImm64 => todo!(),InstructionFormat::BinaryImm8 => insert_ins_ext_lane,InstructionFormat::Call => insert_call,InstructionFormat::CallIndirect => insert_call,diff --git a/cranelift/interpreter/src/interpreter.rs b/cranelift/interpreter/src/interpreter.rsindex ae9bc432a3..547e3e7dd8 100644--- a/cranelift/interpreter/src/interpreter.rs+++ b/cranelift/interpreter/src/interpreter.rs@@ -577,7 +577,8 @@ mod tests {v0 = iconst.i32 1v5 = iconst.i32 1v1 = iadd v0, v5- v2 = irsub_imm v1, 44 ; 44 - 2 == 42 (see irsub_imm's semantics)+ v6 = iconst.i32 44+ v2 = isub v6, v1 ; 44 - 2 == 42v4 = iconst.i32 42v3 = icmp eq v2, v4return v3diff --git a/cranelift/interpreter/src/step.rs b/cranelift/interpreter/src/step.rsindex 660a505363..280922c3b4 100644--- a/cranelift/interpreter/src/step.rs+++ b/cranelift/interpreter/src/step.rs@@ -154,9 +154,7 @@ where| InstructionData::StackLoad { offset, .. }| InstructionData::StackStore { offset, .. } => DataValue::from(offset),// 64-bit.- InstructionData::UnaryImm { imm, .. } | InstructionData::BinaryImm64 { imm, .. } => {- DataValue::from(imm.bits())- }+ InstructionData::UnaryImm { imm, .. } => DataValue::from(imm.bits()),InstructionData::UnaryIeee64 { imm, .. } => DataValue::from(imm),_ => unreachable!(),}@@ -169,13 +167,6 @@ where.expect("instruction to have memory flags")};- // Retrieve the immediate value for an instruction and convert it to the controlling type of the- // instruction. For example, since `InstructionData` stores all integer immediates in a 64-bit- // size, this will attempt to convert `iconst.i8 ...` to an 8-bit size.- let imm_as_ctrl_ty = || -> Result<DataValue, ValueError> {- DataValue::convert(imm(), ValueConversionKind::Exact(ctrl_ty))- };-// Indicate that the result of a step is to assign a single value to an instruction's results.let assign = |value: DataValue| ControlFlow::Assign(smallvec![value]);@@ -718,9 +709,6 @@ whereOpcode::Sdiv => binary_can_trap(DataValueExt::sdiv, arg(0), arg(1))?,Opcode::Urem => binary_can_trap(DataValueExt::urem, arg(0), arg(1))?,Opcode::Srem => binary_can_trap(DataValueExt::srem, arg(0), arg(1))?,- Opcode::UremImm => binary_can_trap(DataValueExt::urem, arg(0), imm_as_ctrl_ty()?)?,- Opcode::SremImm => binary_can_trap(DataValueExt::srem, arg(0), imm_as_ctrl_ty()?)?,- Opcode::IrsubImm => binary(DataValueExt::sub, imm_as_ctrl_ty()?, arg(0))?,Opcode::UaddOverflow => {let (sum, carry) = arg(0).uadd_overflow(arg(1))?;assign_multiple(&[sum, DataValueExt::bool(carry, false, types::I8)?])@@ -803,19 +791,11 @@ whereOpcode::BandNot => binary(DataValueExt::and, arg(0), DataValueExt::not(arg(1))?)?,Opcode::BorNot => binary(DataValueExt::or, arg(0), DataValueExt::not(arg(1))?)?,Opcode::BxorNot => binary(DataValueExt::xor, arg(0), DataValueExt::not(arg(1))?)?,- Opcode::BandImm => binary(DataValueExt::and, arg(0), imm_as_ctrl_ty()?)?,- Opcode::BorImm => binary(DataValueExt::or, arg(0), imm_as_ctrl_ty()?)?,- Opcode::BxorImm => binary(DataValueExt::xor, arg(0), imm_as_ctrl_ty()?)?,Opcode::Rotl => binary(DataValueExt::rotl, arg(0), shift_amt(ctrl_ty, arg(1))?)?,Opcode::Rotr => binary(DataValueExt::rotr, arg(0), shift_amt(ctrl_ty, arg(1))?)?,- Opcode::RotlImm => binary(DataValueExt::rotl, arg(0), shift_amt(ctrl_ty, imm())?)?,- Opcode::RotrImm => binary(DataValueExt::rotr, arg(0), shift_amt(ctrl_ty, imm())?)?,Opcode::Ishl => binary(DataValueExt::shl, arg(0), shift_amt(ctrl_ty, arg(1))?)?,Opcode::Ushr => binary(DataValueExt::ushr, arg(0), shift_amt(ctrl_ty, arg(1))?)?,Opcode::Sshr => binary(DataValueExt::sshr, arg(0), shift_amt(ctrl_ty, arg(1))?)?,- Opcode::IshlImm => binary(DataValueExt::shl, arg(0), shift_amt(ctrl_ty, imm())?)?,- Opcode::UshrImm => binary(DataValueExt::ushr, arg(0), shift_amt(ctrl_ty, imm())?)?,- Opcode::SshrImm => binary(DataValueExt::sshr, arg(0), shift_amt(ctrl_ty, imm())?)?,Opcode::Bitrev => unary(DataValueExt::reverse_bits, arg(0))?,Opcode::Bswap => unary(DataValueExt::swap_bytes, arg(0))?,Opcode::Clz => unary(DataValueExt::leading_zeros, arg(0))?,diff --git a/cranelift/reader/src/parser.rs b/cranelift/reader/src/parser.rsindex d8a8aa5bb0..610a153b2a 100644--- a/cranelift/reader/src/parser.rs+++ b/cranelift/reader/src/parser.rs@@ -2751,16 +2751,6 @@ impl<'a> Parser<'a> {let imm = self.match_uimm8("expected unsigned 8-bit immediate")?;InstructionData::BinaryImm8 { opcode, arg, imm }}- InstructionFormat::BinaryImm64 => {- let lhs = self.match_value("expected SSA value first operand")?;- self.match_token(Token::Comma, "expected ',' between operands")?;- let rhs = self.match_imm64("expected immediate integer second operand")?;- InstructionData::BinaryImm64 {- opcode,- arg: lhs,- imm: rhs,- }- }InstructionFormat::Ternary => {// Names here refer to the `select` instruction.// This format is also use by `fma`.diff --git a/tests/disas/alias-region-tables.wat b/tests/disas/alias-region-tables.watindex 0856211d12..b40530b55b 100644--- a/tests/disas/alias-region-tables.wat+++ b/tests/disas/alias-region-tables.wat@@ -36,44 +36,44 @@;; @0043 v63 = load.i64 notrap aligned readonly can_move v0+48;; @0043 v5 = load.i64 notrap aligned v63+8;; @0043 v9 = load.i64 notrap aligned v63-;; v59 = iconst.i64 1-;; @0043 v14 = bor v3, v59 ; v59 = 1+;; @0043 v15 = iconst.i64 1+;; @0043 v16 = bor v3, v15 ; v15 = 1;; @0043 v6 = ireduce.i32 v5;; @0043 v7 = icmp uge v2, v6-;; @0043 v12 = iconst.i64 0+;; @0043 v13 = iconst.i64 0;; @0043 v8 = uextend.i64 v2-;; v60 = iconst.i64 3-;; @0043 v10 = ishl v8, v60 ; v60 = 3-;; @0043 v11 = iadd v9, v10-;; @0043 v13 = select_spectre_guard v7, v12, v11 ; v12 = 0-;; @0043 store user6 aligned region0 v14, v13-;; @0049 v15 = load.i64 notrap aligned v0+80-;; @0049 v19 = load.i64 notrap aligned v0+72-;; @0049 v16 = ireduce.i32 v15-;; @0049 v17 = icmp uge v2, v16-;; @0049 v21 = iadd v19, v10-;; @0049 v23 = select_spectre_guard v17, v12, v21 ; v12 = 0-;; @0049 store user6 aligned region1 v14, v23-;; v49 = iconst.i64 -2-;; @004d v35 = band v14, v49 ; v49 = -2-;; @004d brif v14, block3(v35), block2+;; @0043 v10 = iconst.i64 3+;; @0043 v11 = ishl v8, v10 ; v10 = 3+;; @0043 v12 = iadd v9, v11+;; @0043 v14 = select_spectre_guard v7, v13, v12 ; v13 = 0+;; @0043 store user6 aligned region0 v16, v14+;; @0049 v17 = load.i64 notrap aligned v0+80+;; @0049 v21 = load.i64 notrap aligned v0+72+;; @0049 v18 = ireduce.i32 v17+;; @0049 v19 = icmp uge v2, v18+;; @0049 v24 = iadd v21, v11+;; @0049 v26 = select_spectre_guard v19, v13, v24 ; v13 = 0+;; @0049 store user6 aligned region1 v16, v26+;; @004d v40 = iconst.i64 -2+;; @004d v41 = band v16, v40 ; v40 = -2+;; @004d brif v16, block3(v41), block2;;;; block2 cold:-;; @004d v37 = iconst.i32 0-;; @004d v40 = call fn0(v0, v37, v8) ; v37 = 0-;; @004d jump block3(v40)+;; @004d v43 = iconst.i32 0+;; @004d v46 = call fn0(v0, v43, v8) ; v43 = 0+;; @004d jump block3(v46);;-;; block3(v36: i64):-;; @004d v44 = load.i32 user7 aligned readonly v36+16-;; @004d v42 = load.i64 notrap aligned readonly can_move v0+40-;; @004d v43 = load.i32 notrap aligned readonly can_move v42-;; @004d v45 = icmp eq v44, v43-;; @004d trapz v45, user8-;; @004d v46 = load.i64 notrap aligned readonly v36+8-;; @004d v47 = load.i64 notrap aligned readonly v36+24-;; @004d v48 = call_indirect sig0, v46(v47, v0)+;; block3(v42: i64):+;; @004d v50 = load.i32 user7 aligned readonly v42+16+;; @004d v48 = load.i64 notrap aligned readonly can_move v0+40+;; @004d v49 = load.i32 notrap aligned readonly can_move v48+;; @004d v51 = icmp eq v50, v49+;; @004d trapz v51, user8+;; @004d v52 = load.i64 notrap aligned readonly v42+8+;; @004d v53 = load.i64 notrap aligned readonly v42+24+;; @004d v54 = call_indirect sig0, v52(v53, v0);; @0050 jump block1;;;; block1:-;; @0050 return v48+;; @0050 return v54;; }diff --git a/tests/disas/array-fill-anyref.wat b/tests/disas/array-fill-anyref.watindex 761740f3b2..fe24c33adf 100644--- a/tests/disas/array-fill-anyref.wat+++ b/tests/disas/array-fill-anyref.wat@@ -146,44 +146,44 @@;;;; block0(v0: i64, v1: i64, v2: i32, v3: i32, v4: i32):;; @004e trapz v2, user16-;; @004e v51 = load.i64 notrap aligned readonly can_move v0+8-;; @004e v9 = load.i64 notrap aligned readonly can_move v51+32-;; @004e v8 = uextend.i64 v2-;; @004e v10 = iadd v9, v8-;; @004e v11 = iconst.i64 16-;; @004e v12 = iadd v10, v11 ; v11 = 16-;; @004e v13 = load.i32 user2 readonly region0 v12-;; @004e v15 = uextend.i64 v3-;; @004e v16 = uextend.i64 v4-;; @004e v19 = iadd v15, v16-;; @004e v14 = uextend.i64 v13-;; @004e v20 = icmp ugt v19, v14-;; @004e trapnz v20, user17-;; @004e v34 = load.i64 notrap aligned v51+40-;; @004e v24 = iconst.i64 20-;; @004e v25 = iadd v10, v24 ; v24 = 20+;; @004e v53 = load.i64 notrap aligned readonly can_move v0+8+;; @004e v11 = load.i64 notrap aligned readonly can_move v53+32+;; @004e v10 = uextend.i64 v2+;; @004e v12 = iadd v11, v10+;; @004e v13 = iconst.i64 16+;; @004e v14 = iadd v12, v13 ; v13 = 16+;; @004e v15 = load.i32 user2 readonly region0 v14+;; @004e v17 = uextend.i64 v3+;; @004e v18 = uextend.i64 v4+;; @004e v21 = iadd v17, v18+;; @004e v16 = uextend.i64 v15+;; @004e v22 = icmp ugt v21, v16+;; @004e trapnz v22, user17+;; @004e v36 = load.i64 notrap aligned v53+40+;; @004e v26 = iconst.i64 20+;; @004e v27 = iadd v12, v26 ; v26 = 20;; v63 = iconst.i64 2-;; v64 = ishl v15, v63 ; v63 = 2-;; @004e v29 = iadd v25, v64-;; v66 = ishl v16, v63 ; v63 = 2-;; @004e v36 = uadd_overflow_trap v29, v66, user2-;; @004e v35 = iadd v9, v34-;; @004e v37 = icmp ugt v36, v35-;; @004e trapnz v37, user2+;; v64 = ishl v17, v63 ; v63 = 2+;; @004e v31 = iadd v27, v64+;; v66 = ishl v18, v63 ; v63 = 2+;; @004e v38 = uadd_overflow_trap v31, v66, user2+;; @004e v37 = iadd v11, v36+;; @004e v39 = icmp ugt v38, v37+;; @004e trapnz v39, user2;; v61 = iconst.i64 0-;; @004e v40 = icmp eq v16, v61 ; v61 = 0+;; @004e v42 = icmp eq v18, v61 ; v61 = 0;; @0048 v5 = iconst.i32 -1-;; @004e v27 = iconst.i64 4-;; @004e v38 = iadd v29, v66-;; @004e brif v40, block3, block2(v29)+;; @004e v29 = iconst.i64 4+;; @004e v40 = iadd v31, v66+;; @004e brif v42, block3, block2(v31);;-;; block2(v41: i64):+;; block2(v43: i64):;; v68 = iconst.i32 -1-;; @004e store user2 little region0 v68, v41 ; v68 = -1+;; @004e store user2 little region0 v68, v43 ; v68 = -1;; v69 = iconst.i64 4-;; v70 = iadd v41, v69 ; v69 = 4-;; @004e v44 = icmp eq v70, v38-;; @004e brif v44, block3, block2(v70)+;; v70 = iadd v43, v69 ; v69 = 4+;; @004e v46 = icmp eq v70, v40+;; @004e brif v46, block3, block2(v70);;;; block3:;; @0051 jump block1diff --git a/tests/disas/array-fill-i31ref.wat b/tests/disas/array-fill-i31ref.watindex e6c325601b..0891b7cc97 100644--- a/tests/disas/array-fill-i31ref.wat+++ b/tests/disas/array-fill-i31ref.wat@@ -146,44 +146,44 @@;;;; block0(v0: i64, v1: i64, v2: i32, v3: i32, v4: i32):;; @004e trapz v2, user16-;; @004e v51 = load.i64 notrap aligned readonly can_move v0+8-;; @004e v9 = load.i64 notrap aligned readonly can_move v51+32-;; @004e v8 = uextend.i64 v2-;; @004e v10 = iadd v9, v8-;; @004e v11 = iconst.i64 16-;; @004e v12 = iadd v10, v11 ; v11 = 16-;; @004e v13 = load.i32 user2 readonly region0 v12-;; @004e v15 = uextend.i64 v3-;; @004e v16 = uextend.i64 v4-;; @004e v19 = iadd v15, v16-;; @004e v14 = uextend.i64 v13-;; @004e v20 = icmp ugt v19, v14-;; @004e trapnz v20, user17-;; @004e v34 = load.i64 notrap aligned v51+40-;; @004e v24 = iconst.i64 20-;; @004e v25 = iadd v10, v24 ; v24 = 20+;; @004e v53 = load.i64 notrap aligned readonly can_move v0+8+;; @004e v11 = load.i64 notrap aligned readonly can_move v53+32+;; @004e v10 = uextend.i64 v2+;; @004e v12 = iadd v11, v10+;; @004e v13 = iconst.i64 16+;; @004e v14 = iadd v12, v13 ; v13 = 16+;; @004e v15 = load.i32 user2 readonly region0 v14+;; @004e v17 = uextend.i64 v3+;; @004e v18 = uextend.i64 v4+;; @004e v21 = iadd v17, v18+;; @004e v16 = uextend.i64 v15+;; @004e v22 = icmp ugt v21, v16+;; @004e trapnz v22, user17+;; @004e v36 = load.i64 notrap aligned v53+40+;; @004e v26 = iconst.i64 20+;; @004e v27 = iadd v12, v26 ; v26 = 20;; v63 = iconst.i64 2-;; v64 = ishl v15, v63 ; v63 = 2-;; @004e v29 = iadd v25, v64-;; v66 = ishl v16, v63 ; v63 = 2-;; @004e v36 = uadd_overflow_trap v29, v66, user2-;; @004e v35 = iadd v9, v34-;; @004e v37 = icmp ugt v36, v35-;; @004e trapnz v37, user2+;; v64 = ishl v17, v63 ; v63 = 2+;; @004e v31 = iadd v27, v64+;; v66 = ishl v18, v63 ; v63 = 2+;; @004e v38 = uadd_overflow_trap v31, v66, user2+;; @004e v37 = iadd v11, v36+;; @004e v39 = icmp ugt v38, v37+;; @004e trapnz v39, user2;; v61 = iconst.i64 0-;; @004e v40 = icmp eq v16, v61 ; v61 = 0+;; @004e v42 = icmp eq v18, v61 ; v61 = 0;; @0048 v5 = iconst.i32 -1-;; @004e v27 = iconst.i64 4-;; @004e v38 = iadd v29, v66-;; @004e brif v40, block3, block2(v29)+;; @004e v29 = iconst.i64 4+;; @004e v40 = iadd v31, v66+;; @004e brif v42, block3, block2(v31);;-;; block2(v41: i64):+;; block2(v43: i64):;; v68 = iconst.i32 -1-;; @004e store user2 little region0 v68, v41 ; v68 = -1+;; @004e store user2 little region0 v68, v43 ; v68 = -1;; v69 = iconst.i64 4-;; v70 = iadd v41, v69 ; v69 = 4-;; @004e v44 = icmp eq v70, v38-;; @004e brif v44, block3, block2(v70)+;; v70 = iadd v43, v69 ; v69 = 4+;; @004e v46 = icmp eq v70, v40+;; @004e brif v46, block3, block2(v70);;;; block3:;; @0051 jump block1diff --git a/tests/disas/call-indirect.wat b/tests/disas/call-indirect.watindex 89c05d1ce9..fa7aa10745 100644--- a/tests/disas/call-indirect.wat+++ b/tests/disas/call-indirect.wat@@ -26,33 +26,33 @@;; @0035 v7 = icmp uge v3, v6;; @0035 v8 = uextend.i64 v3;; @0035 v9 = load.i64 notrap aligned v0+48-;; v30 = iconst.i64 3-;; @0035 v10 = ishl v8, v30 ; v30 = 3-;; @0035 v11 = iadd v9, v10-;; @0035 v12 = iconst.i64 0-;; @0035 v13 = select_spectre_guard v7, v12, v11 ; v12 = 0-;; @0035 v14 = load.i64 user6 aligned region0 v13-;; v29 = iconst.i64 -2-;; @0035 v15 = band v14, v29 ; v29 = -2-;; @0035 brif v14, block3(v15), block2+;; @0035 v10 = iconst.i64 3+;; @0035 v11 = ishl v8, v10 ; v10 = 3+;; @0035 v12 = iadd v9, v11+;; @0035 v13 = iconst.i64 0+;; @0035 v14 = select_spectre_guard v7, v13, v12 ; v13 = 0+;; @0035 v15 = load.i64 user6 aligned region0 v14+;; @0035 v16 = iconst.i64 -2+;; @0035 v17 = band v15, v16 ; v16 = -2+;; @0035 brif v15, block3(v17), block2;;;; block2 cold:-;; @0035 v17 = iconst.i32 0-;; @0035 v19 = uextend.i64 v3-;; @0035 v20 = call fn0(v0, v17, v19) ; v17 = 0-;; @0035 jump block3(v20)+;; @0035 v19 = iconst.i32 0+;; @0035 v21 = uextend.i64 v3+;; @0035 v22 = call fn0(v0, v19, v21) ; v19 = 0+;; @0035 jump block3(v22);;-;; block3(v16: i64):-;; @0035 v22 = load.i64 notrap aligned readonly can_move v0+40-;; @0035 v23 = load.i32 notrap aligned readonly can_move v22+4-;; @0035 v24 = load.i32 user7 aligned readonly v16+16-;; @0035 v25 = icmp eq v24, v23-;; @0035 trapz v25, user8-;; @0035 v26 = load.i64 notrap aligned readonly v16+8-;; @0035 v27 = load.i64 notrap aligned readonly v16+24-;; @0035 v28 = call_indirect sig0, v26(v27, v0, v2)+;; block3(v18: i64):+;; @0035 v24 = load.i64 notrap aligned readonly can_move v0+40+;; @0035 v25 = load.i32 notrap aligned readonly can_move v24+4+;; @0035 v26 = load.i32 user7 aligned readonly v18+16+;; @0035 v27 = icmp eq v26, v25+;; @0035 trapz v27, user8+;; @0035 v28 = load.i64 notrap aligned readonly v18+8+;; @0035 v29 = load.i64 notrap aligned readonly v18+24+;; @0035 v30 = call_indirect sig0, v28(v29, v0, v2);; @0038 jump block1;;;; block1:-;; @0038 return v28+;; @0038 return v30;; }diff --git a/tests/disas/duplicate-function-types.wat b/tests/disas/duplicate-function-types.watindex 7d08799c79..b37ca22fa7 100644--- a/tests/disas/duplicate-function-types.wat+++ b/tests/disas/duplicate-function-types.wat@@ -38,65 +38,65 @@;; @002d v8 = uextend.i64 v2;; @002d v62 = load.i64 notrap aligned readonly can_move v0+48;; @002d v9 = load.i64 notrap aligned v62-;; v61 = iconst.i64 3-;; @002d v10 = ishl v8, v61 ; v61 = 3-;; @002d v11 = iadd v9, v10-;; @002d v12 = iconst.i64 0-;; @002d v13 = select_spectre_guard v7, v12, v11 ; v12 = 0-;; @002d v14 = load.i64 user6 aligned region0 v13-;; v60 = iconst.i64 -2-;; @002d v15 = band v14, v60 ; v60 = -2-;; @002d brif v14, block3(v15), block2+;; @002d v10 = iconst.i64 3+;; @002d v11 = ishl v8, v10 ; v10 = 3+;; @002d v12 = iadd v9, v11+;; @002d v13 = iconst.i64 0+;; @002d v14 = select_spectre_guard v7, v13, v12 ; v13 = 0+;; @002d v15 = load.i64 user6 aligned region0 v14+;; @002d v16 = iconst.i64 -2+;; @002d v17 = band v15, v16 ; v16 = -2+;; @002d brif v15, block3(v17), block2;;;; block2 cold:-;; @002d v17 = iconst.i32 0-;; @002d v19 = uextend.i64 v2-;; @002d v20 = call fn0(v0, v17, v19) ; v17 = 0-;; @002d jump block3(v20)+;; @002d v19 = iconst.i32 0+;; @002d v21 = uextend.i64 v2+;; @002d v22 = call fn0(v0, v19, v21) ; v19 = 0+;; @002d jump block3(v22);;-;; block3(v16: i64):-;; @002d v22 = load.i64 notrap aligned readonly can_move v0+40-;; @002d v23 = load.i32 notrap aligned readonly can_move v22-;; @002d v24 = load.i32 user7 aligned readonly v16+16-;; @002d v25 = icmp eq v24, v23-;; @002d trapz v25, user8-;; @002d v26 = load.i64 notrap aligned readonly v16+8-;; @002d v27 = load.i64 notrap aligned readonly v16+24-;; @002d v28 = call_indirect sig0, v26(v27, v0)+;; block3(v18: i64):+;; @002d v24 = load.i64 notrap aligned readonly can_move v0+40+;; @002d v25 = load.i32 notrap aligned readonly can_move v24+;; @002d v26 = load.i32 user7 aligned readonly v18+16+;; @002d v27 = icmp eq v26, v25+;; @002d trapz v27, user8+;; @002d v28 = load.i64 notrap aligned readonly v18+8+;; @002d v29 = load.i64 notrap aligned readonly v18+24+;; @002d v30 = call_indirect sig0, v28(v29, v0)+;; @0032 v60 = load.i64 notrap aligned readonly can_move v0+48+;; @0032 v32 = load.i64 notrap aligned v60+8+;; @0032 v33 = ireduce.i32 v32+;; @0032 v34 = icmp.i32 uge v2, v33+;; @0032 v35 = uextend.i64 v2;; @0032 v58 = load.i64 notrap aligned readonly can_move v0+48-;; @0032 v30 = load.i64 notrap aligned v58+8-;; @0032 v31 = ireduce.i32 v30-;; @0032 v32 = icmp.i32 uge v2, v31-;; @0032 v33 = uextend.i64 v2-;; @0032 v56 = load.i64 notrap aligned readonly can_move v0+48-;; @0032 v34 = load.i64 notrap aligned v56-;; v55 = iconst.i64 3-;; @0032 v35 = ishl v33, v55 ; v55 = 3-;; @0032 v36 = iadd v34, v35-;; @0032 v37 = iconst.i64 0-;; @0032 v38 = select_spectre_guard v32, v37, v36 ; v37 = 0-;; @0032 v39 = load.i64 user6 aligned region0 v38-;; v54 = iconst.i64 -2-;; @0032 v40 = band v39, v54 ; v54 = -2-;; @0032 brif v39, block5(v40), block4+;; @0032 v36 = load.i64 notrap aligned v58+;; @0032 v37 = iconst.i64 3+;; @0032 v38 = ishl v35, v37 ; v37 = 3+;; @0032 v39 = iadd v36, v38+;; @0032 v40 = iconst.i64 0+;; @0032 v41 = select_spectre_guard v34, v40, v39 ; v40 = 0+;; @0032 v42 = load.i64 user6 aligned region0 v41+;; @0032 v43 = iconst.i64 -2+;; @0032 v44 = band v42, v43 ; v43 = -2+;; @0032 brif v42, block5(v44), block4;;;; block4 cold:-;; @0032 v42 = iconst.i32 0-;; @0032 v44 = uextend.i64 v2-;; @0032 v45 = call fn0(v0, v42, v44) ; v42 = 0-;; @0032 jump block5(v45)+;; @0032 v46 = iconst.i32 0+;; @0032 v48 = uextend.i64 v2+;; @0032 v49 = call fn0(v0, v46, v48) ; v46 = 0+;; @0032 jump block5(v49);;-;; block5(v41: i64):-;; @0032 v47 = load.i64 notrap aligned readonly can_move v0+40-;; @0032 v48 = load.i32 notrap aligned readonly can_move v47-;; @0032 v49 = load.i32 user7 aligned readonly v41+16-;; @0032 v50 = icmp eq v49, v48-;; @0032 trapz v50, user8-;; @0032 v51 = load.i64 notrap aligned readonly v41+8-;; @0032 v52 = load.i64 notrap aligned readonly v41+24-;; @0032 v53 = call_indirect sig0, v51(v52, v0)+;; block5(v45: i64):+;; @0032 v51 = load.i64 notrap aligned readonly can_move v0+40+;; @0032 v52 = load.i32 notrap aligned readonly can_move v51+;; @0032 v53 = load.i32 user7 aligned readonly v45+16+;; @0032 v54 = icmp eq v53, v52+;; @0032 trapz v54, user8+;; @0032 v55 = load.i64 notrap aligned readonly v45+8+;; @0032 v56 = load.i64 notrap aligned readonly v45+24+;; @0032 v57 = call_indirect sig0, v55(v56, v0);; @0035 jump block1;;;; block1:-;; @0035 return v28, v53+;; @0035 return v30, v57;; }diff --git a/tests/disas/foo.wat b/tests/disas/foo.watindex 61aeed900a..c70b2a44f4 100644--- a/tests/disas/foo.wat+++ b/tests/disas/foo.wat@@ -41,61 +41,61 @@;; @0043 v14 = load.i64 notrap aligned v75;; @0043 v11 = ireduce.i32 v10;; @0043 v12 = icmp uge v9, v11-;; @0043 v17 = iconst.i64 0+;; @0043 v18 = iconst.i64 0;; @0043 v13 = uextend.i64 v9-;; v72 = iconst.i64 3-;; @0043 v15 = ishl v13, v72 ; v72 = 3-;; @0043 v16 = iadd v14, v15-;; @0043 v18 = select_spectre_guard v12, v17, v16 ; v17 = 0-;; @0043 v19 = load.i64 user6 aligned region1 v18-;; v71 = iconst.i64 -2-;; @0043 v20 = band v19, v71 ; v71 = -2-;; @0043 brif v19, block3(v20), block2+;; @0043 v15 = iconst.i64 3+;; @0043 v16 = ishl v13, v15 ; v15 = 3+;; @0043 v17 = iadd v14, v16+;; @0043 v19 = select_spectre_guard v12, v18, v17 ; v18 = 0+;; @0043 v20 = load.i64 user6 aligned region1 v19+;; @0043 v21 = iconst.i64 -2+;; @0043 v22 = band v20, v21 ; v21 = -2+;; @0043 brif v20, block3(v22), block2;;;; block2 cold:-;; @0043 v22 = iconst.i32 0-;; @0043 v25 = call fn0(v0, v22, v13) ; v22 = 0-;; @0043 jump block3(v25)+;; @0043 v24 = iconst.i32 0+;; @0043 v27 = call fn0(v0, v24, v13) ; v24 = 0+;; @0043 jump block3(v27);;-;; block3(v21: i64):-;; @0043 v29 = load.i32 user7 aligned readonly v21+16-;; @0043 v27 = load.i64 notrap aligned readonly can_move v0+40-;; @0043 v28 = load.i32 notrap aligned readonly can_move v27+4-;; @0043 v30 = icmp eq v29, v28-;; @0043 trapz v30, user8-;; @0043 v31 = load.i64 notrap aligned readonly v21+8-;; @0043 v32 = load.i64 notrap aligned readonly v21+24-;; @0043 v33 = call_indirect sig0, v31(v32, v0, v2)-;; @004a v39 = load.i32 little region0 v8-;; @004d v40 = load.i64 notrap aligned v75+8-;; @004d v44 = load.i64 notrap aligned v75-;; @004d v41 = ireduce.i32 v40-;; @004d v42 = icmp uge v39, v41-;; @004d v43 = uextend.i64 v39+;; block3(v23: i64):+;; @0043 v31 = load.i32 user7 aligned readonly v23+16+;; @0043 v29 = load.i64 notrap aligned readonly can_move v0+40+;; @0043 v30 = load.i32 notrap aligned readonly can_move v29+4+;; @0043 v32 = icmp eq v31, v30+;; @0043 trapz v32, user8+;; @0043 v33 = load.i64 notrap aligned readonly v23+8+;; @0043 v34 = load.i64 notrap aligned readonly v23+24+;; @0043 v35 = call_indirect sig0, v33(v34, v0, v2)+;; @004a v41 = load.i32 little region0 v8+;; @004d v42 = load.i64 notrap aligned v75+8+;; @004d v46 = load.i64 notrap aligned v75+;; @004d v43 = ireduce.i32 v42+;; @004d v44 = icmp uge v41, v43+;; @004d v45 = uextend.i64 v41;; v78 = iconst.i64 3-;; v79 = ishl v43, v78 ; v78 = 3-;; @004d v46 = iadd v44, v79+;; v79 = ishl v45, v78 ; v78 = 3+;; @004d v49 = iadd v46, v79;; v80 = iconst.i64 0-;; v81 = select_spectre_guard v42, v80, v46 ; v80 = 0-;; @004d v49 = load.i64 user6 aligned region1 v81+;; v81 = select_spectre_guard v44, v80, v49 ; v80 = 0+;; @004d v52 = load.i64 user6 aligned region1 v81;; v82 = iconst.i64 -2-;; v83 = band v49, v82 ; v82 = -2-;; @004d brif v49, block5(v83), block4+;; v83 = band v52, v82 ; v82 = -2+;; @004d brif v52, block5(v83), block4;;;; block4 cold:;; v84 = iconst.i32 0-;; @004d v55 = call fn0(v0, v84, v43) ; v84 = 0-;; @004d jump block5(v55)+;; @004d v59 = call fn0(v0, v84, v45) ; v84 = 0+;; @004d jump block5(v59);;-;; block5(v51: i64):-;; @004d v59 = load.i32 user7 aligned readonly v51+16-;; @004d v60 = icmp eq v59, v28-;; @004d trapz v60, user8-;; @004d v61 = load.i64 notrap aligned readonly v51+8-;; @004d v62 = load.i64 notrap aligned readonly v51+24-;; @004d v63 = call_indirect sig0, v61(v62, v0, v2)+;; block5(v55: i64):+;; @004d v63 = load.i32 user7 aligned readonly v55+16+;; @004d v64 = icmp eq v63, v30+;; @004d trapz v64, user8+;; @004d v65 = load.i64 notrap aligned readonly v55+8+;; @004d v66 = load.i64 notrap aligned readonly v55+24+;; @004d v67 = call_indirect sig0, v65(v66, v0, v2);; @0050 jump block1;;;; block1:-;; @0050 return v33, v63+;; @0050 return v35, v67;; }diff --git a/tests/disas/gc/array-new-data.wat b/tests/disas/gc/array-new-data.watindex 7ba61e3dcd..20c6772bb4 100644--- a/tests/disas/gc/array-new-data.wat+++ b/tests/disas/gc/array-new-data.wat@@ -101,89 +101,89 @@;; @0025 v13 = icmp ugt v12, v7;; @0025 trapnz v13, heap_oob;; @0025 v15 = load.i64 notrap aligned v0+48-;; v128 = iconst.i64 32-;; @0025 v22 = ushr v9, v128 ; v128 = 32-;; @0025 trapnz v22, user18+;; @0025 v22 = iconst.i64 32+;; @0025 v23 = ushr v9, v22 ; v22 = 32+;; @0025 trapnz v23, user18;; @0025 v18 = iconst.i32 20-;; @0025 v24 = uadd_overflow_trap v18, v3, user18 ; v18 = 20-;; @0025 v26 = load.i64 notrap aligned readonly can_move v0+32-;; @0025 v27 = load.i32 notrap aligned v26-;; @0025 v28 = load.i32 notrap aligned v26+4-;; @0025 v34 = uextend.i64 v27-;; @0025 v29 = uextend.i64 v24-;; @0025 v30 = iconst.i64 15-;; @0025 v32 = iadd v29, v30 ; v30 = 15-;; @0025 v31 = iconst.i64 -16-;; @0025 v33 = band v32, v31 ; v31 = -16-;; @0025 v35 = iadd v34, v33-;; @0025 v36 = uextend.i64 v28-;; @0025 v37 = icmp ule v35, v36-;; @0025 brif v37, block2, block3+;; @0025 v25 = uadd_overflow_trap v18, v3, user18 ; v18 = 20+;; @0025 v27 = load.i64 notrap aligned readonly can_move v0+32+;; @0025 v28 = load.i32 notrap aligned v27+;; @0025 v29 = load.i32 notrap aligned v27+4+;; @0025 v35 = uextend.i64 v28+;; @0025 v30 = uextend.i64 v25+;; @0025 v31 = iconst.i64 15+;; @0025 v33 = iadd v30, v31 ; v31 = 15+;; @0025 v32 = iconst.i64 -16+;; @0025 v34 = band v33, v32 ; v32 = -16+;; @0025 v36 = iadd v35, v34+;; @0025 v37 = uextend.i64 v29+;; @0025 v38 = icmp ule v36, v37+;; @0025 brif v38, block2, block3;;;; block2:;; v136 = iconst.i32 15-;; v137 = iadd.i32 v24, v136 ; v136 = 15+;; v137 = iadd.i32 v25, v136 ; v136 = 15;; v140 = iconst.i32 -16;; v141 = band v137, v140 ; v140 = -16-;; v143 = iadd.i32 v27, v141-;; @0025 store notrap aligned region0 v143, v26+;; v143 = iadd.i32 v28, v141+;; @0025 store notrap aligned region0 v143, v27;; v157 = iconst.i32 -1476395002;; v158 = load.i64 notrap aligned readonly can_move v0+8;; v159 = load.i64 notrap aligned readonly can_move v158+32-;; @0025 v51 = iadd v159, v34-;; @0025 store notrap aligned v157, v51 ; v157 = -1476395002+;; @0025 v52 = iadd v159, v35+;; @0025 store notrap aligned v157, v52 ; v157 = -1476395002;; v160 = load.i64 notrap aligned readonly can_move v0+40;; v161 = load.i32 notrap aligned readonly can_move v160-;; @0025 store notrap aligned v161, v51+4-;; v162 = band.i64 v32, v31 ; v31 = -16-;; @0025 istore32 notrap aligned v162, v51+8-;; @0025 jump block4(v27, v51)+;; @0025 store notrap aligned v161, v52+4+;; v162 = band.i64 v33, v32 ; v32 = -16+;; @0025 istore32 notrap aligned v162, v52+8+;; @0025 jump block4(v28, v52);;;; block3 cold:-;; @0025 v39 = iconst.i32 -1476395002-;; @0025 v41 = load.i64 notrap aligned readonly can_move v0+40-;; @0025 v42 = load.i32 notrap aligned readonly can_move v41-;; @0025 v43 = iconst.i32 16-;; @0025 v44 = call fn0(v0, v39, v42, v24, v43) ; v39 = -1476395002, v43 = 16-;; @0025 v124 = load.i64 notrap aligned readonly can_move v0+8-;; @0025 v45 = load.i64 notrap aligned readonly can_move v124+32-;; @0025 v46 = uextend.i64 v44-;; @0025 v47 = iadd v45, v46-;; @0025 jump block4(v44, v47)+;; @0025 v40 = iconst.i32 -1476395002+;; @0025 v42 = load.i64 notrap aligned readonly can_move v0+40+;; @0025 v43 = load.i32 notrap aligned readonly can_move v42+;; @0025 v44 = iconst.i32 16+;; @0025 v45 = call fn0(v0, v40, v43, v25, v44) ; v40 = -1476395002, v44 = 16+;; @0025 v125 = load.i64 notrap aligned readonly can_move v0+8+;; @0025 v46 = load.i64 notrap aligned readonly can_move v125+32+;; @0025 v47 = uextend.i64 v45+;; @0025 v48 = iadd v46, v47+;; @0025 jump block4(v45, v48);;-;; block4(v56: i32, v57: i64):-;; v123 = stack_addr.i64 ss0-;; store notrap v56, v123-;; @0025 v58 = iconst.i64 16-;; @0025 v59 = iadd v57, v58 ; v58 = 16-;; @0025 store.i32 user2 region1 v3, v59-;; @0025 trapz v56, user16+;; block4(v57: i32, v58: i64):+;; v124 = stack_addr.i64 ss0+;; store notrap v57, v124+;; @0025 v59 = iconst.i64 16+;; @0025 v60 = iadd v58, v59 ; v59 = 16+;; @0025 store.i32 user2 region1 v3, v60+;; @0025 trapz v57, user16;; v163 = load.i64 notrap aligned readonly can_move v0+8;; v164 = load.i64 notrap aligned readonly can_move v163+32-;; @0025 v61 = uextend.i64 v56-;; @0025 v63 = iadd v164, v61-;; @0025 v65 = iadd v63, v58 ; v58 = 16-;; @0025 v66 = load.i32 user2 readonly region1 v65-;; @0025 v67 = uextend.i64 v66-;; @0025 v73 = icmp.i64 ugt v9, v67-;; @0025 trapnz v73, user17-;; @0025 v84 = load.i32 notrap aligned v0+56-;; @0025 v85 = uextend.i64 v84-;; @0025 v91 = icmp.i64 ugt v12, v85-;; @0025 trapnz v91, heap_oob-;; @0025 v93 = load.i64 notrap aligned v0+48-;; @0025 v102 = load.i64 notrap aligned v163+40-;; @0025 v77 = iconst.i64 20-;; @0025 v78 = iadd v63, v77 ; v77 = 20-;; @0025 v104 = uadd_overflow_trap v78, v9, user2-;; @0025 v103 = iadd v164, v102-;; @0025 v105 = icmp ugt v104, v103-;; @0025 trapnz v105, user2-;; @0025 v95 = iadd v93, v8-;; @0025 call fn1(v0, v78, v95, v9), stack_map=[i32 @ ss0+0]-;; v107 = load.i32 notrap v123+;; @0025 v62 = uextend.i64 v57+;; @0025 v64 = iadd v164, v62+;; @0025 v66 = iadd v64, v59 ; v59 = 16+;; @0025 v67 = load.i32 user2 readonly region1 v66+;; @0025 v68 = uextend.i64 v67+;; @0025 v74 = icmp.i64 ugt v9, v68+;; @0025 trapnz v74, user17+;; @0025 v85 = load.i32 notrap aligned v0+56+;; @0025 v86 = uextend.i64 v85+;; @0025 v92 = icmp.i64 ugt v12, v86+;; @0025 trapnz v92, heap_oob+;; @0025 v94 = load.i64 notrap aligned v0+48+;; @0025 v103 = load.i64 notrap aligned v163+40+;; @0025 v78 = iconst.i64 20+;; @0025 v79 = iadd v64, v78 ; v78 = 20+;; @0025 v105 = uadd_overflow_trap v79, v9, user2+;; @0025 v104 = iadd v164, v103+;; @0025 v106 = icmp ugt v105, v104+;; @0025 trapnz v106, user2+;; @0025 v96 = iadd v94, v8+;; @0025 call fn1(v0, v79, v96, v9), stack_map=[i32 @ ss0+0]+;; v108 = load.i32 notrap v124;; @0029 jump block1;;;; block1:-;; @0029 return v107+;; @0029 return v108;; }diff --git a/tests/disas/gc/array-new-default-anyref.wat b/tests/disas/gc/array-new-default-anyref.watindex 00fc6333c8..0e44fecf35 100644--- a/tests/disas/gc/array-new-default-anyref.wat+++ b/tests/disas/gc/array-new-default-anyref.wat@@ -27,96 +27,96 @@;; @001f v5 = uextend.i64 v2;; v98 = iconst.i64 2;; v99 = ishl v5, v98 ; v98 = 2-;; v97 = iconst.i64 32-;; @001f v8 = ushr v99, v97 ; v97 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v99, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20;; v105 = iconst.i32 2;; v106 = ishl v2, v105 ; v105 = 2-;; @001f v10 = uadd_overflow_trap v4, v106, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v106, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v114 = iconst.i32 15-;; v115 = iadd.i32 v10, v114 ; v114 = 15+;; v115 = iadd.i32 v11, v114 ; v114 = 15;; v118 = iconst.i32 -16;; v119 = band v115, v118 ; v118 = -16-;; v121 = iadd.i32 v13, v119-;; @001f store notrap aligned region0 v121, v12+;; v121 = iadd.i32 v14, v119+;; @001f store notrap aligned region0 v121, v13;; v137 = iconst.i32 -1476394994;; v138 = load.i64 notrap aligned readonly can_move v0+8;; v139 = load.i64 notrap aligned readonly can_move v138+32-;; @001f v37 = iadd v139, v20-;; @001f store notrap aligned v137, v37 ; v137 = -1476394994+;; @001f v38 = iadd v139, v21+;; @001f store notrap aligned v137, v38 ; v137 = -1476394994;; v140 = load.i64 notrap aligned readonly can_move v0+40;; v141 = load.i32 notrap aligned readonly can_move v140-;; @001f store notrap aligned v141, v37+4-;; v142 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v142, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v141, v38+4+;; v142 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v142, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476394994-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476394994, v29 = 16-;; @001f v93 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v93+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476394994+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476394994, v30 = 16+;; @001f v94 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v94+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v143 = load.i64 notrap aligned readonly can_move v0+8;; v144 = load.i64 notrap aligned readonly can_move v143+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v144, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v143+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v99, user2-;; @001f v75 = iadd v144, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v144, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v143+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v99, user2+;; @001f v76 = iadd v144, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2;; v123 = iconst.i64 0-;; @001f v80 = icmp.i64 eq v5, v123 ; v123 = 0-;; @001f v46 = iconst.i32 0+;; @001f v81 = icmp.i64 eq v5, v123 ; v123 = 0+;; @001f v47 = iconst.i32 0;; @001f v6 = iconst.i64 4-;; @001f v78 = iadd v65, v99-;; @001f brif v80, block6, block5(v65)+;; @001f v79 = iadd v66, v99+;; @001f brif v81, block6, block5(v66);;-;; block5(v81: i64):+;; block5(v82: i64):;; v145 = iconst.i32 0-;; @001f store user2 little region1 v145, v81 ; v145 = 0+;; @001f store user2 little region1 v145, v82 ; v145 = 0;; v146 = iconst.i64 4-;; v147 = iadd v81, v146 ; v146 = 4-;; @001f v84 = icmp eq v147, v78-;; @001f brif v84, block6, block5(v147)+;; v147 = iadd v82, v146 ; v146 = 4+;; @001f v85 = icmp eq v147, v79+;; @001f brif v85, block6, block5(v147);;;; block6:-;; @0022 jump block1(v42)+;; @0022 jump block1(v43);;;; block1(v3: i32):;; @0022 return v3diff --git a/tests/disas/gc/array-new-default-exnref.wat b/tests/disas/gc/array-new-default-exnref.watindex 5d8e420781..fa016994bc 100644--- a/tests/disas/gc/array-new-default-exnref.wat+++ b/tests/disas/gc/array-new-default-exnref.wat@@ -27,96 +27,96 @@;; @001f v5 = uextend.i64 v2;; v98 = iconst.i64 2;; v99 = ishl v5, v98 ; v98 = 2-;; v97 = iconst.i64 32-;; @001f v8 = ushr v99, v97 ; v97 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v99, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20;; v105 = iconst.i32 2;; v106 = ishl v2, v105 ; v105 = 2-;; @001f v10 = uadd_overflow_trap v4, v106, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v106, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v114 = iconst.i32 15-;; v115 = iadd.i32 v10, v114 ; v114 = 15+;; v115 = iadd.i32 v11, v114 ; v114 = 15;; v118 = iconst.i32 -16;; v119 = band v115, v118 ; v118 = -16-;; v121 = iadd.i32 v13, v119-;; @001f store notrap aligned region0 v121, v12+;; v121 = iadd.i32 v14, v119+;; @001f store notrap aligned region0 v121, v13;; v137 = iconst.i32 -1476394994;; v138 = load.i64 notrap aligned readonly can_move v0+8;; v139 = load.i64 notrap aligned readonly can_move v138+32-;; @001f v37 = iadd v139, v20-;; @001f store notrap aligned v137, v37 ; v137 = -1476394994+;; @001f v38 = iadd v139, v21+;; @001f store notrap aligned v137, v38 ; v137 = -1476394994;; v140 = load.i64 notrap aligned readonly can_move v0+40;; v141 = load.i32 notrap aligned readonly can_move v140-;; @001f store notrap aligned v141, v37+4-;; v142 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v142, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v141, v38+4+;; v142 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v142, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476394994-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476394994, v29 = 16-;; @001f v93 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v93+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476394994+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476394994, v30 = 16+;; @001f v94 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v94+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v143 = load.i64 notrap aligned readonly can_move v0+8;; v144 = load.i64 notrap aligned readonly can_move v143+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v144, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v143+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v99, user2-;; @001f v75 = iadd v144, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v144, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v143+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v99, user2+;; @001f v76 = iadd v144, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2;; v123 = iconst.i64 0-;; @001f v80 = icmp.i64 eq v5, v123 ; v123 = 0-;; @001f v46 = iconst.i32 0+;; @001f v81 = icmp.i64 eq v5, v123 ; v123 = 0+;; @001f v47 = iconst.i32 0;; @001f v6 = iconst.i64 4-;; @001f v78 = iadd v65, v99-;; @001f brif v80, block6, block5(v65)+;; @001f v79 = iadd v66, v99+;; @001f brif v81, block6, block5(v66);;-;; block5(v81: i64):+;; block5(v82: i64):;; v145 = iconst.i32 0-;; @001f store user2 little region1 v145, v81 ; v145 = 0+;; @001f store user2 little region1 v145, v82 ; v145 = 0;; v146 = iconst.i64 4-;; v147 = iadd v81, v146 ; v146 = 4-;; @001f v84 = icmp eq v147, v78-;; @001f brif v84, block6, block5(v147)+;; v147 = iadd v82, v146 ; v146 = 4+;; @001f v85 = icmp eq v147, v79+;; @001f brif v85, block6, block5(v147);;;; block6:-;; @0022 jump block1(v42)+;; @0022 jump block1(v43);;;; block1(v3: i32):;; @0022 return v3diff --git a/tests/disas/gc/array-new-default-externref.wat b/tests/disas/gc/array-new-default-externref.watindex 3e937d67a7..044b90c12c 100644--- a/tests/disas/gc/array-new-default-externref.wat+++ b/tests/disas/gc/array-new-default-externref.wat@@ -27,96 +27,96 @@;; @001f v5 = uextend.i64 v2;; v98 = iconst.i64 2;; v99 = ishl v5, v98 ; v98 = 2-;; v97 = iconst.i64 32-;; @001f v8 = ushr v99, v97 ; v97 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v99, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20;; v105 = iconst.i32 2;; v106 = ishl v2, v105 ; v105 = 2-;; @001f v10 = uadd_overflow_trap v4, v106, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v106, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v114 = iconst.i32 15-;; v115 = iadd.i32 v10, v114 ; v114 = 15+;; v115 = iadd.i32 v11, v114 ; v114 = 15;; v118 = iconst.i32 -16;; v119 = band v115, v118 ; v118 = -16-;; v121 = iadd.i32 v13, v119-;; @001f store notrap aligned region0 v121, v12+;; v121 = iadd.i32 v14, v119+;; @001f store notrap aligned region0 v121, v13;; v137 = iconst.i32 -1476394994;; v138 = load.i64 notrap aligned readonly can_move v0+8;; v139 = load.i64 notrap aligned readonly can_move v138+32-;; @001f v37 = iadd v139, v20-;; @001f store notrap aligned v137, v37 ; v137 = -1476394994+;; @001f v38 = iadd v139, v21+;; @001f store notrap aligned v137, v38 ; v137 = -1476394994;; v140 = load.i64 notrap aligned readonly can_move v0+40;; v141 = load.i32 notrap aligned readonly can_move v140-;; @001f store notrap aligned v141, v37+4-;; v142 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v142, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v141, v38+4+;; v142 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v142, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476394994-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476394994, v29 = 16-;; @001f v93 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v93+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476394994+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476394994, v30 = 16+;; @001f v94 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v94+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v143 = load.i64 notrap aligned readonly can_move v0+8;; v144 = load.i64 notrap aligned readonly can_move v143+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v144, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v143+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v99, user2-;; @001f v75 = iadd v144, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v144, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v143+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v99, user2+;; @001f v76 = iadd v144, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2;; v123 = iconst.i64 0-;; @001f v80 = icmp.i64 eq v5, v123 ; v123 = 0-;; @001f v46 = iconst.i32 0+;; @001f v81 = icmp.i64 eq v5, v123 ; v123 = 0+;; @001f v47 = iconst.i32 0;; @001f v6 = iconst.i64 4-;; @001f v78 = iadd v65, v99-;; @001f brif v80, block6, block5(v65)+;; @001f v79 = iadd v66, v99+;; @001f brif v81, block6, block5(v66);;-;; block5(v81: i64):+;; block5(v82: i64):;; v145 = iconst.i32 0-;; @001f store user2 little region1 v145, v81 ; v145 = 0+;; @001f store user2 little region1 v145, v82 ; v145 = 0;; v146 = iconst.i64 4-;; v147 = iadd v81, v146 ; v146 = 4-;; @001f v84 = icmp eq v147, v78-;; @001f brif v84, block6, block5(v147)+;; v147 = iadd v82, v146 ; v146 = 4+;; @001f v85 = icmp eq v147, v79+;; @001f brif v85, block6, block5(v147);;;; block6:-;; @0022 jump block1(v42)+;; @0022 jump block1(v43);;;; block1(v3: i32):;; @0022 return v3diff --git a/tests/disas/gc/array-new-default-f32.wat b/tests/disas/gc/array-new-default-f32.watindex e26743a9cb..b69c8ff89b 100644--- a/tests/disas/gc/array-new-default-f32.wat+++ b/tests/disas/gc/array-new-default-f32.wat@@ -30,86 +30,86 @@;; @001f v5 = uextend.i64 v2;; v102 = iconst.i64 2;; v103 = ishl v5, v102 ; v102 = 2-;; v101 = iconst.i64 32-;; @001f v8 = ushr v103, v101 ; v101 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v103, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20;; v109 = iconst.i32 2;; v110 = ishl v2, v109 ; v109 = 2-;; @001f v10 = uadd_overflow_trap v4, v110, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v110, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v118 = iconst.i32 15-;; v119 = iadd.i32 v10, v118 ; v118 = 15+;; v119 = iadd.i32 v11, v118 ; v118 = 15;; v122 = iconst.i32 -16;; v123 = band v119, v122 ; v122 = -16-;; v125 = iadd.i32 v13, v123-;; @001f store notrap aligned region0 v125, v12+;; v125 = iadd.i32 v14, v123+;; @001f store notrap aligned region0 v125, v13;; v141 = iconst.i32 -1476395002;; v142 = load.i64 notrap aligned readonly can_move v0+8;; v143 = load.i64 notrap aligned readonly can_move v142+32-;; @001f v37 = iadd v143, v20-;; @001f store notrap aligned v141, v37 ; v141 = -1476395002+;; @001f v38 = iadd v143, v21+;; @001f store notrap aligned v141, v38 ; v141 = -1476395002;; v144 = load.i64 notrap aligned readonly can_move v0+40;; v145 = load.i32 notrap aligned readonly can_move v144-;; @001f store notrap aligned v145, v37+4-;; v146 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v146, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v145, v38+4+;; v146 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v146, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476395002-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476395002, v29 = 16-;; @001f v97 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v97+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476395002+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16+;; @001f v98 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v98+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; v96 = stack_addr.i64 ss0-;; store notrap v42, v96-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; v97 = stack_addr.i64 ss0+;; store notrap v43, v97+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v147 = load.i64 notrap aligned readonly can_move v0+8;; v148 = load.i64 notrap aligned readonly can_move v147+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v148, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v147+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v103, user2-;; @001f v75 = iadd v148, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2-;; @001f v47 = iconst.i32 0-;; @001f call fn1(v0, v65, v47, v103), stack_map=[i32 @ ss0+0] ; v47 = 0-;; v80 = load.i32 notrap v96+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v148, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v147+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v103, user2+;; @001f v76 = iadd v148, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2+;; @001f v48 = iconst.i32 0+;; @001f call fn1(v0, v66, v48, v103), stack_map=[i32 @ ss0+0] ; v48 = 0+;; v81 = load.i32 notrap v97;; @0022 jump block1;;;; block1:-;; @0022 return v80+;; @0022 return v81;; }diff --git a/tests/disas/gc/array-new-default-f64.wat b/tests/disas/gc/array-new-default-f64.watindex b9e9e6ba3c..f254b33d9a 100644--- a/tests/disas/gc/array-new-default-f64.wat+++ b/tests/disas/gc/array-new-default-f64.wat@@ -30,86 +30,86 @@;; @001f v5 = uextend.i64 v2;; v102 = iconst.i64 3;; v103 = ishl v5, v102 ; v102 = 3-;; v101 = iconst.i64 32-;; @001f v8 = ushr v103, v101 ; v101 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v103, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 24;; v109 = iconst.i32 3;; v110 = ishl v2, v109 ; v109 = 3-;; @001f v10 = uadd_overflow_trap v4, v110, user18 ; v4 = 24-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v110, user18 ; v4 = 24+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v118 = iconst.i32 15-;; v119 = iadd.i32 v10, v118 ; v118 = 15+;; v119 = iadd.i32 v11, v118 ; v118 = 15;; v122 = iconst.i32 -16;; v123 = band v119, v122 ; v122 = -16-;; v125 = iadd.i32 v13, v123-;; @001f store notrap aligned region0 v125, v12+;; v125 = iadd.i32 v14, v123+;; @001f store notrap aligned region0 v125, v13;; v141 = iconst.i32 -1476395002;; v142 = load.i64 notrap aligned readonly can_move v0+8;; v143 = load.i64 notrap aligned readonly can_move v142+32-;; @001f v37 = iadd v143, v20-;; @001f store notrap aligned v141, v37 ; v141 = -1476395002+;; @001f v38 = iadd v143, v21+;; @001f store notrap aligned v141, v38 ; v141 = -1476395002;; v144 = load.i64 notrap aligned readonly can_move v0+40;; v145 = load.i32 notrap aligned readonly can_move v144-;; @001f store notrap aligned v145, v37+4-;; v146 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v146, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v145, v38+4+;; v146 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v146, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476395002-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476395002, v29 = 16-;; @001f v97 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v97+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476395002+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16+;; @001f v98 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v98+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; v96 = stack_addr.i64 ss0-;; store notrap v42, v96-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; v97 = stack_addr.i64 ss0+;; store notrap v43, v97+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v147 = load.i64 notrap aligned readonly can_move v0+8;; v148 = load.i64 notrap aligned readonly can_move v147+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v148, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v147+40-;; @001f v64 = iconst.i64 24-;; @001f v65 = iadd v50, v64 ; v64 = 24-;; @001f v76 = uadd_overflow_trap v65, v103, user2-;; @001f v75 = iadd v148, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2-;; @001f v47 = iconst.i32 0-;; @001f call fn1(v0, v65, v47, v103), stack_map=[i32 @ ss0+0] ; v47 = 0-;; v80 = load.i32 notrap v96+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v148, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v147+40+;; @001f v65 = iconst.i64 24+;; @001f v66 = iadd v51, v65 ; v65 = 24+;; @001f v77 = uadd_overflow_trap v66, v103, user2+;; @001f v76 = iadd v148, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2+;; @001f v48 = iconst.i32 0+;; @001f call fn1(v0, v66, v48, v103), stack_map=[i32 @ ss0+0] ; v48 = 0+;; v81 = load.i32 notrap v97;; @0022 jump block1;;;; block1:-;; @0022 return v80+;; @0022 return v81;; }diff --git a/tests/disas/gc/array-new-default-funcref.wat b/tests/disas/gc/array-new-default-funcref.watindex 5da614820c..769c7a25a1 100644--- a/tests/disas/gc/array-new-default-funcref.wat+++ b/tests/disas/gc/array-new-default-funcref.wat@@ -30,100 +30,100 @@;; @001f v5 = uextend.i64 v2;; v110 = iconst.i64 2;; v111 = ishl v5, v110 ; v110 = 2-;; v109 = iconst.i64 32-;; @001f v8 = ushr v111, v109 ; v109 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v111, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20;; v117 = iconst.i32 2;; v118 = ishl v2, v117 ; v117 = 2-;; @001f v10 = uadd_overflow_trap v4, v118, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v118, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v126 = iconst.i32 15-;; v127 = iadd.i32 v10, v126 ; v126 = 15+;; v127 = iadd.i32 v11, v126 ; v126 = 15;; v130 = iconst.i32 -16;; v131 = band v127, v130 ; v130 = -16-;; v133 = iadd.i32 v13, v131-;; @001f store notrap aligned region0 v133, v12+;; v133 = iadd.i32 v14, v131+;; @001f store notrap aligned region0 v133, v13;; v148 = iconst.i32 -1476395002;; v149 = load.i64 notrap aligned readonly can_move v0+8;; v150 = load.i64 notrap aligned readonly can_move v149+32-;; @001f v37 = iadd v150, v20-;; @001f store notrap aligned v148, v37 ; v148 = -1476395002+;; @001f v38 = iadd v150, v21+;; @001f store notrap aligned v148, v38 ; v148 = -1476395002;; v151 = load.i64 notrap aligned readonly can_move v0+40;; v152 = load.i32 notrap aligned readonly can_move v151-;; @001f store notrap aligned v152, v37+4-;; v153 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v153, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v152, v38+4+;; v153 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v153, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476395002-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476395002, v29 = 16-;; @001f v105 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v105+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476395002+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16+;; @001f v106 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v106+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; v104 = stack_addr.i64 ss0-;; store notrap v42, v104-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; v105 = stack_addr.i64 ss0+;; store notrap v43, v105+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v154 = load.i64 notrap aligned readonly can_move v0+8;; v155 = load.i64 notrap aligned readonly can_move v154+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v155, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v154+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v111, user2-;; @001f v75 = iadd v155, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2-;; @001f v46 = iconst.i64 0-;; @001f v79 = call fn1(v0, v46), stack_map=[i32 @ ss0+0] ; v46 = 0-;; @001f v83 = icmp.i64 eq v5, v46 ; v46 = 0-;; @001f v80 = ireduce.i32 v79+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v155, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v154+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v111, user2+;; @001f v76 = iadd v155, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2+;; @001f v47 = iconst.i64 0+;; @001f v80 = call fn1(v0, v47), stack_map=[i32 @ ss0+0] ; v47 = 0+;; @001f v84 = icmp.i64 eq v5, v47 ; v47 = 0+;; @001f v81 = ireduce.i32 v80;; @001f v6 = iconst.i64 4-;; @001f v81 = iadd v65, v111-;; @001f brif v83, block6, block5(v65)+;; @001f v82 = iadd v66, v111+;; @001f brif v84, block6, block5(v66);;-;; block5(v84: i64):-;; @001f store.i32 notrap aligned little v80, v84+;; block5(v85: i64):+;; @001f store.i32 notrap aligned little v81, v85;; v156 = iconst.i64 4-;; v157 = iadd v84, v156 ; v156 = 4-;; @001f v87 = icmp eq v157, v81-;; @001f brif v87, block6, block5(v157)+;; v157 = iadd v85, v156 ; v156 = 4+;; @001f v88 = icmp eq v157, v82+;; @001f brif v88, block6, block5(v157);;;; block6:-;; v88 = load.i32 notrap v104+;; v89 = load.i32 notrap v105;; @0022 jump block1;;;; block1:-;; @0022 return v88+;; @0022 return v89;; }diff --git a/tests/disas/gc/array-new-default-i16.wat b/tests/disas/gc/array-new-default-i16.watindex 1a194affb0..3945de08c1 100644--- a/tests/disas/gc/array-new-default-i16.wat+++ b/tests/disas/gc/array-new-default-i16.wat@@ -30,85 +30,85 @@;; @001f v5 = uextend.i64 v2;; v103 = iconst.i64 1;; v104 = ishl v5, v103 ; v103 = 1-;; v101 = iconst.i64 32-;; @001f v8 = ushr v104, v101 ; v101 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v104, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20;; v108 = iadd v2, v2-;; @001f v10 = uadd_overflow_trap v4, v108, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v108, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v123 = iconst.i32 15-;; v124 = iadd.i32 v10, v123 ; v123 = 15+;; v124 = iadd.i32 v11, v123 ; v123 = 15;; v127 = iconst.i32 -16;; v128 = band v124, v127 ; v127 = -16-;; v130 = iadd.i32 v13, v128-;; @001f store notrap aligned region0 v130, v12+;; v130 = iadd.i32 v14, v128+;; @001f store notrap aligned region0 v130, v13;; v151 = iconst.i32 -1476395002;; v152 = load.i64 notrap aligned readonly can_move v0+8;; v153 = load.i64 notrap aligned readonly can_move v152+32-;; @001f v37 = iadd v153, v20-;; @001f store notrap aligned v151, v37 ; v151 = -1476395002+;; @001f v38 = iadd v153, v21+;; @001f store notrap aligned v151, v38 ; v151 = -1476395002;; v154 = load.i64 notrap aligned readonly can_move v0+40;; v155 = load.i32 notrap aligned readonly can_move v154-;; @001f store notrap aligned v155, v37+4-;; v156 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v156, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v155, v38+4+;; v156 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v156, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476395002-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476395002, v29 = 16-;; @001f v97 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v97+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476395002+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16+;; @001f v98 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v98+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; v96 = stack_addr.i64 ss0-;; store notrap v42, v96-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; v97 = stack_addr.i64 ss0+;; store notrap v43, v97+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v157 = load.i64 notrap aligned readonly can_move v0+8;; v158 = load.i64 notrap aligned readonly can_move v157+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v158, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v157+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v104, user2-;; @001f v75 = iadd v158, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2-;; @001f v46 = iconst.i32 0-;; @001f call fn1(v0, v65, v46, v104), stack_map=[i32 @ ss0+0] ; v46 = 0-;; v80 = load.i32 notrap v96+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v158, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v157+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v104, user2+;; @001f v76 = iadd v158, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2+;; @001f v47 = iconst.i32 0+;; @001f call fn1(v0, v66, v47, v104), stack_map=[i32 @ ss0+0] ; v47 = 0+;; v81 = load.i32 notrap v97;; @0022 jump block1;;;; block1:-;; @0022 return v80+;; @0022 return v81;; }diff --git a/tests/disas/gc/array-new-default-i32.wat b/tests/disas/gc/array-new-default-i32.watindex 5fc9bae71b..674e5a1e49 100644--- a/tests/disas/gc/array-new-default-i32.wat+++ b/tests/disas/gc/array-new-default-i32.wat@@ -30,86 +30,86 @@;; @001f v5 = uextend.i64 v2;; v102 = iconst.i64 2;; v103 = ishl v5, v102 ; v102 = 2-;; v101 = iconst.i64 32-;; @001f v8 = ushr v103, v101 ; v101 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v103, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20;; v109 = iconst.i32 2;; v110 = ishl v2, v109 ; v109 = 2-;; @001f v10 = uadd_overflow_trap v4, v110, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v110, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v118 = iconst.i32 15-;; v119 = iadd.i32 v10, v118 ; v118 = 15+;; v119 = iadd.i32 v11, v118 ; v118 = 15;; v122 = iconst.i32 -16;; v123 = band v119, v122 ; v122 = -16-;; v125 = iadd.i32 v13, v123-;; @001f store notrap aligned region0 v125, v12+;; v125 = iadd.i32 v14, v123+;; @001f store notrap aligned region0 v125, v13;; v141 = iconst.i32 -1476395002;; v142 = load.i64 notrap aligned readonly can_move v0+8;; v143 = load.i64 notrap aligned readonly can_move v142+32-;; @001f v37 = iadd v143, v20-;; @001f store notrap aligned v141, v37 ; v141 = -1476395002+;; @001f v38 = iadd v143, v21+;; @001f store notrap aligned v141, v38 ; v141 = -1476395002;; v144 = load.i64 notrap aligned readonly can_move v0+40;; v145 = load.i32 notrap aligned readonly can_move v144-;; @001f store notrap aligned v145, v37+4-;; v146 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v146, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v145, v38+4+;; v146 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v146, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476395002-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476395002, v29 = 16-;; @001f v97 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v97+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476395002+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16+;; @001f v98 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v98+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; v96 = stack_addr.i64 ss0-;; store notrap v42, v96-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; v97 = stack_addr.i64 ss0+;; store notrap v43, v97+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v147 = load.i64 notrap aligned readonly can_move v0+8;; v148 = load.i64 notrap aligned readonly can_move v147+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v148, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v147+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v103, user2-;; @001f v75 = iadd v148, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2-;; @001f v46 = iconst.i32 0-;; @001f call fn1(v0, v65, v46, v103), stack_map=[i32 @ ss0+0] ; v46 = 0-;; v80 = load.i32 notrap v96+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v148, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v147+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v103, user2+;; @001f v76 = iadd v148, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2+;; @001f v47 = iconst.i32 0+;; @001f call fn1(v0, v66, v47, v103), stack_map=[i32 @ ss0+0] ; v47 = 0+;; v81 = load.i32 notrap v97;; @0022 jump block1;;;; block1:-;; @0022 return v80+;; @0022 return v81;; }diff --git a/tests/disas/gc/array-new-default-i64.wat b/tests/disas/gc/array-new-default-i64.watindex 2022da9428..95c114ae78 100644--- a/tests/disas/gc/array-new-default-i64.wat+++ b/tests/disas/gc/array-new-default-i64.wat@@ -30,86 +30,86 @@;; @001f v5 = uextend.i64 v2;; v102 = iconst.i64 3;; v103 = ishl v5, v102 ; v102 = 3-;; v101 = iconst.i64 32-;; @001f v8 = ushr v103, v101 ; v101 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v103, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 24;; v109 = iconst.i32 3;; v110 = ishl v2, v109 ; v109 = 3-;; @001f v10 = uadd_overflow_trap v4, v110, user18 ; v4 = 24-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v110, user18 ; v4 = 24+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v118 = iconst.i32 15-;; v119 = iadd.i32 v10, v118 ; v118 = 15+;; v119 = iadd.i32 v11, v118 ; v118 = 15;; v122 = iconst.i32 -16;; v123 = band v119, v122 ; v122 = -16-;; v125 = iadd.i32 v13, v123-;; @001f store notrap aligned region0 v125, v12+;; v125 = iadd.i32 v14, v123+;; @001f store notrap aligned region0 v125, v13;; v140 = iconst.i32 -1476395002;; v141 = load.i64 notrap aligned readonly can_move v0+8;; v142 = load.i64 notrap aligned readonly can_move v141+32-;; @001f v37 = iadd v142, v20-;; @001f store notrap aligned v140, v37 ; v140 = -1476395002+;; @001f v38 = iadd v142, v21+;; @001f store notrap aligned v140, v38 ; v140 = -1476395002;; v143 = load.i64 notrap aligned readonly can_move v0+40;; v144 = load.i32 notrap aligned readonly can_move v143-;; @001f store notrap aligned v144, v37+4-;; v145 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v145, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v144, v38+4+;; v145 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v145, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476395002-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476395002, v29 = 16-;; @001f v97 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v97+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476395002+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16+;; @001f v98 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v98+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; v96 = stack_addr.i64 ss0-;; store notrap v42, v96-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; v97 = stack_addr.i64 ss0+;; store notrap v43, v97+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v146 = load.i64 notrap aligned readonly can_move v0+8;; v147 = load.i64 notrap aligned readonly can_move v146+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v147, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v146+40-;; @001f v64 = iconst.i64 24-;; @001f v65 = iadd v50, v64 ; v64 = 24-;; @001f v76 = uadd_overflow_trap v65, v103, user2-;; @001f v75 = iadd v147, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2-;; @001f v47 = iconst.i32 0-;; @001f call fn1(v0, v65, v47, v103), stack_map=[i32 @ ss0+0] ; v47 = 0-;; v80 = load.i32 notrap v96+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v147, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v146+40+;; @001f v65 = iconst.i64 24+;; @001f v66 = iadd v51, v65 ; v65 = 24+;; @001f v77 = uadd_overflow_trap v66, v103, user2+;; @001f v76 = iadd v147, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2+;; @001f v48 = iconst.i32 0+;; @001f call fn1(v0, v66, v48, v103), stack_map=[i32 @ ss0+0] ; v48 = 0+;; v81 = load.i32 notrap v97;; @0022 jump block1;;;; block1:-;; @0022 return v80+;; @0022 return v81;; }diff --git a/tests/disas/gc/array-new-default-i8.wat b/tests/disas/gc/array-new-default-i8.watindex baafdfdbe7..831a912ca9 100644--- a/tests/disas/gc/array-new-default-i8.wat+++ b/tests/disas/gc/array-new-default-i8.wat@@ -28,84 +28,84 @@;;;; block0(v0: i64, v1: i64, v2: i32):;; @001f v5 = uextend.i64 v2-;; v100 = iconst.i64 32-;; @001f v8 = ushr v5, v100 ; v100 = 32-;; @001f trapnz v8, user18+;; @001f v8 = iconst.i64 32+;; @001f v9 = ushr v5, v8 ; v8 = 32+;; @001f trapnz v9, user18;; @001f v4 = iconst.i32 20-;; @001f v10 = uadd_overflow_trap v4, v2, user18 ; v4 = 20-;; @001f v12 = load.i64 notrap aligned readonly can_move v0+32-;; @001f v13 = load.i32 notrap aligned v12-;; @001f v14 = load.i32 notrap aligned v12+4-;; @001f v20 = uextend.i64 v13-;; @001f v15 = uextend.i64 v10-;; @001f v16 = iconst.i64 15-;; @001f v18 = iadd v15, v16 ; v16 = 15-;; @001f v17 = iconst.i64 -16-;; @001f v19 = band v18, v17 ; v17 = -16-;; @001f v21 = iadd v20, v19-;; @001f v22 = uextend.i64 v14-;; @001f v23 = icmp ule v21, v22-;; @001f brif v23, block2, block3+;; @001f v11 = uadd_overflow_trap v4, v2, user18 ; v4 = 20+;; @001f v13 = load.i64 notrap aligned readonly can_move v0+32+;; @001f v14 = load.i32 notrap aligned v13+;; @001f v15 = load.i32 notrap aligned v13+4+;; @001f v21 = uextend.i64 v14+;; @001f v16 = uextend.i64 v11+;; @001f v17 = iconst.i64 15+;; @001f v19 = iadd v16, v17 ; v17 = 15+;; @001f v18 = iconst.i64 -16+;; @001f v20 = band v19, v18 ; v18 = -16+;; @001f v22 = iadd v21, v20+;; @001f v23 = uextend.i64 v15+;; @001f v24 = icmp ule v22, v23+;; @001f brif v24, block2, block3;;;; block2:;; v108 = iconst.i32 15-;; v109 = iadd.i32 v10, v108 ; v108 = 15+;; v109 = iadd.i32 v11, v108 ; v108 = 15;; v112 = iconst.i32 -16;; v113 = band v109, v112 ; v112 = -16-;; v115 = iadd.i32 v13, v113-;; @001f store notrap aligned region0 v115, v12+;; v115 = iadd.i32 v14, v113+;; @001f store notrap aligned region0 v115, v13;; v129 = iconst.i32 -1476395002;; v130 = load.i64 notrap aligned readonly can_move v0+8;; v131 = load.i64 notrap aligned readonly can_move v130+32-;; @001f v37 = iadd v131, v20-;; @001f store notrap aligned v129, v37 ; v129 = -1476395002+;; @001f v38 = iadd v131, v21+;; @001f store notrap aligned v129, v38 ; v129 = -1476395002;; v132 = load.i64 notrap aligned readonly can_move v0+40;; v133 = load.i32 notrap aligned readonly can_move v132-;; @001f store notrap aligned v133, v37+4-;; v134 = band.i64 v18, v17 ; v17 = -16-;; @001f istore32 notrap aligned v134, v37+8-;; @001f jump block4(v13, v37)+;; @001f store notrap aligned v133, v38+4+;; v134 = band.i64 v19, v18 ; v18 = -16+;; @001f istore32 notrap aligned v134, v38+8+;; @001f jump block4(v14, v38);;;; block3 cold:-;; @001f v25 = iconst.i32 -1476395002-;; @001f v27 = load.i64 notrap aligned readonly can_move v0+40-;; @001f v28 = load.i32 notrap aligned readonly can_move v27-;; @001f v29 = iconst.i32 16-;; @001f v30 = call fn0(v0, v25, v28, v10, v29) ; v25 = -1476395002, v29 = 16-;; @001f v96 = load.i64 notrap aligned readonly can_move v0+8-;; @001f v31 = load.i64 notrap aligned readonly can_move v96+32-;; @001f v32 = uextend.i64 v30-;; @001f v33 = iadd v31, v32-;; @001f jump block4(v30, v33)+;; @001f v26 = iconst.i32 -1476395002+;; @001f v28 = load.i64 notrap aligned readonly can_move v0+40+;; @001f v29 = load.i32 notrap aligned readonly can_move v28+;; @001f v30 = iconst.i32 16+;; @001f v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16+;; @001f v97 = load.i64 notrap aligned readonly can_move v0+8+;; @001f v32 = load.i64 notrap aligned readonly can_move v97+32+;; @001f v33 = uextend.i64 v31+;; @001f v34 = iadd v32, v33+;; @001f jump block4(v31, v34);;-;; block4(v42: i32, v43: i64):-;; v95 = stack_addr.i64 ss0-;; store notrap v42, v95-;; @001f v44 = iconst.i64 16-;; @001f v45 = iadd v43, v44 ; v44 = 16-;; @001f store.i32 user2 region1 v2, v45-;; @001f trapz v42, user16+;; block4(v43: i32, v44: i64):+;; v96 = stack_addr.i64 ss0+;; store notrap v43, v96+;; @001f v45 = iconst.i64 16+;; @001f v46 = iadd v44, v45 ; v45 = 16+;; @001f store.i32 user2 region1 v2, v46+;; @001f trapz v43, user16;; v135 = load.i64 notrap aligned readonly can_move v0+8;; v136 = load.i64 notrap aligned readonly can_move v135+32-;; @001f v48 = uextend.i64 v42-;; @001f v50 = iadd v136, v48-;; @001f v52 = iadd v50, v44 ; v44 = 16-;; @001f v53 = load.i32 user2 readonly region1 v52-;; @001f v54 = uextend.i64 v53-;; @001f v60 = icmp.i64 ugt v5, v54-;; @001f trapnz v60, user17-;; @001f v74 = load.i64 notrap aligned v135+40-;; @001f v64 = iconst.i64 20-;; @001f v65 = iadd v50, v64 ; v64 = 20-;; @001f v76 = uadd_overflow_trap v65, v5, user2-;; @001f v75 = iadd v136, v74-;; @001f v77 = icmp ugt v76, v75-;; @001f trapnz v77, user2-;; @001f v46 = iconst.i32 0-;; @001f call fn1(v0, v65, v46, v5), stack_map=[i32 @ ss0+0] ; v46 = 0-;; v79 = load.i32 notrap v95+;; @001f v49 = uextend.i64 v43+;; @001f v51 = iadd v136, v49+;; @001f v53 = iadd v51, v45 ; v45 = 16+;; @001f v54 = load.i32 user2 readonly region1 v53+;; @001f v55 = uextend.i64 v54+;; @001f v61 = icmp.i64 ugt v5, v55+;; @001f trapnz v61, user17+;; @001f v75 = load.i64 notrap aligned v135+40+;; @001f v65 = iconst.i64 20+;; @001f v66 = iadd v51, v65 ; v65 = 20+;; @001f v77 = uadd_overflow_trap v66, v5, user2+;; @001f v76 = iadd v136, v75+;; @001f v78 = icmp ugt v77, v76+;; @001f trapnz v78, user2+;; @001f v47 = iconst.i32 0+;; @001f call fn1(v0, v66, v47, v5), stack_map=[i32 @ ss0+0] ; v47 = 0+;; v80 = load.i32 notrap v96;; @0022 jump block1;;;; block1:-;; @0022 return v79+;; @0022 return v80;; }diff --git a/tests/disas/gc/copying/array-get-s.wat b/tests/disas/gc/copying/array-get-s.watindex a3246d9b93..44ab1d2a94 100644--- a/tests/disas/gc/copying/array-get-s.wat+++ b/tests/disas/gc/copying/array-get-s.wat@@ -31,22 +31,22 @@;; @0022 v11 = icmp ult v3, v10;; @0022 trapz v11, user17;; @0022 v13 = uextend.i64 v10-;; v33 = iconst.i64 32-;; @0022 v15 = ushr v13, v33 ; v33 = 32-;; @0022 trapnz v15, user2-;; @0022 v17 = iconst.i32 20-;; @0022 v18 = uadd_overflow_trap v10, v17, user2 ; v17 = 20-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23-;; @0022 v21 = iadd v3, v17 ; v17 = 20-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i8 user2 little region0 v28+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v13, v15 ; v15 = 32+;; @0022 trapnz v16, user2+;; @0022 v18 = iconst.i32 20+;; @0022 v19 = uadd_overflow_trap v10, v18, user2 ; v18 = 20+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24+;; @0022 v22 = iadd v3, v18 ; v18 = 20+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i8 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0022 v30 = sextend.i32 v29-;; @0025 return v30+;; @0022 v31 = sextend.i32 v30+;; @0025 return v31;; }diff --git a/tests/disas/gc/copying/array-get-u.wat b/tests/disas/gc/copying/array-get-u.watindex 8cda359629..18c60a2a6b 100644--- a/tests/disas/gc/copying/array-get-u.wat+++ b/tests/disas/gc/copying/array-get-u.wat@@ -31,22 +31,22 @@;; @0022 v11 = icmp ult v3, v10;; @0022 trapz v11, user17;; @0022 v13 = uextend.i64 v10-;; v33 = iconst.i64 32-;; @0022 v15 = ushr v13, v33 ; v33 = 32-;; @0022 trapnz v15, user2-;; @0022 v17 = iconst.i32 20-;; @0022 v18 = uadd_overflow_trap v10, v17, user2 ; v17 = 20-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23-;; @0022 v21 = iadd v3, v17 ; v17 = 20-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i8 user2 little region0 v28+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v13, v15 ; v15 = 32+;; @0022 trapnz v16, user2+;; @0022 v18 = iconst.i32 20+;; @0022 v19 = uadd_overflow_trap v10, v18, user2 ; v18 = 20+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24+;; @0022 v22 = iadd v3, v18 ; v18 = 20+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i8 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0022 v30 = uextend.i32 v29-;; @0025 return v30+;; @0022 v31 = uextend.i32 v30+;; @0025 return v31;; }diff --git a/tests/disas/gc/copying/array-get.wat b/tests/disas/gc/copying/array-get.watindex 65ad894b19..67c60379a4 100644--- a/tests/disas/gc/copying/array-get.wat+++ b/tests/disas/gc/copying/array-get.wat@@ -33,24 +33,24 @@;; @0022 v13 = uextend.i64 v10;; v35 = iconst.i64 3;; v36 = ishl v13, v35 ; v35 = 3-;; v32 = iconst.i64 32-;; @0022 v15 = ushr v36, v32 ; v32 = 32-;; @0022 trapnz v15, user2+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v36, v15 ; v15 = 32+;; @0022 trapnz v16, user2;; v45 = iconst.i32 3;; v46 = ishl v10, v45 ; v45 = 3-;; @0022 v17 = iconst.i32 24-;; @0022 v18 = uadd_overflow_trap v46, v17, user2 ; v17 = 24-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23+;; @0022 v18 = iconst.i32 24+;; @0022 v19 = uadd_overflow_trap v46, v18, user2 ; v18 = 24+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24;; v52 = ishl v3, v45 ; v45 = 3-;; @0022 v21 = iadd v52, v17 ; v17 = 24-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i64 user2 little region0 v28+;; @0022 v22 = iadd v52, v18 ; v18 = 24+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i64 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0025 return v29+;; @0025 return v30;; }diff --git a/tests/disas/gc/copying/array-new-fixed-of-gc-refs.wat b/tests/disas/gc/copying/array-new-fixed-of-gc-refs.watindex b202824369..be4e1ce60f 100644--- a/tests/disas/gc/copying/array-new-fixed-of-gc-refs.wat+++ b/tests/disas/gc/copying/array-new-fixed-of-gc-refs.wat@@ -32,116 +32,116 @@;; store notrap v3, v151;; v150 = stack_addr.i64 ss0;; store notrap v4, v150-;; @0025 v15 = load.i64 notrap aligned readonly can_move v0+32-;; @0025 v16 = load.i32 notrap aligned v15-;; @0025 v17 = load.i32 notrap aligned v15+4-;; @0025 v23 = uextend.i64 v16-;; v149 = iconst.i64 32-;; @0025 v24 = iadd v23, v149 ; v149 = 32-;; @0025 v25 = uextend.i64 v17-;; @0025 v26 = icmp ule v24, v25-;; @0025 brif v26, block2, block3+;; @0025 v16 = load.i64 notrap aligned readonly can_move v0+32+;; @0025 v17 = load.i32 notrap aligned v16+;; @0025 v18 = load.i32 notrap aligned v16+4+;; @0025 v24 = uextend.i64 v17+;; @0025 v11 = iconst.i64 32+;; @0025 v25 = iadd v24, v11 ; v11 = 32+;; @0025 v26 = uextend.i64 v18+;; @0025 v27 = icmp ule v25, v26+;; @0025 brif v27, block2, block3;;;; block2:;; v272 = iconst.i32 32-;; v178 = iadd.i32 v16, v272 ; v272 = 32-;; @0025 store notrap aligned region0 v178, v15+;; v178 = iadd.i32 v17, v272 ; v272 = 32+;; @0025 store notrap aligned region0 v178, v16;; v273 = iconst.i32 -1476394994;; v274 = load.i64 notrap aligned readonly can_move v0+8;; v275 = load.i64 notrap aligned readonly can_move v274+32-;; @0025 v40 = iadd v275, v23-;; @0025 store notrap aligned v273, v40 ; v273 = -1476394994+;; @0025 v41 = iadd v275, v24+;; @0025 store notrap aligned v273, v41 ; v273 = -1476394994;; v276 = load.i64 notrap aligned readonly can_move v0+40;; v277 = load.i32 notrap aligned readonly can_move v276-;; @0025 store notrap aligned v277, v40+4+;; @0025 store notrap aligned v277, v41+4;; v278 = iconst.i64 32-;; @0025 istore32 notrap aligned v278, v40+8 ; v278 = 32-;; @0025 jump block4(v16, v40)+;; @0025 istore32 notrap aligned v278, v41+8 ; v278 = 32+;; @0025 jump block4(v17, v41);;;; block3 cold:-;; @0025 v28 = iconst.i32 -1476394994-;; @0025 v30 = load.i64 notrap aligned readonly can_move v0+40-;; @0025 v31 = load.i32 notrap aligned readonly can_move v30+;; @0025 v29 = iconst.i32 -1476394994+;; @0025 v31 = load.i64 notrap aligned readonly can_move v0+40+;; @0025 v32 = load.i32 notrap aligned readonly can_move v31;; v164 = iconst.i32 32-;; @0025 v32 = iconst.i32 16-;; @0025 v33 = call fn0(v0, v28, v31, v164, v32), stack_map=[i32 @ ss2+0, i32 @ ss1+0, i32 @ ss0+0] ; v28 = -1476394994, v164 = 32, v32 = 16-;; @0025 v145 = load.i64 notrap aligned readonly can_move v0+8-;; @0025 v34 = load.i64 notrap aligned readonly can_move v145+32-;; @0025 v35 = uextend.i64 v33-;; @0025 v36 = iadd v34, v35-;; @0025 jump block4(v33, v36)+;; @0025 v33 = iconst.i32 16+;; @0025 v34 = call fn0(v0, v29, v32, v164, v33), stack_map=[i32 @ ss2+0, i32 @ ss1+0, i32 @ ss0+0] ; v29 = -1476394994, v164 = 32, v33 = 16+;; @0025 v146 = load.i64 notrap aligned readonly can_move v0+8+;; @0025 v35 = load.i64 notrap aligned readonly can_move v146+32+;; @0025 v36 = uextend.i64 v34+;; @0025 v37 = iadd v35, v36+;; @0025 jump block4(v34, v37);;-;; block4(v45: i32, v46: i64):+;; block4(v46: i32, v47: i64):;; @0025 v6 = iconst.i32 3-;; @0025 v47 = iconst.i64 16-;; @0025 v48 = iadd v46, v47 ; v47 = 16-;; @0025 store user2 region1 v6, v48 ; v6 = 3-;; @0025 trapz v45, user16+;; @0025 v48 = iconst.i64 16+;; @0025 v49 = iadd v47, v48 ; v48 = 16+;; @0025 store user2 region1 v6, v49 ; v6 = 3+;; @0025 trapz v46, user16;; v279 = load.i64 notrap aligned readonly can_move v0+8;; v280 = load.i64 notrap aligned readonly can_move v279+32-;; @0025 v50 = uextend.i64 v45-;; @0025 v52 = iadd v280, v50-;; @0025 v54 = iadd v52, v47 ; v47 = 16-;; @0025 v55 = load.i32 user2 readonly region1 v54-;; @0025 v49 = iconst.i32 0-;; v181 = icmp ne v55, v49 ; v49 = 0+;; @0025 v51 = uextend.i64 v46+;; @0025 v53 = iadd v280, v51+;; @0025 v55 = iadd v53, v48 ; v48 = 16+;; @0025 v56 = load.i32 user2 readonly region1 v55+;; @0025 v50 = iconst.i32 0+;; v181 = icmp ne v56, v50 ; v50 = 0;; @0025 trapz v181, user17-;; @0025 v58 = uextend.i64 v55+;; @0025 v59 = uextend.i64 v56;; v155 = iconst.i64 2-;; v184 = ishl v58, v155 ; v155 = 2+;; v184 = ishl v59, v155 ; v155 = 2;; v281 = iconst.i64 32;; v282 = ushr v184, v281 ; v281 = 32;; @0025 trapnz v282, user2;; v193 = iconst.i32 2-;; v194 = ishl v55, v193 ; v193 = 2+;; v194 = ishl v56, v193 ; v193 = 2;; @0025 v7 = iconst.i32 20-;; @0025 v63 = uadd_overflow_trap v194, v7, user2 ; v7 = 20-;; @0025 v67 = uadd_overflow_trap v45, v63, user2-;; v126 = load.i32 notrap v152-;; @0025 v68 = uextend.i64 v67-;; @0025 v70 = iadd v280, v68-;; @0025 v71 = isub v63, v7 ; v7 = 20-;; @0025 v72 = uextend.i64 v71-;; @0025 v73 = isub v70, v72-;; @0025 store user2 little region1 v126, v73-;; @0025 v80 = load.i32 user2 readonly region1 v54-;; @0025 v74 = iconst.i32 1-;; v211 = icmp ugt v80, v74 ; v74 = 1+;; @0025 v65 = uadd_overflow_trap v194, v7, user2 ; v7 = 20+;; @0025 v69 = uadd_overflow_trap v46, v65, user2+;; v130 = load.i32 notrap v152+;; @0025 v70 = uextend.i64 v69+;; @0025 v72 = iadd v280, v70+;; @0025 v73 = isub v65, v7 ; v7 = 20+;; @0025 v74 = uextend.i64 v73+;; @0025 v75 = isub v72, v74+;; @0025 store user2 little region1 v130, v75+;; @0025 v82 = load.i32 user2 readonly region1 v55+;; @0025 v76 = iconst.i32 1+;; v211 = icmp ugt v82, v76 ; v76 = 1;; @0025 trapz v211, user17-;; @0025 v83 = uextend.i64 v80-;; v213 = ishl v83, v155 ; v155 = 2+;; @0025 v85 = uextend.i64 v82+;; v213 = ishl v85, v155 ; v155 = 2;; v283 = ushr v213, v281 ; v281 = 32;; @0025 trapnz v283, user2-;; v220 = ishl v80, v193 ; v193 = 2-;; @0025 v88 = uadd_overflow_trap v220, v7, user2 ; v7 = 20-;; @0025 v92 = uadd_overflow_trap v45, v88, user2-;; v125 = load.i32 notrap v151-;; @0025 v93 = uextend.i64 v92-;; @0025 v95 = iadd v280, v93+;; v220 = ishl v82, v193 ; v193 = 2+;; @0025 v91 = uadd_overflow_trap v220, v7, user2 ; v7 = 20+;; @0025 v95 = uadd_overflow_trap v46, v91, user2+;; v129 = load.i32 notrap v151+;; @0025 v96 = uextend.i64 v95+;; @0025 v98 = iadd v280, v96;; v233 = iconst.i32 24-;; @0025 v96 = isub v88, v233 ; v233 = 24-;; @0025 v97 = uextend.i64 v96-;; @0025 v98 = isub v95, v97-;; @0025 store user2 little region1 v125, v98-;; @0025 v105 = load.i32 user2 readonly region1 v54-;; v239 = icmp ugt v105, v193 ; v193 = 2+;; @0025 v99 = isub v91, v233 ; v233 = 24+;; @0025 v100 = uextend.i64 v99+;; @0025 v101 = isub v98, v100+;; @0025 store user2 little region1 v129, v101+;; @0025 v108 = load.i32 user2 readonly region1 v55+;; v239 = icmp ugt v108, v193 ; v193 = 2;; @0025 trapz v239, user17-;; @0025 v108 = uextend.i64 v105-;; v241 = ishl v108, v155 ; v155 = 2+;; @0025 v111 = uextend.i64 v108+;; v241 = ishl v111, v155 ; v155 = 2;; v284 = ushr v241, v281 ; v281 = 32;; @0025 trapnz v284, user2-;; v248 = ishl v105, v193 ; v193 = 2-;; @0025 v113 = uadd_overflow_trap v248, v7, user2 ; v7 = 20-;; @0025 v117 = uadd_overflow_trap v45, v113, user2-;; v124 = load.i32 notrap v150-;; @0025 v118 = uextend.i64 v117-;; @0025 v120 = iadd v280, v118-;; v266 = iconst.i32 28-;; @0025 v121 = isub v113, v266 ; v266 = 28+;; v248 = ishl v108, v193 ; v193 = 2+;; @0025 v117 = uadd_overflow_trap v248, v7, user2 ; v7 = 20+;; @0025 v121 = uadd_overflow_trap v46, v117, user2+;; v128 = load.i32 notrap v150;; @0025 v122 = uextend.i64 v121-;; @0025 v123 = isub v120, v122-;; @0025 store user2 little region1 v124, v123-;; @0029 jump block1(v45)+;; @0025 v124 = iadd v280, v122+;; v266 = iconst.i32 28+;; @0025 v125 = isub v117, v266 ; v266 = 28+;; @0025 v126 = uextend.i64 v125+;; @0025 v127 = isub v124, v126+;; @0025 store user2 little region1 v128, v127+;; @0029 jump block1(v46);;;; block1(v5: i32):;; @0029 return v5diff --git a/tests/disas/gc/copying/array-new-fixed.wat b/tests/disas/gc/copying/array-new-fixed.watindex e606b85dfe..fdafea1261 100644--- a/tests/disas/gc/copying/array-new-fixed.wat+++ b/tests/disas/gc/copying/array-new-fixed.wat@@ -23,113 +23,113 @@;; stack_limit = gv2;;;; block0(v0: i64, v1: i64, v2: i64, v3: i64, v4: i64):-;; @0025 v15 = load.i64 notrap aligned readonly can_move v0+32-;; @0025 v16 = load.i32 notrap aligned v15-;; @0025 v17 = load.i32 notrap aligned v15+4-;; @0025 v23 = uextend.i64 v16+;; @0025 v16 = load.i64 notrap aligned readonly can_move v0+32+;; @0025 v17 = load.i32 notrap aligned v16+;; @0025 v18 = load.i32 notrap aligned v16+4+;; @0025 v24 = uextend.i64 v17;; v154 = iconst.i64 48-;; @0025 v24 = iadd v23, v154 ; v154 = 48-;; @0025 v25 = uextend.i64 v17-;; @0025 v26 = icmp ule v24, v25-;; @0025 brif v26, block2, block3+;; @0025 v25 = iadd v24, v154 ; v154 = 48+;; @0025 v26 = uextend.i64 v18+;; @0025 v27 = icmp ule v25, v26+;; @0025 brif v27, block2, block3;;;; block2:;; v260 = iconst.i32 48-;; v168 = iadd.i32 v16, v260 ; v260 = 48-;; @0025 store notrap aligned region0 v168, v15+;; v168 = iadd.i32 v17, v260 ; v260 = 48+;; @0025 store notrap aligned region0 v168, v16;; v261 = iconst.i32 -1476395002;; v262 = load.i64 notrap aligned readonly can_move v0+8;; v263 = load.i64 notrap aligned readonly can_move v262+32-;; @0025 v40 = iadd v263, v23-;; @0025 store notrap aligned v261, v40 ; v261 = -1476395002+;; @0025 v41 = iadd v263, v24+;; @0025 store notrap aligned v261, v41 ; v261 = -1476395002;; v264 = load.i64 notrap aligned readonly can_move v0+40;; v265 = load.i32 notrap aligned readonly can_move v264-;; @0025 store notrap aligned v265, v40+4+;; @0025 store notrap aligned v265, v41+4;; v266 = iconst.i64 48-;; @0025 istore32 notrap aligned v266, v40+8 ; v266 = 48-;; @0025 jump block4(v16, v40)+;; @0025 istore32 notrap aligned v266, v41+8 ; v266 = 48+;; @0025 jump block4(v17, v41);;;; block3 cold:-;; @0025 v28 = iconst.i32 -1476395002-;; @0025 v30 = load.i64 notrap aligned readonly can_move v0+40-;; @0025 v31 = load.i32 notrap aligned readonly can_move v30+;; @0025 v29 = iconst.i32 -1476395002+;; @0025 v31 = load.i64 notrap aligned readonly can_move v0+40+;; @0025 v32 = load.i32 notrap aligned readonly can_move v31;; v153 = iconst.i32 48-;; @0025 v32 = iconst.i32 16-;; @0025 v33 = call fn0(v0, v28, v31, v153, v32) ; v28 = -1476395002, v153 = 48, v32 = 16-;; @0025 v139 = load.i64 notrap aligned readonly can_move v0+8-;; @0025 v34 = load.i64 notrap aligned readonly can_move v139+32-;; @0025 v35 = uextend.i64 v33-;; @0025 v36 = iadd v34, v35-;; @0025 jump block4(v33, v36)+;; @0025 v33 = iconst.i32 16+;; @0025 v34 = call fn0(v0, v29, v32, v153, v33) ; v29 = -1476395002, v153 = 48, v33 = 16+;; @0025 v140 = load.i64 notrap aligned readonly can_move v0+8+;; @0025 v35 = load.i64 notrap aligned readonly can_move v140+32+;; @0025 v36 = uextend.i64 v34+;; @0025 v37 = iadd v35, v36+;; @0025 jump block4(v34, v37);;-;; block4(v45: i32, v46: i64):+;; block4(v46: i32, v47: i64):;; @0025 v6 = iconst.i32 3-;; @0025 v47 = iconst.i64 16-;; @0025 v48 = iadd v46, v47 ; v47 = 16-;; @0025 store user2 region1 v6, v48 ; v6 = 3-;; @0025 trapz v45, user16+;; @0025 v48 = iconst.i64 16+;; @0025 v49 = iadd v47, v48 ; v48 = 16+;; @0025 store user2 region1 v6, v49 ; v6 = 3+;; @0025 trapz v46, user16;; v267 = load.i64 notrap aligned readonly can_move v0+8;; v268 = load.i64 notrap aligned readonly can_move v267+32-;; @0025 v50 = uextend.i64 v45-;; @0025 v52 = iadd v268, v50-;; @0025 v54 = iadd v52, v47 ; v47 = 16-;; @0025 v55 = load.i32 user2 readonly region1 v54-;; @0025 v49 = iconst.i32 0-;; v171 = icmp ne v55, v49 ; v49 = 0+;; @0025 v51 = uextend.i64 v46+;; @0025 v53 = iadd v268, v51+;; @0025 v55 = iadd v53, v48 ; v48 = 16+;; @0025 v56 = load.i32 user2 readonly region1 v55+;; @0025 v50 = iconst.i32 0+;; v171 = icmp ne v56, v50 ; v50 = 0;; @0025 trapz v171, user17-;; @0025 v58 = uextend.i64 v55+;; @0025 v59 = uextend.i64 v56;; v144 = iconst.i64 3-;; v174 = ishl v58, v144 ; v144 = 3-;; v143 = iconst.i64 32-;; @0025 v60 = ushr v174, v143 ; v143 = 32-;; @0025 trapnz v60, user2-;; v183 = ishl v55, v6 ; v6 = 3+;; v174 = ishl v59, v144 ; v144 = 3+;; @0025 v11 = iconst.i64 32+;; @0025 v62 = ushr v174, v11 ; v11 = 32+;; @0025 trapnz v62, user2+;; v183 = ishl v56, v6 ; v6 = 3;; @0025 v7 = iconst.i32 24-;; @0025 v63 = uadd_overflow_trap v183, v7, user2 ; v7 = 24-;; @0025 v67 = uadd_overflow_trap v45, v63, user2-;; @0025 v68 = uextend.i64 v67-;; @0025 v70 = iadd v268, v68-;; @0025 v71 = isub v63, v7 ; v7 = 24-;; @0025 v72 = uextend.i64 v71-;; @0025 v73 = isub v70, v72-;; @0025 store.i64 user2 little region1 v2, v73-;; @0025 v80 = load.i32 user2 readonly region1 v54-;; @0025 v74 = iconst.i32 1-;; v200 = icmp ugt v80, v74 ; v74 = 1+;; @0025 v65 = uadd_overflow_trap v183, v7, user2 ; v7 = 24+;; @0025 v69 = uadd_overflow_trap v46, v65, user2+;; @0025 v70 = uextend.i64 v69+;; @0025 v72 = iadd v268, v70+;; @0025 v73 = isub v65, v7 ; v7 = 24+;; @0025 v74 = uextend.i64 v73+;; @0025 v75 = isub v72, v74+;; @0025 store.i64 user2 little region1 v2, v75+;; @0025 v82 = load.i32 user2 readonly region1 v55+;; @0025 v76 = iconst.i32 1+;; v200 = icmp ugt v82, v76 ; v76 = 1;; @0025 trapz v200, user17-;; @0025 v83 = uextend.i64 v80-;; v202 = ishl v83, v144 ; v144 = 3-;; @0025 v85 = ushr v202, v143 ; v143 = 32-;; @0025 trapnz v85, user2-;; v209 = ishl v80, v6 ; v6 = 3-;; @0025 v88 = uadd_overflow_trap v209, v7, user2 ; v7 = 24-;; @0025 v92 = uadd_overflow_trap v45, v88, user2-;; @0025 v93 = uextend.i64 v92-;; @0025 v95 = iadd v268, v93+;; @0025 v85 = uextend.i64 v82+;; v202 = ishl v85, v144 ; v144 = 3+;; @0025 v88 = ushr v202, v11 ; v11 = 32+;; @0025 trapnz v88, user2+;; v209 = ishl v82, v6 ; v6 = 3+;; @0025 v91 = uadd_overflow_trap v209, v7, user2 ; v7 = 24+;; @0025 v95 = uadd_overflow_trap v46, v91, user2+;; @0025 v96 = uextend.i64 v95+;; @0025 v98 = iadd v268, v96;; v222 = iconst.i32 32-;; @0025 v96 = isub v88, v222 ; v222 = 32-;; @0025 v97 = uextend.i64 v96-;; @0025 v98 = isub v95, v97-;; @0025 store.i64 user2 little region1 v3, v98-;; @0025 v105 = load.i32 user2 readonly region1 v54-;; @0025 v99 = iconst.i32 2-;; v228 = icmp ugt v105, v99 ; v99 = 2+;; @0025 v99 = isub v91, v222 ; v222 = 32+;; @0025 v100 = uextend.i64 v99+;; @0025 v101 = isub v98, v100+;; @0025 store.i64 user2 little region1 v3, v101+;; @0025 v108 = load.i32 user2 readonly region1 v55+;; @0025 v102 = iconst.i32 2+;; v228 = icmp ugt v108, v102 ; v102 = 2;; @0025 trapz v228, user17-;; @0025 v108 = uextend.i64 v105-;; v230 = ishl v108, v144 ; v144 = 3-;; @0025 v110 = ushr v230, v143 ; v143 = 32-;; @0025 trapnz v110, user2-;; v237 = ishl v105, v6 ; v6 = 3-;; @0025 v113 = uadd_overflow_trap v237, v7, user2 ; v7 = 24-;; @0025 v117 = uadd_overflow_trap v45, v113, user2-;; @0025 v118 = uextend.i64 v117-;; @0025 v120 = iadd v268, v118-;; v254 = iconst.i32 40-;; @0025 v121 = isub v113, v254 ; v254 = 40+;; @0025 v111 = uextend.i64 v108+;; v230 = ishl v111, v144 ; v144 = 3+;; @0025 v114 = ushr v230, v11 ; v11 = 32+;; @0025 trapnz v114, user2+;; v237 = ishl v108, v6 ; v6 = 3+;; @0025 v117 = uadd_overflow_trap v237, v7, user2 ; v7 = 24+;; @0025 v121 = uadd_overflow_trap v46, v117, user2;; @0025 v122 = uextend.i64 v121-;; @0025 v123 = isub v120, v122-;; @0025 store.i64 user2 little region1 v4, v123-;; @0029 jump block1(v45)+;; @0025 v124 = iadd v268, v122+;; v254 = iconst.i32 40+;; @0025 v125 = isub v117, v254 ; v254 = 40+;; @0025 v126 = uextend.i64 v125+;; @0025 v127 = isub v124, v126+;; @0025 store.i64 user2 little region1 v4, v127+;; @0029 jump block1(v46);;;; block1(v5: i32):;; @0029 return v5diff --git a/tests/disas/gc/copying/array-new.wat b/tests/disas/gc/copying/array-new.watindex 373d07418e..914a908f6b 100644--- a/tests/disas/gc/copying/array-new.wat+++ b/tests/disas/gc/copying/array-new.wat@@ -26,94 +26,94 @@;; @0022 v6 = uextend.i64 v3;; v98 = iconst.i64 3;; v99 = ishl v6, v98 ; v98 = 3-;; v97 = iconst.i64 32-;; @0022 v9 = ushr v99, v97 ; v97 = 32-;; @0022 trapnz v9, user18+;; @0022 v9 = iconst.i64 32+;; @0022 v10 = ushr v99, v9 ; v9 = 32+;; @0022 trapnz v10, user18;; @0022 v5 = iconst.i32 24;; v105 = iconst.i32 3;; v106 = ishl v3, v105 ; v105 = 3-;; @0022 v11 = uadd_overflow_trap v5, v106, user18 ; v5 = 24-;; @0022 v13 = load.i64 notrap aligned readonly can_move v0+32-;; @0022 v14 = load.i32 notrap aligned v13-;; @0022 v15 = load.i32 notrap aligned v13+4-;; @0022 v21 = uextend.i64 v14-;; @0022 v16 = uextend.i64 v11-;; @0022 v17 = iconst.i64 15-;; @0022 v19 = iadd v16, v17 ; v17 = 15-;; @0022 v18 = iconst.i64 -16-;; @0022 v20 = band v19, v18 ; v18 = -16-;; @0022 v22 = iadd v21, v20-;; @0022 v23 = uextend.i64 v15-;; @0022 v24 = icmp ule v22, v23-;; @0022 brif v24, block2, block3+;; @0022 v12 = uadd_overflow_trap v5, v106, user18 ; v5 = 24+;; @0022 v14 = load.i64 notrap aligned readonly can_move v0+32+;; @0022 v15 = load.i32 notrap aligned v14+;; @0022 v16 = load.i32 notrap aligned v14+4+;; @0022 v22 = uextend.i64 v15+;; @0022 v17 = uextend.i64 v12+;; @0022 v18 = iconst.i64 15+;; @0022 v20 = iadd v17, v18 ; v18 = 15+;; @0022 v19 = iconst.i64 -16+;; @0022 v21 = band v20, v19 ; v19 = -16+;; @0022 v23 = iadd v22, v21+;; @0022 v24 = uextend.i64 v16+;; @0022 v25 = icmp ule v23, v24+;; @0022 brif v25, block2, block3;;;; block2:;; v114 = iconst.i32 15-;; v115 = iadd.i32 v11, v114 ; v114 = 15+;; v115 = iadd.i32 v12, v114 ; v114 = 15;; v118 = iconst.i32 -16;; v119 = band v115, v118 ; v118 = -16-;; v121 = iadd.i32 v14, v119-;; @0022 store notrap aligned region0 v121, v13+;; v121 = iadd.i32 v15, v119+;; @0022 store notrap aligned region0 v121, v14;; v137 = iconst.i32 -1476395002;; v138 = load.i64 notrap aligned readonly can_move v0+8;; v139 = load.i64 notrap aligned readonly can_move v138+32-;; @0022 v38 = iadd v139, v21-;; @0022 store notrap aligned v137, v38 ; v137 = -1476395002+;; @0022 v39 = iadd v139, v22+;; @0022 store notrap aligned v137, v39 ; v137 = -1476395002;; v140 = load.i64 notrap aligned readonly can_move v0+40;; v141 = load.i32 notrap aligned readonly can_move v140-;; @0022 store notrap aligned v141, v38+4-;; v142 = band.i64 v19, v18 ; v18 = -16-;; @0022 istore32 notrap aligned v142, v38+8-;; @0022 jump block4(v14, v38)+;; @0022 store notrap aligned v141, v39+4+;; v142 = band.i64 v20, v19 ; v19 = -16+;; @0022 istore32 notrap aligned v142, v39+8+;; @0022 jump block4(v15, v39);;;; block3 cold:-;; @0022 v26 = iconst.i32 -1476395002-;; @0022 v28 = load.i64 notrap aligned readonly can_move v0+40-;; @0022 v29 = load.i32 notrap aligned readonly can_move v28-;; @0022 v30 = iconst.i32 16-;; @0022 v31 = call fn0(v0, v26, v29, v11, v30) ; v26 = -1476395002, v30 = 16-;; @0022 v93 = load.i64 notrap aligned readonly can_move v0+8-;; @0022 v32 = load.i64 notrap aligned readonly can_move v93+32-;; @0022 v33 = uextend.i64 v31-;; @0022 v34 = iadd v32, v33-;; @0022 jump block4(v31, v34)+;; @0022 v27 = iconst.i32 -1476395002+;; @0022 v29 = load.i64 notrap aligned readonly can_move v0+40+;; @0022 v30 = load.i32 notrap aligned readonly can_move v29+;; @0022 v31 = iconst.i32 16+;; @0022 v32 = call fn0(v0, v27, v30, v12, v31) ; v27 = -1476395002, v31 = 16+;; @0022 v94 = load.i64 notrap aligned readonly can_move v0+8+;; @0022 v33 = load.i64 notrap aligned readonly can_move v94+32+;; @0022 v34 = uextend.i64 v32+;; @0022 v35 = iadd v33, v34+;; @0022 jump block4(v32, v35);;-;; block4(v43: i32, v44: i64):-;; @0022 v45 = iconst.i64 16-;; @0022 v46 = iadd v44, v45 ; v45 = 16-;; @0022 store.i32 user2 region1 v3, v46-;; @0022 trapz v43, user16+;; block4(v44: i32, v45: i64):+;; @0022 v46 = iconst.i64 16+;; @0022 v47 = iadd v45, v46 ; v46 = 16+;; @0022 store.i32 user2 region1 v3, v47+;; @0022 trapz v44, user16;; v143 = load.i64 notrap aligned readonly can_move v0+8;; v144 = load.i64 notrap aligned readonly can_move v143+32-;; @0022 v48 = uextend.i64 v43-;; @0022 v50 = iadd v144, v48-;; @0022 v52 = iadd v50, v45 ; v45 = 16-;; @0022 v53 = load.i32 user2 readonly region1 v52-;; @0022 v54 = uextend.i64 v53-;; @0022 v60 = icmp.i64 ugt v6, v54-;; @0022 trapnz v60, user17-;; @0022 v74 = load.i64 notrap aligned v143+40-;; @0022 v64 = iconst.i64 24-;; @0022 v65 = iadd v50, v64 ; v64 = 24-;; @0022 v76 = uadd_overflow_trap v65, v99, user2-;; @0022 v75 = iadd v144, v74-;; @0022 v77 = icmp ugt v76, v75-;; @0022 trapnz v77, user2+;; @0022 v49 = uextend.i64 v44+;; @0022 v51 = iadd v144, v49+;; @0022 v53 = iadd v51, v46 ; v46 = 16+;; @0022 v54 = load.i32 user2 readonly region1 v53+;; @0022 v55 = uextend.i64 v54+;; @0022 v61 = icmp.i64 ugt v6, v55+;; @0022 trapnz v61, user17+;; @0022 v75 = load.i64 notrap aligned v143+40+;; @0022 v65 = iconst.i64 24+;; @0022 v66 = iadd v51, v65 ; v65 = 24+;; @0022 v77 = uadd_overflow_trap v66, v99, user2+;; @0022 v76 = iadd v144, v75+;; @0022 v78 = icmp ugt v77, v76+;; @0022 trapnz v78, user2;; v123 = iconst.i64 0-;; @0022 v80 = icmp.i64 eq v6, v123 ; v123 = 0+;; @0022 v81 = icmp.i64 eq v6, v123 ; v123 = 0;; @0022 v7 = iconst.i64 8-;; @0022 v78 = iadd v65, v99-;; @0022 brif v80, block6, block5(v65)+;; @0022 v79 = iadd v66, v99+;; @0022 brif v81, block6, block5(v66);;-;; block5(v81: i64):-;; @0022 store.i64 user2 little region1 v2, v81+;; block5(v82: i64):+;; @0022 store.i64 user2 little region1 v2, v82;; v145 = iconst.i64 8-;; v146 = iadd v81, v145 ; v145 = 8-;; @0022 v84 = icmp eq v146, v78-;; @0022 brif v84, block6, block5(v146)+;; v146 = iadd v82, v145 ; v145 = 8+;; @0022 v85 = icmp eq v146, v79+;; @0022 brif v85, block6, block5(v146);;;; block6:-;; @0025 jump block1(v43)+;; @0025 jump block1(v44);;;; block1(v4: i32):;; @0025 return v4diff --git a/tests/disas/gc/copying/array-set.wat b/tests/disas/gc/copying/array-set.watindex 0daaa2f1b3..05f86058f7 100644--- a/tests/disas/gc/copying/array-set.wat+++ b/tests/disas/gc/copying/array-set.wat@@ -33,22 +33,22 @@;; @0024 v13 = uextend.i64 v10;; v34 = iconst.i64 3;; v35 = ishl v13, v34 ; v34 = 3-;; v31 = iconst.i64 32-;; @0024 v15 = ushr v35, v31 ; v31 = 32-;; @0024 trapnz v15, user2+;; @0024 v15 = iconst.i64 32+;; @0024 v16 = ushr v35, v15 ; v15 = 32+;; @0024 trapnz v16, user2;; v44 = iconst.i32 3;; v45 = ishl v10, v44 ; v44 = 3-;; @0024 v17 = iconst.i32 24-;; @0024 v18 = uadd_overflow_trap v45, v17, user2 ; v17 = 24-;; @0024 v22 = uadd_overflow_trap v2, v18, user2-;; @0024 v23 = uextend.i64 v22-;; @0024 v25 = iadd v6, v23+;; @0024 v18 = iconst.i32 24+;; @0024 v19 = uadd_overflow_trap v45, v18, user2 ; v18 = 24+;; @0024 v23 = uadd_overflow_trap v2, v19, user2+;; @0024 v24 = uextend.i64 v23+;; @0024 v26 = iadd v6, v24;; v51 = ishl v3, v44 ; v44 = 3-;; @0024 v21 = iadd v51, v17 ; v17 = 24-;; @0024 v26 = isub v18, v21-;; @0024 v27 = uextend.i64 v26-;; @0024 v28 = isub v25, v27-;; @0024 store user2 little region0 v4, v28+;; @0024 v22 = iadd v51, v18 ; v18 = 24+;; @0024 v27 = isub v19, v22+;; @0024 v28 = uextend.i64 v27+;; @0024 v29 = isub v26, v28+;; @0024 store user2 little region0 v4, v29;; @0027 jump block1;;;; block1:diff --git a/tests/disas/gc/copying/call-indirect-and-subtyping.wat b/tests/disas/gc/copying/call-indirect-and-subtyping.watindex f21beff1b5..e73c65e0e6 100644--- a/tests/disas/gc/copying/call-indirect-and-subtyping.wat+++ b/tests/disas/gc/copying/call-indirect-and-subtyping.wat@@ -32,40 +32,40 @@;; block0(v0: i64, v1: i64, v2: i32):;; @005c v3 = iconst.i32 2;; @005c v4 = icmp uge v2, v3 ; v3 = 2-;; @005c v9 = iconst.i64 0+;; @005c v10 = iconst.i64 0;; @005c v6 = load.i64 notrap aligned readonly can_move v0+112;; @005c v5 = uextend.i64 v2-;; v30 = iconst.i64 3-;; @005c v7 = ishl v5, v30 ; v30 = 3-;; @005c v8 = iadd v6, v7-;; @005c v10 = select_spectre_guard v4, v9, v8 ; v9 = 0-;; @005c v11 = load.i64 user6 aligned region0 v10-;; v29 = iconst.i64 -2-;; @005c v12 = band v11, v29 ; v29 = -2-;; @005c brif v11, block3(v12), block2+;; @005c v7 = iconst.i64 3+;; @005c v8 = ishl v5, v7 ; v7 = 3+;; @005c v9 = iadd v6, v8+;; @005c v11 = select_spectre_guard v4, v10, v9 ; v10 = 0+;; @005c v12 = load.i64 user6 aligned region0 v11+;; @005c v13 = iconst.i64 -2+;; @005c v14 = band v12, v13 ; v13 = -2+;; @005c brif v12, block3(v14), block2;;;; block2 cold:-;; @005c v14 = iconst.i32 0-;; @005c v17 = call fn0(v0, v14, v5) ; v14 = 0-;; @005c jump block3(v17)+;; @005c v16 = iconst.i32 0+;; @005c v19 = call fn0(v0, v16, v5) ; v16 = 0+;; @005c jump block3(v19);;-;; block3(v13: i64):-;; @005c v21 = load.i32 user7 aligned readonly v13+16-;; @005c v19 = load.i64 notrap aligned readonly can_move v0+40-;; @005c v20 = load.i32 notrap aligned readonly can_move v19-;; @005c v22 = icmp eq v21, v20-;; @005c v23 = uextend.i32 v22-;; @005c brif v23, block5(v23), block4+;; block3(v15: i64):+;; @005c v23 = load.i32 user7 aligned readonly v15+16+;; @005c v21 = load.i64 notrap aligned readonly can_move v0+40+;; @005c v22 = load.i32 notrap aligned readonly can_move v21+;; @005c v24 = icmp eq v23, v22+;; @005c v25 = uextend.i32 v24+;; @005c brif v25, block5(v25), block4;;;; block4:-;; @005c v25 = call fn1(v0, v21, v20)-;; @005c jump block5(v25)+;; @005c v27 = call fn1(v0, v23, v22)+;; @005c jump block5(v27);;-;; block5(v26: i32):-;; @005c trapz v26, user8-;; @005c v27 = load.i64 notrap aligned readonly v13+8-;; @005c v28 = load.i64 notrap aligned readonly v13+24-;; @005c call_indirect sig0, v27(v28, v0)+;; block5(v28: i32):+;; @005c trapz v28, user8+;; @005c v29 = load.i64 notrap aligned readonly v15+8+;; @005c v30 = load.i64 notrap aligned readonly v15+24+;; @005c call_indirect sig0, v29(v30, v0);; @005f jump block1;;;; block1:diff --git a/tests/disas/gc/copying/multiple-array-get.wat b/tests/disas/gc/copying/multiple-array-get.watindex 41ecfe7d67..fb025f7095 100644--- a/tests/disas/gc/copying/multiple-array-get.wat+++ b/tests/disas/gc/copying/multiple-array-get.wat@@ -34,32 +34,32 @@;; @0024 v15 = uextend.i64 v12;; v67 = iconst.i64 3;; v68 = ishl v15, v67 ; v67 = 3-;; v64 = iconst.i64 32-;; @0024 v17 = ushr v68, v64 ; v64 = 32-;; @0024 trapnz v17, user2+;; @0024 v17 = iconst.i64 32+;; @0024 v18 = ushr v68, v17 ; v17 = 32+;; @0024 trapnz v18, user2;; v77 = iconst.i32 3;; v78 = ishl v12, v77 ; v77 = 3-;; @0024 v19 = iconst.i32 24-;; @0024 v20 = uadd_overflow_trap v78, v19, user2 ; v19 = 24-;; @0024 v24 = uadd_overflow_trap v2, v20, user2-;; @0024 v25 = uextend.i64 v24-;; @0024 v27 = iadd v8, v25+;; @0024 v20 = iconst.i32 24+;; @0024 v21 = uadd_overflow_trap v78, v20, user2 ; v20 = 24+;; @0024 v25 = uadd_overflow_trap v2, v21, user2+;; @0024 v26 = uextend.i64 v25+;; @0024 v28 = iadd v8, v26;; v84 = ishl v3, v77 ; v77 = 3-;; @0024 v23 = iadd v84, v19 ; v19 = 24-;; @0024 v28 = isub v20, v23-;; @0024 v29 = uextend.i64 v28-;; @0024 v30 = isub v27, v29-;; @0024 v31 = load.i64 user2 little region0 v30-;; @002b v38 = icmp ult v4, v12-;; @002b trapz v38, user17+;; @0024 v24 = iadd v84, v20 ; v20 = 24+;; @0024 v29 = isub v21, v24+;; @0024 v30 = uextend.i64 v29+;; @0024 v31 = isub v28, v30+;; @0024 v32 = load.i64 user2 little region0 v31+;; @002b v39 = icmp ult v4, v12+;; @002b trapz v39, user17;; v86 = ishl v4, v77 ; v77 = 3-;; @002b v48 = iadd v86, v19 ; v19 = 24-;; @002b v53 = isub v20, v48-;; @002b v54 = uextend.i64 v53-;; @002b v55 = isub v27, v54-;; @002b v56 = load.i64 user2 little region0 v55+;; @002b v50 = iadd v86, v20 ; v20 = 24+;; @002b v55 = isub v21, v50+;; @002b v56 = uextend.i64 v55+;; @002b v57 = isub v28, v56+;; @002b v58 = load.i64 user2 little region0 v57;; @002e jump block1;;;; block1:-;; @002e return v31, v56+;; @002e return v32, v58;; }diff --git a/tests/disas/gc/drc/array-get-s.wat b/tests/disas/gc/drc/array-get-s.watindex 12c48caf51..a760a17418 100644--- a/tests/disas/gc/drc/array-get-s.wat+++ b/tests/disas/gc/drc/array-get-s.wat@@ -32,22 +32,22 @@;; @0022 v11 = icmp ult v3, v10;; @0022 trapz v11, user17;; @0022 v13 = uextend.i64 v10-;; v33 = iconst.i64 32-;; @0022 v15 = ushr v13, v33 ; v33 = 32-;; @0022 trapnz v15, user2-;; @0022 v17 = iconst.i32 28-;; @0022 v18 = uadd_overflow_trap v10, v17, user2 ; v17 = 28-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23-;; @0022 v21 = iadd v3, v17 ; v17 = 28-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i8 user2 little region0 v28+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v13, v15 ; v15 = 32+;; @0022 trapnz v16, user2+;; @0022 v18 = iconst.i32 28+;; @0022 v19 = uadd_overflow_trap v10, v18, user2 ; v18 = 28+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24+;; @0022 v22 = iadd v3, v18 ; v18 = 28+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i8 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0022 v30 = sextend.i32 v29-;; @0025 return v30+;; @0022 v31 = sextend.i32 v30+;; @0025 return v31;; }diff --git a/tests/disas/gc/drc/array-get-u.wat b/tests/disas/gc/drc/array-get-u.watindex 72eb04b3d3..c42fa518c6 100644--- a/tests/disas/gc/drc/array-get-u.wat+++ b/tests/disas/gc/drc/array-get-u.wat@@ -32,22 +32,22 @@;; @0022 v11 = icmp ult v3, v10;; @0022 trapz v11, user17;; @0022 v13 = uextend.i64 v10-;; v33 = iconst.i64 32-;; @0022 v15 = ushr v13, v33 ; v33 = 32-;; @0022 trapnz v15, user2-;; @0022 v17 = iconst.i32 28-;; @0022 v18 = uadd_overflow_trap v10, v17, user2 ; v17 = 28-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23-;; @0022 v21 = iadd v3, v17 ; v17 = 28-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i8 user2 little region0 v28+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v13, v15 ; v15 = 32+;; @0022 trapnz v16, user2+;; @0022 v18 = iconst.i32 28+;; @0022 v19 = uadd_overflow_trap v10, v18, user2 ; v18 = 28+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24+;; @0022 v22 = iadd v3, v18 ; v18 = 28+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i8 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0022 v30 = uextend.i32 v29-;; @0025 return v30+;; @0022 v31 = uextend.i32 v30+;; @0025 return v31;; }diff --git a/tests/disas/gc/drc/array-get.wat b/tests/disas/gc/drc/array-get.watindex 268fd46247..c6a5311b20 100644--- a/tests/disas/gc/drc/array-get.wat+++ b/tests/disas/gc/drc/array-get.wat@@ -34,24 +34,24 @@;; @0022 v13 = uextend.i64 v10;; v35 = iconst.i64 3;; v36 = ishl v13, v35 ; v35 = 3-;; v32 = iconst.i64 32-;; @0022 v15 = ushr v36, v32 ; v32 = 32-;; @0022 trapnz v15, user2+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v36, v15 ; v15 = 32+;; @0022 trapnz v16, user2;; v45 = iconst.i32 3;; v46 = ishl v10, v45 ; v45 = 3-;; @0022 v17 = iconst.i32 32-;; @0022 v18 = uadd_overflow_trap v46, v17, user2 ; v17 = 32-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23+;; @0022 v18 = iconst.i32 32+;; @0022 v19 = uadd_overflow_trap v46, v18, user2 ; v18 = 32+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24;; v52 = ishl v3, v45 ; v45 = 3-;; @0022 v21 = iadd v52, v17 ; v17 = 32-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i64 user2 little region0 v28+;; @0022 v22 = iadd v52, v18 ; v18 = 32+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i64 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0025 return v29+;; @0025 return v30;; }diff --git a/tests/disas/gc/drc/array-new-fixed-of-gc-refs.wat b/tests/disas/gc/drc/array-new-fixed-of-gc-refs.watindex dd0eb6f363..be0140a9f4 100644--- a/tests/disas/gc/drc/array-new-fixed-of-gc-refs.wat+++ b/tests/disas/gc/drc/array-new-fixed-of-gc-refs.wat@@ -32,142 +32,142 @@;; store notrap v3, v219;; v218 = stack_addr.i64 ss0;; store notrap v4, v218-;; @0025 v15 = iconst.i32 -1476395008-;; @0025 v17 = load.i64 notrap aligned readonly can_move v0+40-;; @0025 v18 = load.i32 notrap aligned readonly can_move v17+;; @0025 v16 = iconst.i32 -1476395008+;; @0025 v18 = load.i64 notrap aligned readonly can_move v0+40+;; @0025 v19 = load.i32 notrap aligned readonly can_move v18;; v232 = iconst.i32 40-;; @0025 v19 = iconst.i32 8-;; @0025 v20 = call fn0(v0, v15, v18, v232, v19), stack_map=[i32 @ ss2+0, i32 @ ss1+0, i32 @ ss0+0] ; v15 = -1476395008, v232 = 40, v19 = 8+;; @0025 v20 = iconst.i32 8+;; @0025 v21 = call fn0(v0, v16, v19, v232, v20), stack_map=[i32 @ ss2+0, i32 @ ss1+0, i32 @ ss0+0] ; v16 = -1476395008, v232 = 40, v20 = 8;; @0025 v6 = iconst.i32 3-;; @0025 v215 = load.i64 notrap aligned readonly can_move v0+8-;; @0025 v21 = load.i64 notrap aligned readonly can_move v215+32-;; @0025 v22 = uextend.i64 v20-;; @0025 v23 = iadd v21, v22-;; @0025 v24 = iconst.i64 24-;; @0025 v25 = iadd v23, v24 ; v24 = 24-;; @0025 store user2 region0 v6, v25 ; v6 = 3-;; @0025 trapz v20, user16-;; @0025 v44 = uadd_overflow_trap v20, v232, user2 ; v232 = 40-;; v169 = load.i32 notrap v220-;; v208 = iconst.i32 1-;; @0025 v51 = band v169, v208 ; v208 = 1-;; @0025 v26 = iconst.i32 0-;; @0025 v53 = icmp eq v169, v26 ; v26 = 0-;; @0025 v54 = uextend.i32 v53-;; @0025 v55 = bor v51, v54-;; @0025 brif v55, block3, block2+;; @0025 v216 = load.i64 notrap aligned readonly can_move v0+8+;; @0025 v22 = load.i64 notrap aligned readonly can_move v216+32+;; @0025 v23 = uextend.i64 v21+;; @0025 v24 = iadd v22, v23+;; @0025 v25 = iconst.i64 24+;; @0025 v26 = iadd v24, v25 ; v25 = 24+;; @0025 store user2 region0 v6, v26 ; v6 = 3+;; @0025 trapz v21, user16+;; @0025 v46 = uadd_overflow_trap v21, v232, user2 ; v232 = 40+;; v176 = load.i32 notrap v220+;; @0025 v53 = iconst.i32 1+;; @0025 v54 = band v176, v53 ; v53 = 1+;; @0025 v27 = iconst.i32 0+;; @0025 v56 = icmp eq v176, v27 ; v27 = 0+;; @0025 v57 = uextend.i32 v56+;; @0025 v58 = bor v54, v57+;; @0025 brif v58, block3, block2;;;; block2:-;; v167 = load.i32 notrap v220-;; @0025 v56 = uextend.i64 v167-;; @0025 v58 = iadd.i64 v21, v56-;; @0025 v59 = iconst.i64 8-;; @0025 v60 = iadd v58, v59 ; v59 = 8-;; @0025 v61 = load.i64 user2 region0 v60-;; @0025 v62 = iconst.i64 1-;; @0025 v63 = iadd v61, v62 ; v62 = 1-;; @0025 store user2 region0 v63, v60+;; v174 = load.i32 notrap v220+;; @0025 v59 = uextend.i64 v174+;; @0025 v61 = iadd.i64 v22, v59+;; @0025 v62 = iconst.i64 8+;; @0025 v63 = iadd v61, v62 ; v62 = 8+;; @0025 v64 = load.i64 user2 region0 v63+;; @0025 v65 = iconst.i64 1+;; @0025 v66 = iadd v64, v65 ; v65 = 1+;; @0025 store user2 region0 v66, v63;; @0025 jump block3;;;; block3:-;; v165 = load.i32 notrap v220-;; @0025 v45 = uextend.i64 v44-;; @0025 v47 = iadd.i64 v21, v45+;; v172 = load.i32 notrap v220+;; @0025 v47 = uextend.i64 v46+;; @0025 v49 = iadd.i64 v22, v47;; v222 = iconst.i64 12-;; @0025 v50 = isub v47, v222 ; v222 = 12-;; @0025 store user2 little region0 v165, v50-;; v325 = iadd.i64 v23, v24 ; v24 = 24-;; @0025 v75 = load.i32 user2 readonly region0 v325+;; @0025 v52 = isub v49, v222 ; v222 = 12+;; @0025 store user2 little region0 v172, v52+;; v325 = iadd.i64 v24, v25 ; v25 = 24+;; @0025 v78 = load.i32 user2 readonly region0 v325;; v326 = iconst.i32 1-;; v327 = icmp ugt v75, v326 ; v326 = 1+;; v327 = icmp ugt v78, v326 ; v326 = 1;; @0025 trapz v327, user17-;; @0025 v78 = uextend.i64 v75+;; @0025 v81 = uextend.i64 v78;; v223 = iconst.i64 2-;; v267 = ishl v78, v223 ; v223 = 2-;; v217 = iconst.i64 32-;; @0025 v80 = ushr v267, v217 ; v217 = 32-;; @0025 trapnz v80, user2+;; v267 = ishl v81, v223 ; v223 = 2+;; @0025 v11 = iconst.i64 32+;; @0025 v84 = ushr v267, v11 ; v11 = 32+;; @0025 trapnz v84, user2;; v244 = iconst.i32 2-;; v274 = ishl v75, v244 ; v244 = 2+;; v274 = ishl v78, v244 ; v244 = 2;; @0025 v7 = iconst.i32 28-;; @0025 v83 = uadd_overflow_trap v274, v7, user2 ; v7 = 28-;; @0025 v87 = uadd_overflow_trap.i32 v20, v83, user2-;; v164 = load.i32 notrap v219-;; v328 = band v164, v326 ; v326 = 1+;; @0025 v87 = uadd_overflow_trap v274, v7, user2 ; v7 = 28+;; @0025 v91 = uadd_overflow_trap.i32 v21, v87, user2+;; v171 = load.i32 notrap v219+;; v328 = band v171, v326 ; v326 = 1;; v329 = iconst.i32 0-;; v330 = icmp eq v164, v329 ; v329 = 0-;; @0025 v97 = uextend.i32 v330-;; @0025 v98 = bor v328, v97-;; @0025 brif v98, block5, block4+;; v330 = icmp eq v171, v329 ; v329 = 0+;; @0025 v102 = uextend.i32 v330+;; @0025 v103 = bor v328, v102+;; @0025 brif v103, block5, block4;;;; block4:-;; v162 = load.i32 notrap v219-;; @0025 v99 = uextend.i64 v162-;; @0025 v101 = iadd.i64 v21, v99+;; v169 = load.i32 notrap v219+;; @0025 v104 = uextend.i64 v169+;; @0025 v106 = iadd.i64 v22, v104;; v331 = iconst.i64 8-;; @0025 v103 = iadd v101, v331 ; v331 = 8-;; @0025 v104 = load.i64 user2 region0 v103+;; @0025 v108 = iadd v106, v331 ; v331 = 8+;; @0025 v109 = load.i64 user2 region0 v108;; v332 = iconst.i64 1-;; @0025 v106 = iadd v104, v332 ; v332 = 1-;; @0025 store user2 region0 v106, v103+;; @0025 v111 = iadd v109, v332 ; v332 = 1+;; @0025 store user2 region0 v111, v108;; @0025 jump block5;;;; block5:-;; v160 = load.i32 notrap v219-;; @0025 v88 = uextend.i64 v87-;; @0025 v90 = iadd.i64 v21, v88-;; v287 = iconst.i32 32-;; @0025 v91 = isub.i32 v83, v287 ; v287 = 32+;; v167 = load.i32 notrap v219;; @0025 v92 = uextend.i64 v91-;; @0025 v93 = isub v90, v92-;; @0025 store user2 little region0 v160, v93-;; v333 = iadd.i64 v23, v24 ; v24 = 24-;; @0025 v118 = load.i32 user2 readonly region0 v333+;; @0025 v94 = iadd.i64 v22, v92+;; v287 = iconst.i32 32+;; @0025 v95 = isub.i32 v87, v287 ; v287 = 32+;; @0025 v96 = uextend.i64 v95+;; @0025 v97 = isub v94, v96+;; @0025 store user2 little region0 v167, v97+;; v333 = iadd.i64 v24, v25 ; v25 = 24+;; @0025 v123 = load.i32 user2 readonly region0 v333;; v334 = iconst.i32 2-;; v335 = icmp ugt v118, v334 ; v334 = 2+;; v335 = icmp ugt v123, v334 ; v334 = 2;; @0025 trapz v335, user17-;; @0025 v121 = uextend.i64 v118+;; @0025 v126 = uextend.i64 v123;; v336 = iconst.i64 2-;; v337 = ishl v121, v336 ; v336 = 2+;; v337 = ishl v126, v336 ; v336 = 2;; v338 = iconst.i64 32;; v339 = ushr v337, v338 ; v338 = 32;; @0025 trapnz v339, user2-;; v340 = ishl v118, v334 ; v334 = 2+;; v340 = ishl v123, v334 ; v334 = 2;; v341 = iconst.i32 28-;; @0025 v126 = uadd_overflow_trap v340, v341, user2 ; v341 = 28-;; @0025 v130 = uadd_overflow_trap.i32 v20, v126, user2-;; v159 = load.i32 notrap v218+;; @0025 v132 = uadd_overflow_trap v340, v341, user2 ; v341 = 28+;; @0025 v136 = uadd_overflow_trap.i32 v21, v132, user2+;; v166 = load.i32 notrap v218;; v342 = iconst.i32 1-;; v343 = band v159, v342 ; v342 = 1+;; v343 = band v166, v342 ; v342 = 1;; v344 = iconst.i32 0-;; v345 = icmp eq v159, v344 ; v344 = 0-;; @0025 v140 = uextend.i32 v345-;; @0025 v141 = bor v343, v140-;; @0025 brif v141, block7, block6+;; v345 = icmp eq v166, v344 ; v344 = 0+;; @0025 v147 = uextend.i32 v345+;; @0025 v148 = bor v343, v147+;; @0025 brif v148, block7, block6;;;; block6:-;; v157 = load.i32 notrap v218-;; @0025 v142 = uextend.i64 v157-;; @0025 v144 = iadd.i64 v21, v142+;; v164 = load.i32 notrap v218+;; @0025 v149 = uextend.i64 v164+;; @0025 v151 = iadd.i64 v22, v149;; v346 = iconst.i64 8-;; @0025 v146 = iadd v144, v346 ; v346 = 8-;; @0025 v147 = load.i64 user2 region0 v146+;; @0025 v153 = iadd v151, v346 ; v346 = 8+;; @0025 v154 = load.i64 user2 region0 v153;; v347 = iconst.i64 1-;; @0025 v149 = iadd v147, v347 ; v347 = 1-;; @0025 store user2 region0 v149, v146+;; @0025 v156 = iadd v154, v347 ; v347 = 1+;; @0025 store user2 region0 v156, v153;; @0025 jump block7;;;; block7:-;; v155 = load.i32 notrap v218-;; @0025 v131 = uextend.i64 v130-;; @0025 v133 = iadd.i64 v21, v131+;; v162 = load.i32 notrap v218+;; @0025 v137 = uextend.i64 v136+;; @0025 v139 = iadd.i64 v22, v137;; v319 = iconst.i32 36-;; @0025 v134 = isub.i32 v126, v319 ; v319 = 36-;; @0025 v135 = uextend.i64 v134-;; @0025 v136 = isub v133, v135-;; @0025 store user2 little region0 v155, v136+;; @0025 v140 = isub.i32 v132, v319 ; v319 = 36+;; @0025 v141 = uextend.i64 v140+;; @0025 v142 = isub v139, v141+;; @0025 store user2 little region0 v162, v142;; @0029 jump block1;;;; block1:-;; @0029 return v20+;; @0029 return v21;; }diff --git a/tests/disas/gc/drc/array-new-fixed.wat b/tests/disas/gc/drc/array-new-fixed.watindex 29edc9cc9b..5eb856aee2 100644--- a/tests/disas/gc/drc/array-new-fixed.wat+++ b/tests/disas/gc/drc/array-new-fixed.wat@@ -23,67 +23,67 @@;; stack_limit = gv2;;;; block0(v0: i64, v1: i64, v2: i64, v3: i64, v4: i64):-;; @0025 v15 = iconst.i32 -1476395008-;; @0025 v17 = load.i64 notrap aligned readonly can_move v0+40-;; @0025 v18 = load.i32 notrap aligned readonly can_move v17+;; @0025 v16 = iconst.i32 -1476395008+;; @0025 v18 = load.i64 notrap aligned readonly can_move v0+40+;; @0025 v19 = load.i32 notrap aligned readonly can_move v18;; v129 = iconst.i32 56-;; @0025 v19 = iconst.i32 8-;; @0025 v20 = call fn0(v0, v15, v18, v129, v19) ; v15 = -1476395008, v129 = 56, v19 = 8+;; @0025 v20 = iconst.i32 8+;; @0025 v21 = call fn0(v0, v16, v19, v129, v20) ; v16 = -1476395008, v129 = 56, v20 = 8;; @0025 v6 = iconst.i32 3-;; @0025 v116 = load.i64 notrap aligned readonly can_move v0+8-;; @0025 v21 = load.i64 notrap aligned readonly can_move v116+32-;; @0025 v22 = uextend.i64 v20-;; @0025 v23 = iadd v21, v22+;; @0025 v117 = load.i64 notrap aligned readonly can_move v0+8+;; @0025 v22 = load.i64 notrap aligned readonly can_move v117+32+;; @0025 v23 = uextend.i64 v21+;; @0025 v24 = iadd v22, v23;; v120 = iconst.i64 24-;; @0025 v25 = iadd v23, v120 ; v120 = 24-;; @0025 store user2 region0 v6, v25 ; v6 = 3-;; @0025 trapz v20, user16-;; @0025 v44 = uadd_overflow_trap v20, v129, user2 ; v129 = 56-;; @0025 v45 = uextend.i64 v44-;; @0025 v47 = iadd v21, v45-;; @0025 v50 = isub v47, v120 ; v120 = 24-;; @0025 store user2 little region0 v2, v50-;; @0025 v57 = load.i32 user2 readonly region0 v25-;; @0025 v51 = iconst.i32 1-;; v160 = icmp ugt v57, v51 ; v51 = 1+;; @0025 v26 = iadd v24, v120 ; v120 = 24+;; @0025 store user2 region0 v6, v26 ; v6 = 3+;; @0025 trapz v21, user16+;; @0025 v46 = uadd_overflow_trap v21, v129, user2 ; v129 = 56+;; @0025 v47 = uextend.i64 v46+;; @0025 v49 = iadd v22, v47+;; @0025 v52 = isub v49, v120 ; v120 = 24+;; @0025 store user2 little region0 v2, v52+;; @0025 v59 = load.i32 user2 readonly region0 v26+;; @0025 v53 = iconst.i32 1+;; v160 = icmp ugt v59, v53 ; v53 = 1;; @0025 trapz v160, user17-;; @0025 v60 = uextend.i64 v57+;; @0025 v62 = uextend.i64 v59;; v119 = iconst.i64 3-;; v162 = ishl v60, v119 ; v119 = 3-;; v118 = iconst.i64 32-;; @0025 v62 = ushr v162, v118 ; v118 = 32-;; @0025 trapnz v62, user2-;; v169 = ishl v57, v6 ; v6 = 3+;; v162 = ishl v62, v119 ; v119 = 3+;; @0025 v11 = iconst.i64 32+;; @0025 v65 = ushr v162, v11 ; v11 = 32+;; @0025 trapnz v65, user2+;; v169 = ishl v59, v6 ; v6 = 3;; @0025 v7 = iconst.i32 32-;; @0025 v65 = uadd_overflow_trap v169, v7, user2 ; v7 = 32-;; @0025 v69 = uadd_overflow_trap v20, v65, user2-;; @0025 v70 = uextend.i64 v69-;; @0025 v72 = iadd v21, v70+;; @0025 v68 = uadd_overflow_trap v169, v7, user2 ; v7 = 32+;; @0025 v72 = uadd_overflow_trap v21, v68, user2+;; @0025 v73 = uextend.i64 v72+;; @0025 v75 = iadd v22, v73;; v182 = iconst.i32 40-;; @0025 v73 = isub v65, v182 ; v182 = 40-;; @0025 v74 = uextend.i64 v73-;; @0025 v75 = isub v72, v74-;; @0025 store user2 little region0 v3, v75-;; @0025 v82 = load.i32 user2 readonly region0 v25-;; @0025 v76 = iconst.i32 2-;; v188 = icmp ugt v82, v76 ; v76 = 2+;; @0025 v76 = isub v68, v182 ; v182 = 40+;; @0025 v77 = uextend.i64 v76+;; @0025 v78 = isub v75, v77+;; @0025 store user2 little region0 v3, v78+;; @0025 v85 = load.i32 user2 readonly region0 v26+;; @0025 v79 = iconst.i32 2+;; v188 = icmp ugt v85, v79 ; v79 = 2;; @0025 trapz v188, user17-;; @0025 v85 = uextend.i64 v82-;; v190 = ishl v85, v119 ; v119 = 3-;; @0025 v87 = ushr v190, v118 ; v118 = 32-;; @0025 trapnz v87, user2-;; v197 = ishl v82, v6 ; v6 = 3-;; @0025 v90 = uadd_overflow_trap v197, v7, user2 ; v7 = 32-;; @0025 v94 = uadd_overflow_trap v20, v90, user2-;; @0025 v95 = uextend.i64 v94-;; @0025 v97 = iadd v21, v95-;; v215 = iconst.i32 48-;; @0025 v98 = isub v90, v215 ; v215 = 48+;; @0025 v88 = uextend.i64 v85+;; v190 = ishl v88, v119 ; v119 = 3+;; @0025 v91 = ushr v190, v11 ; v11 = 32+;; @0025 trapnz v91, user2+;; v197 = ishl v85, v6 ; v6 = 3+;; @0025 v94 = uadd_overflow_trap v197, v7, user2 ; v7 = 32+;; @0025 v98 = uadd_overflow_trap v21, v94, user2;; @0025 v99 = uextend.i64 v98-;; @0025 v100 = isub v97, v99-;; @0025 store user2 little region0 v4, v100+;; @0025 v101 = iadd v22, v99+;; v215 = iconst.i32 48+;; @0025 v102 = isub v94, v215 ; v215 = 48+;; @0025 v103 = uextend.i64 v102+;; @0025 v104 = isub v101, v103+;; @0025 store user2 little region0 v4, v104;; @0029 jump block1;;;; block1:-;; @0029 return v20+;; @0029 return v21;; }diff --git a/tests/disas/gc/drc/array-new.wat b/tests/disas/gc/drc/array-new.watindex c6a5bb6269..60ff650f38 100644--- a/tests/disas/gc/drc/array-new.wat+++ b/tests/disas/gc/drc/array-new.wat@@ -26,48 +26,48 @@;; @0022 v6 = uextend.i64 v3;; v73 = iconst.i64 3;; v74 = ishl v6, v73 ; v73 = 3-;; v72 = iconst.i64 32-;; @0022 v9 = ushr v74, v72 ; v72 = 32-;; @0022 trapnz v9, user18+;; @0022 v9 = iconst.i64 32+;; @0022 v10 = ushr v74, v9 ; v9 = 32+;; @0022 trapnz v10, user18;; @0022 v5 = iconst.i32 32;; v80 = iconst.i32 3;; v81 = ishl v3, v80 ; v80 = 3-;; @0022 v11 = uadd_overflow_trap v5, v81, user18 ; v5 = 32-;; @0022 v13 = iconst.i32 -1476395008-;; @0022 v15 = load.i64 notrap aligned readonly can_move v0+40-;; @0022 v16 = load.i32 notrap aligned readonly can_move v15+;; @0022 v12 = uadd_overflow_trap v5, v81, user18 ; v5 = 32+;; @0022 v14 = iconst.i32 -1476395008+;; @0022 v16 = load.i64 notrap aligned readonly can_move v0+40+;; @0022 v17 = load.i32 notrap aligned readonly can_move v16;; v78 = iconst.i32 8-;; @0022 v18 = call fn0(v0, v13, v16, v11, v78) ; v13 = -1476395008, v78 = 8-;; @0022 v70 = load.i64 notrap aligned readonly can_move v0+8-;; @0022 v19 = load.i64 notrap aligned readonly can_move v70+32-;; @0022 v20 = uextend.i64 v18-;; @0022 v21 = iadd v19, v20-;; @0022 v22 = iconst.i64 24-;; @0022 v23 = iadd v21, v22 ; v22 = 24-;; @0022 store user2 region0 v3, v23-;; @0022 trapz v18, user16-;; @0022 v51 = load.i64 notrap aligned v70+40-;; @0022 v42 = iadd v21, v72 ; v72 = 32-;; @0022 v53 = uadd_overflow_trap v42, v74, user2-;; @0022 v52 = iadd v19, v51-;; @0022 v54 = icmp ugt v53, v52-;; @0022 trapnz v54, user2+;; @0022 v19 = call fn0(v0, v14, v17, v12, v78) ; v14 = -1476395008, v78 = 8+;; @0022 v71 = load.i64 notrap aligned readonly can_move v0+8+;; @0022 v20 = load.i64 notrap aligned readonly can_move v71+32+;; @0022 v21 = uextend.i64 v19+;; @0022 v22 = iadd v20, v21+;; @0022 v23 = iconst.i64 24+;; @0022 v24 = iadd v22, v23 ; v23 = 24+;; @0022 store user2 region0 v3, v24+;; @0022 trapz v19, user16+;; @0022 v52 = load.i64 notrap aligned v71+40+;; @0022 v43 = iadd v22, v9 ; v9 = 32+;; @0022 v54 = uadd_overflow_trap v43, v74, user2+;; @0022 v53 = iadd v20, v52+;; @0022 v55 = icmp ugt v54, v53+;; @0022 trapnz v55, user2;; v84 = iconst.i64 0-;; @0022 v57 = icmp eq v6, v84 ; v84 = 0+;; @0022 v58 = icmp eq v6, v84 ; v84 = 0;; @0022 v7 = iconst.i64 8-;; @0022 v55 = iadd v42, v74-;; @0022 brif v57, block3, block2(v42)+;; @0022 v56 = iadd v43, v74+;; @0022 brif v58, block3, block2(v43);;-;; block2(v58: i64):-;; @0022 store.i64 user2 little region0 v2, v58+;; block2(v59: i64):+;; @0022 store.i64 user2 little region0 v2, v59;; v99 = iconst.i64 8-;; v100 = iadd v58, v99 ; v99 = 8-;; @0022 v61 = icmp eq v100, v55-;; @0022 brif v61, block3, block2(v100)+;; v100 = iadd v59, v99 ; v99 = 8+;; @0022 v62 = icmp eq v100, v56+;; @0022 brif v62, block3, block2(v100);;;; block3:;; @0025 jump block1;;;; block1:-;; @0025 return v18+;; @0025 return v19;; }diff --git a/tests/disas/gc/drc/array-set.wat b/tests/disas/gc/drc/array-set.watindex cc10d9afe8..4b53582262 100644--- a/tests/disas/gc/drc/array-set.wat+++ b/tests/disas/gc/drc/array-set.wat@@ -34,22 +34,22 @@;; @0024 v13 = uextend.i64 v10;; v34 = iconst.i64 3;; v35 = ishl v13, v34 ; v34 = 3-;; v31 = iconst.i64 32-;; @0024 v15 = ushr v35, v31 ; v31 = 32-;; @0024 trapnz v15, user2+;; @0024 v15 = iconst.i64 32+;; @0024 v16 = ushr v35, v15 ; v15 = 32+;; @0024 trapnz v16, user2;; v44 = iconst.i32 3;; v45 = ishl v10, v44 ; v44 = 3-;; @0024 v17 = iconst.i32 32-;; @0024 v18 = uadd_overflow_trap v45, v17, user2 ; v17 = 32-;; @0024 v22 = uadd_overflow_trap v2, v18, user2-;; @0024 v23 = uextend.i64 v22-;; @0024 v25 = iadd v6, v23+;; @0024 v18 = iconst.i32 32+;; @0024 v19 = uadd_overflow_trap v45, v18, user2 ; v18 = 32+;; @0024 v23 = uadd_overflow_trap v2, v19, user2+;; @0024 v24 = uextend.i64 v23+;; @0024 v26 = iadd v6, v24;; v51 = ishl v3, v44 ; v44 = 3-;; @0024 v21 = iadd v51, v17 ; v17 = 32-;; @0024 v26 = isub v18, v21-;; @0024 v27 = uextend.i64 v26-;; @0024 v28 = isub v25, v27-;; @0024 store user2 little region0 v4, v28+;; @0024 v22 = iadd v51, v18 ; v18 = 32+;; @0024 v27 = isub v19, v22+;; @0024 v28 = uextend.i64 v27+;; @0024 v29 = isub v26, v28+;; @0024 store user2 little region0 v4, v29;; @0027 jump block1;;;; block1:diff --git a/tests/disas/gc/drc/call-indirect-and-subtyping.wat b/tests/disas/gc/drc/call-indirect-and-subtyping.watindex 143e5e36e6..5bb00c6247 100644--- a/tests/disas/gc/drc/call-indirect-and-subtyping.wat+++ b/tests/disas/gc/drc/call-indirect-and-subtyping.wat@@ -33,40 +33,40 @@;; block0(v0: i64, v1: i64, v2: i32):;; @005c v3 = iconst.i32 2;; @005c v4 = icmp uge v2, v3 ; v3 = 2-;; @005c v9 = iconst.i64 0+;; @005c v10 = iconst.i64 0;; @005c v6 = load.i64 notrap aligned readonly can_move v0+112;; @005c v5 = uextend.i64 v2-;; v30 = iconst.i64 3-;; @005c v7 = ishl v5, v30 ; v30 = 3-;; @005c v8 = iadd v6, v7-;; @005c v10 = select_spectre_guard v4, v9, v8 ; v9 = 0-;; @005c v11 = load.i64 user6 aligned region0 v10-;; v29 = iconst.i64 -2-;; @005c v12 = band v11, v29 ; v29 = -2-;; @005c brif v11, block3(v12), block2+;; @005c v7 = iconst.i64 3+;; @005c v8 = ishl v5, v7 ; v7 = 3+;; @005c v9 = iadd v6, v8+;; @005c v11 = select_spectre_guard v4, v10, v9 ; v10 = 0+;; @005c v12 = load.i64 user6 aligned region0 v11+;; @005c v13 = iconst.i64 -2+;; @005c v14 = band v12, v13 ; v13 = -2+;; @005c brif v12, block3(v14), block2;;;; block2 cold:-;; @005c v14 = iconst.i32 0-;; @005c v17 = call fn0(v0, v14, v5) ; v14 = 0-;; @005c jump block3(v17)+;; @005c v16 = iconst.i32 0+;; @005c v19 = call fn0(v0, v16, v5) ; v16 = 0+;; @005c jump block3(v19);;-;; block3(v13: i64):-;; @005c v21 = load.i32 user7 aligned readonly v13+16-;; @005c v19 = load.i64 notrap aligned readonly can_move v0+40-;; @005c v20 = load.i32 notrap aligned readonly can_move v19-;; @005c v22 = icmp eq v21, v20-;; @005c v23 = uextend.i32 v22-;; @005c brif v23, block5(v23), block4+;; block3(v15: i64):+;; @005c v23 = load.i32 user7 aligned readonly v15+16+;; @005c v21 = load.i64 notrap aligned readonly can_move v0+40+;; @005c v22 = load.i32 notrap aligned readonly can_move v21+;; @005c v24 = icmp eq v23, v22+;; @005c v25 = uextend.i32 v24+;; @005c brif v25, block5(v25), block4;;;; block4:-;; @005c v25 = call fn1(v0, v21, v20)-;; @005c jump block5(v25)+;; @005c v27 = call fn1(v0, v23, v22)+;; @005c jump block5(v27);;-;; block5(v26: i32):-;; @005c trapz v26, user8-;; @005c v27 = load.i64 notrap aligned readonly v13+8-;; @005c v28 = load.i64 notrap aligned readonly v13+24-;; @005c call_indirect sig0, v27(v28, v0)+;; block5(v28: i32):+;; @005c trapz v28, user8+;; @005c v29 = load.i64 notrap aligned readonly v15+8+;; @005c v30 = load.i64 notrap aligned readonly v15+24+;; @005c call_indirect sig0, v29(v30, v0);; @005f jump block1;;;; block1:diff --git a/tests/disas/gc/drc/externref-globals.wat b/tests/disas/gc/drc/externref-globals.watindex ed2fcd3923..0b9003f031 100644--- a/tests/disas/gc/drc/externref-globals.wat+++ b/tests/disas/gc/drc/externref-globals.wat@@ -33,64 +33,64 @@;; @0034 v6 = load.i32 notrap aligned v5;; v92 = stack_addr.i64 ss0;; store notrap v6, v92-;; v90 = iconst.i32 1-;; @0034 v7 = band v6, v90 ; v90 = 1-;; @0034 v8 = iconst.i32 0-;; @0034 v9 = icmp eq v6, v8 ; v8 = 0-;; @0034 v10 = uextend.i32 v9-;; @0034 v11 = bor v7, v10-;; @0034 brif v11, block4, block2+;; @0034 v7 = iconst.i32 1+;; @0034 v8 = band v6, v7 ; v7 = 1+;; @0034 v9 = iconst.i32 0+;; @0034 v10 = icmp eq v6, v9 ; v9 = 0+;; @0034 v11 = uextend.i32 v10+;; @0034 v12 = bor v8, v11+;; @0034 brif v12, block4, block2;;;; block2:-;; @0034 v86 = load.i64 notrap aligned readonly can_move v0+8-;; @0034 v13 = load.i64 notrap aligned readonly can_move v86+32-;; @0034 v12 = uextend.i64 v6-;; @0034 v14 = iadd v13, v12-;; @0034 v15 = load.i32 user2 region0 v14-;; @0034 v16 = iconst.i32 2-;; @0034 v17 = band v15, v16 ; v16 = 2-;; @0034 brif v17, block4, block3+;; @0034 v87 = load.i64 notrap aligned readonly can_move v0+8+;; @0034 v14 = load.i64 notrap aligned readonly can_move v87+32+;; @0034 v13 = uextend.i64 v6+;; @0034 v15 = iadd v14, v13+;; @0034 v16 = load.i32 user2 region0 v15+;; @0034 v17 = iconst.i32 2+;; @0034 v18 = band v16, v17 ; v17 = 2+;; @0034 brif v18, block4, block3;;;; block3:-;; @0034 v19 = load.i64 notrap aligned readonly can_move region1 v0+32-;; @0034 v20 = load.i32 user2 region0 v19-;; @0034 v24 = iconst.i64 16-;; @0034 v25 = iadd.i64 v14, v24 ; v24 = 16-;; @0034 store user2 region0 v20, v25+;; @0034 v20 = load.i64 notrap aligned readonly can_move region1 v0+32+;; @0034 v21 = load.i32 user2 region0 v20+;; @0034 v25 = iconst.i64 16+;; @0034 v26 = iadd.i64 v15, v25 ; v25 = 16+;; @0034 store user2 region0 v21, v26;; v93 = iconst.i32 2-;; v94 = bor.i32 v15, v93 ; v93 = 2-;; @0034 store user2 region0 v94, v14-;; @0034 v34 = iconst.i64 8-;; @0034 v35 = iadd.i64 v14, v34 ; v34 = 8-;; @0034 v36 = load.i64 user2 region0 v35-;; @0034 v37 = iconst.i64 1-;; @0034 v38 = iadd v36, v37 ; v37 = 1-;; @0034 store user2 region0 v38, v35-;; @0034 store.i32 user2 region0 v6, v19-;; @0034 v46 = load.i32 notrap aligned v19+4+;; v94 = bor.i32 v16, v93 ; v93 = 2+;; @0034 store user2 region0 v94, v15+;; @0034 v35 = iconst.i64 8+;; @0034 v36 = iadd.i64 v15, v35 ; v35 = 8+;; @0034 v37 = load.i64 user2 region0 v36+;; @0034 v38 = iconst.i64 1+;; @0034 v39 = iadd v37, v38 ; v38 = 1+;; @0034 store user2 region0 v39, v36+;; @0034 store.i32 user2 region0 v6, v20+;; @0034 v47 = load.i32 notrap aligned v20+4;; v95 = iconst.i32 1-;; v96 = iadd v46, v95 ; v95 = 1-;; @0034 store notrap aligned v96, v19+4-;; @0034 v56 = load.i32 notrap aligned v19+8-;; @0034 v57 = iadd v56, v56-;; @0034 v58 = iconst.i32 1024-;; @0034 v59 = umax v57, v58 ; v58 = 1024-;; @0034 v60 = icmp uge v96, v59-;; @0034 brif v60, block5, block6+;; v96 = iadd v47, v95 ; v95 = 1+;; @0034 store notrap aligned v96, v20+4+;; @0034 v57 = load.i32 notrap aligned v20+8+;; @0034 v58 = iadd v57, v57+;; @0034 v59 = iconst.i32 1024+;; @0034 v60 = umax v58, v59 ; v59 = 1024+;; @0034 v61 = icmp uge v96, v60+;; @0034 brif v61, block5, block6;;;; block5 cold:-;; @0034 v62 = call fn0(v0), stack_map=[i32 @ ss0+0]+;; @0034 v63 = call fn0(v0), stack_map=[i32 @ ss0+0];; @0034 jump block6;;;; block6:;; @0034 jump block4;;;; block4:-;; v63 = load.i32 notrap v92+;; v64 = load.i32 notrap v92;; @0036 jump block1;;;; block1:-;; @0036 return v63+;; @0036 return v64;; };;;; function u0:1(i64 vmctx, i64, i32) tail {@@ -110,25 +110,25 @@;; @003b v4 = iconst.i64 48;; @003b v5 = iadd v0, v4 ; v4 = 48;; @003b v6 = load.i32 notrap aligned v5-;; v55 = iconst.i32 1-;; @003b v7 = band v2, v55 ; v55 = 1-;; @003b v8 = iconst.i32 0-;; @003b v9 = icmp eq v2, v8 ; v8 = 0-;; @003b v10 = uextend.i32 v9-;; @003b v11 = bor v7, v10-;; @003b brif v11, block3, block2+;; @003b v7 = iconst.i32 1+;; @003b v8 = band v2, v7 ; v7 = 1+;; @003b v9 = iconst.i32 0+;; @003b v10 = icmp eq v2, v9 ; v9 = 0+;; @003b v11 = uextend.i32 v10+;; @003b v12 = bor v8, v11+;; @003b brif v12, block3, block2;;;; block2:-;; @003b v53 = load.i64 notrap aligned readonly can_move v0+8-;; @003b v13 = load.i64 notrap aligned readonly can_move v53+32-;; @003b v12 = uextend.i64 v2-;; @003b v14 = iadd v13, v12-;; @003b v15 = iconst.i64 8-;; @003b v16 = iadd v14, v15 ; v15 = 8-;; @003b v17 = load.i64 user2 region0 v16-;; @003b v18 = iconst.i64 1-;; @003b v19 = iadd v17, v18 ; v18 = 1-;; @003b store user2 region0 v19, v16+;; @003b v54 = load.i64 notrap aligned readonly can_move v0+8+;; @003b v14 = load.i64 notrap aligned readonly can_move v54+32+;; @003b v13 = uextend.i64 v2+;; @003b v15 = iadd v14, v13+;; @003b v16 = iconst.i64 8+;; @003b v17 = iadd v15, v16 ; v16 = 8+;; @003b v18 = load.i64 user2 region0 v17+;; @003b v19 = iconst.i64 1+;; @003b v20 = iadd v18, v19 ; v19 = 1+;; @003b store user2 region0 v20, v17;; @003b jump block3;;;; block3:@@ -138,20 +138,20 @@;; v70 = band.i32 v6, v69 ; v69 = 1;; v71 = iconst.i32 0;; v72 = icmp.i32 eq v6, v71 ; v71 = 0-;; @003b v28 = uextend.i32 v72-;; @003b v29 = bor v70, v28-;; @003b brif v29, block7, block4+;; @003b v30 = uextend.i32 v72+;; @003b v31 = bor v70, v30+;; @003b brif v31, block7, block4;;;; block4:;; v73 = load.i64 notrap aligned readonly can_move v0+8;; v74 = load.i64 notrap aligned readonly can_move v73+32-;; @003b v30 = uextend.i64 v6-;; @003b v32 = iadd v74, v30+;; @003b v32 = uextend.i64 v6+;; @003b v34 = iadd v74, v32;; v75 = iconst.i64 8-;; @003b v34 = iadd v32, v75 ; v75 = 8-;; @003b v35 = load.i64 user2 region0 v34+;; @003b v36 = iadd v34, v75 ; v75 = 8+;; @003b v37 = load.i64 user2 region0 v36;; v76 = iconst.i64 1-;; v66 = icmp eq v35, v76 ; v76 = 1+;; v66 = icmp eq v37, v76 ; v76 = 1;; @003b brif v66, block5, block6;;;; block5 cold:@@ -159,10 +159,10 @@;; @003b jump block7;;;; block6:-;; @003b v36 = iconst.i64 -1-;; @003b v37 = iadd.i64 v35, v36 ; v36 = -1-;; v77 = iadd.i64 v32, v75 ; v75 = 8-;; @003b store user2 region0 v37, v77+;; @003b v38 = iconst.i64 -1+;; @003b v39 = iadd.i64 v37, v38 ; v38 = -1+;; v77 = iadd.i64 v34, v75 ; v75 = 8+;; @003b store user2 region0 v39, v77;; @003b jump block7;;;; block7:diff --git a/tests/disas/gc/drc/multiple-array-get.wat b/tests/disas/gc/drc/multiple-array-get.watindex 0bfb6df2e6..5f6e5042c7 100644--- a/tests/disas/gc/drc/multiple-array-get.wat+++ b/tests/disas/gc/drc/multiple-array-get.wat@@ -35,32 +35,32 @@;; @0024 v15 = uextend.i64 v12;; v67 = iconst.i64 3;; v68 = ishl v15, v67 ; v67 = 3-;; v64 = iconst.i64 32-;; @0024 v17 = ushr v68, v64 ; v64 = 32-;; @0024 trapnz v17, user2+;; @0024 v17 = iconst.i64 32+;; @0024 v18 = ushr v68, v17 ; v17 = 32+;; @0024 trapnz v18, user2;; v77 = iconst.i32 3;; v78 = ishl v12, v77 ; v77 = 3-;; @0024 v19 = iconst.i32 32-;; @0024 v20 = uadd_overflow_trap v78, v19, user2 ; v19 = 32-;; @0024 v24 = uadd_overflow_trap v2, v20, user2-;; @0024 v25 = uextend.i64 v24-;; @0024 v27 = iadd v8, v25+;; @0024 v20 = iconst.i32 32+;; @0024 v21 = uadd_overflow_trap v78, v20, user2 ; v20 = 32+;; @0024 v25 = uadd_overflow_trap v2, v21, user2+;; @0024 v26 = uextend.i64 v25+;; @0024 v28 = iadd v8, v26;; v84 = ishl v3, v77 ; v77 = 3-;; @0024 v23 = iadd v84, v19 ; v19 = 32-;; @0024 v28 = isub v20, v23-;; @0024 v29 = uextend.i64 v28-;; @0024 v30 = isub v27, v29-;; @0024 v31 = load.i64 user2 little region0 v30-;; @002b v38 = icmp ult v4, v12-;; @002b trapz v38, user17+;; @0024 v24 = iadd v84, v20 ; v20 = 32+;; @0024 v29 = isub v21, v24+;; @0024 v30 = uextend.i64 v29+;; @0024 v31 = isub v28, v30+;; @0024 v32 = load.i64 user2 little region0 v31+;; @002b v39 = icmp ult v4, v12+;; @002b trapz v39, user17;; v86 = ishl v4, v77 ; v77 = 3-;; @002b v48 = iadd v86, v19 ; v19 = 32-;; @002b v53 = isub v20, v48-;; @002b v54 = uextend.i64 v53-;; @002b v55 = isub v27, v54-;; @002b v56 = load.i64 user2 little region0 v55+;; @002b v50 = iadd v86, v20 ; v20 = 32+;; @002b v55 = isub v21, v50+;; @002b v56 = uextend.i64 v55+;; @002b v57 = isub v28, v56+;; @002b v58 = load.i64 user2 little region0 v57;; @002e jump block1;;;; block1:-;; @002e return v31, v56+;; @002e return v32, v58;; }diff --git a/tests/disas/gc/drc/struct-get.wat b/tests/disas/gc/drc/struct-get.watindex 1f1775a2db..64c61fab08 100644--- a/tests/disas/gc/drc/struct-get.wat+++ b/tests/disas/gc/drc/struct-get.wat@@ -129,60 +129,60 @@;; @004e v9 = load.i32 user2 little region0 v8;; v95 = stack_addr.i64 ss0;; store notrap v9, v95-;; v93 = iconst.i32 1-;; @004e v10 = band v9, v93 ; v93 = 1-;; @004e v11 = iconst.i32 0-;; @004e v12 = icmp eq v9, v11 ; v11 = 0-;; @004e v13 = uextend.i32 v12-;; @004e v14 = bor v10, v13-;; @004e brif v14, block4, block2+;; @004e v10 = iconst.i32 1+;; @004e v11 = band v9, v10 ; v10 = 1+;; @004e v12 = iconst.i32 0+;; @004e v13 = icmp eq v9, v12 ; v12 = 0+;; @004e v14 = uextend.i32 v13+;; @004e v15 = bor v11, v14+;; @004e brif v15, block4, block2;;;; block2:-;; @004e v15 = uextend.i64 v9-;; @004e v17 = iadd.i64 v5, v15-;; @004e v18 = load.i32 user2 region0 v17-;; @004e v19 = iconst.i32 2-;; @004e v20 = band v18, v19 ; v19 = 2-;; @004e brif v20, block4, block3+;; @004e v16 = uextend.i64 v9+;; @004e v18 = iadd.i64 v5, v16+;; @004e v19 = load.i32 user2 region0 v18+;; @004e v20 = iconst.i32 2+;; @004e v21 = band v19, v20 ; v20 = 2+;; @004e brif v21, block4, block3;;;; block3:-;; @004e v22 = load.i64 notrap aligned readonly can_move region1 v0+32-;; @004e v23 = load.i32 user2 region0 v22-;; @004e v27 = iconst.i64 16-;; @004e v28 = iadd.i64 v17, v27 ; v27 = 16-;; @004e store user2 region0 v23, v28+;; @004e v23 = load.i64 notrap aligned readonly can_move region1 v0+32+;; @004e v24 = load.i32 user2 region0 v23+;; @004e v28 = iconst.i64 16+;; @004e v29 = iadd.i64 v18, v28 ; v28 = 16+;; @004e store user2 region0 v24, v29;; v98 = iconst.i32 2-;; v99 = bor.i32 v18, v98 ; v98 = 2-;; @004e store user2 region0 v99, v17-;; @004e v37 = iconst.i64 8-;; @004e v38 = iadd.i64 v17, v37 ; v37 = 8-;; @004e v39 = load.i64 user2 region0 v38-;; @004e v40 = iconst.i64 1-;; @004e v41 = iadd v39, v40 ; v40 = 1-;; @004e store user2 region0 v41, v38-;; @004e store.i32 user2 region0 v9, v22-;; @004e v49 = load.i32 notrap aligned v22+4+;; v99 = bor.i32 v19, v98 ; v98 = 2+;; @004e store user2 region0 v99, v18+;; @004e v38 = iconst.i64 8+;; @004e v39 = iadd.i64 v18, v38 ; v38 = 8+;; @004e v40 = load.i64 user2 region0 v39+;; @004e v41 = iconst.i64 1+;; @004e v42 = iadd v40, v41 ; v41 = 1+;; @004e store user2 region0 v42, v39+;; @004e store.i32 user2 region0 v9, v23+;; @004e v50 = load.i32 notrap aligned v23+4;; v100 = iconst.i32 1-;; v101 = iadd v49, v100 ; v100 = 1-;; @004e store notrap aligned v101, v22+4-;; @004e v59 = load.i32 notrap aligned v22+8-;; @004e v60 = iadd v59, v59-;; @004e v61 = iconst.i32 1024-;; @004e v62 = umax v60, v61 ; v61 = 1024-;; @004e v63 = icmp uge v101, v62-;; @004e brif v63, block5, block6+;; v101 = iadd v50, v100 ; v100 = 1+;; @004e store notrap aligned v101, v23+4+;; @004e v60 = load.i32 notrap aligned v23+8+;; @004e v61 = iadd v60, v60+;; @004e v62 = iconst.i32 1024+;; @004e v63 = umax v61, v62 ; v62 = 1024+;; @004e v64 = icmp uge v101, v63+;; @004e brif v64, block5, block6;;;; block5 cold:-;; @004e v65 = call fn0(v0), stack_map=[i32 @ ss0+0]+;; @004e v66 = call fn0(v0), stack_map=[i32 @ ss0+0];; @004e jump block6;;;; block6:;; @004e jump block4;;;; block4:-;; v66 = load.i32 notrap v95+;; v67 = load.i32 notrap v95;; @0052 jump block1;;;; block1:-;; @0052 return v66+;; @0052 return v67;; }diff --git a/tests/disas/gc/drc/struct-new.wat b/tests/disas/gc/drc/struct-new.watindex 6a8d38cd1e..f551b20cc7 100644--- a/tests/disas/gc/drc/struct-new.wat+++ b/tests/disas/gc/drc/struct-new.wat@@ -44,30 +44,30 @@;; @002a v19 = iconst.i64 28;; @002a v20 = iadd v16, v19 ; v19 = 28;; @002a istore8 user2 little region0 v3, v20-;; v45 = load.i32 notrap v58-;; v54 = iconst.i32 1-;; @002a v23 = band v45, v54 ; v54 = 1-;; @002a v24 = iconst.i32 0-;; @002a v25 = icmp eq v45, v24 ; v24 = 0-;; @002a v26 = uextend.i32 v25-;; @002a v27 = bor v23, v26-;; @002a brif v27, block3, block2+;; v46 = load.i32 notrap v58+;; @002a v23 = iconst.i32 1+;; @002a v24 = band v46, v23 ; v23 = 1+;; @002a v25 = iconst.i32 0+;; @002a v26 = icmp eq v46, v25 ; v25 = 0+;; @002a v27 = uextend.i32 v26+;; @002a v28 = bor v24, v27+;; @002a brif v28, block3, block2;;;; block2:-;; @002a v28 = uextend.i64 v45-;; @002a v30 = iadd.i64 v14, v28-;; @002a v31 = iconst.i64 8-;; @002a v32 = iadd v30, v31 ; v31 = 8-;; @002a v33 = load.i64 user2 region0 v32-;; @002a v34 = iconst.i64 1-;; @002a v35 = iadd v33, v34 ; v34 = 1-;; @002a store user2 region0 v35, v32+;; @002a v29 = uextend.i64 v46+;; @002a v31 = iadd.i64 v14, v29+;; @002a v32 = iconst.i64 8+;; @002a v33 = iadd v31, v32 ; v32 = 8+;; @002a v34 = load.i64 user2 region0 v33+;; @002a v35 = iconst.i64 1+;; @002a v36 = iadd v34, v35 ; v35 = 1+;; @002a store user2 region0 v36, v33;; @002a jump block3;;;; block3:;; @002a v21 = iconst.i64 32;; @002a v22 = iadd.i64 v16, v21 ; v21 = 32-;; @002a store.i32 user2 little region0 v45, v22+;; @002a store.i32 user2 little region0 v46, v22;; @002d jump block1;;;; block1:diff --git a/tests/disas/gc/drc/struct-set.wat b/tests/disas/gc/drc/struct-set.watindex d1b3b5fa62..54b3da2fc6 100644--- a/tests/disas/gc/drc/struct-set.wat+++ b/tests/disas/gc/drc/struct-set.wat@@ -93,23 +93,23 @@;; @004a v7 = iconst.i64 32;; @004a v8 = iadd v6, v7 ; v7 = 32;; @004a v9 = load.i32 user2 little region0 v8-;; v58 = iconst.i32 1-;; @004a v10 = band v3, v58 ; v58 = 1-;; @004a v11 = iconst.i32 0-;; @004a v12 = icmp eq v3, v11 ; v11 = 0-;; @004a v13 = uextend.i32 v12-;; @004a v14 = bor v10, v13-;; @004a brif v14, block3, block2+;; @004a v10 = iconst.i32 1+;; @004a v11 = band v3, v10 ; v10 = 1+;; @004a v12 = iconst.i32 0+;; @004a v13 = icmp eq v3, v12 ; v12 = 0+;; @004a v14 = uextend.i32 v13+;; @004a v15 = bor v11, v14+;; @004a brif v15, block3, block2;;;; block2:-;; @004a v15 = uextend.i64 v3-;; @004a v17 = iadd.i64 v5, v15-;; @004a v18 = iconst.i64 8-;; @004a v19 = iadd v17, v18 ; v18 = 8-;; @004a v20 = load.i64 user2 region0 v19-;; @004a v21 = iconst.i64 1-;; @004a v22 = iadd v20, v21 ; v21 = 1-;; @004a store user2 region0 v22, v19+;; @004a v16 = uextend.i64 v3+;; @004a v18 = iadd.i64 v5, v16+;; @004a v19 = iconst.i64 8+;; @004a v20 = iadd v18, v19 ; v19 = 8+;; @004a v21 = load.i64 user2 region0 v20+;; @004a v22 = iconst.i64 1+;; @004a v23 = iadd v21, v22 ; v22 = 1+;; @004a store user2 region0 v23, v20;; @004a jump block3;;;; block3:@@ -119,18 +119,18 @@;; v75 = band.i32 v9, v74 ; v74 = 1;; v76 = iconst.i32 0;; v77 = icmp.i32 eq v9, v76 ; v76 = 0-;; @004a v31 = uextend.i32 v77-;; @004a v32 = bor v75, v31-;; @004a brif v32, block7, block4+;; @004a v33 = uextend.i32 v77+;; @004a v34 = bor v75, v33+;; @004a brif v34, block7, block4;;;; block4:-;; @004a v33 = uextend.i64 v9-;; @004a v35 = iadd.i64 v5, v33+;; @004a v35 = uextend.i64 v9+;; @004a v37 = iadd.i64 v5, v35;; v78 = iconst.i64 8-;; @004a v37 = iadd v35, v78 ; v78 = 8-;; @004a v38 = load.i64 user2 region0 v37+;; @004a v39 = iadd v37, v78 ; v78 = 8+;; @004a v40 = load.i64 user2 region0 v39;; v79 = iconst.i64 1-;; v71 = icmp eq v38, v79 ; v79 = 1+;; v71 = icmp eq v40, v79 ; v79 = 1;; @004a brif v71, block5, block6;;;; block5 cold:@@ -138,10 +138,10 @@;; @004a jump block7;;;; block6:-;; @004a v39 = iconst.i64 -1-;; @004a v40 = iadd.i64 v38, v39 ; v39 = -1-;; v80 = iadd.i64 v35, v78 ; v78 = 8-;; @004a store user2 region0 v40, v80+;; @004a v41 = iconst.i64 -1+;; @004a v42 = iadd.i64 v40, v41 ; v41 = -1+;; v80 = iadd.i64 v37, v78 ; v78 = 8+;; @004a store user2 region0 v42, v80;; @004a jump block7;;;; block7:diff --git a/tests/disas/gc/null/array-get-s.wat b/tests/disas/gc/null/array-get-s.watindex faa63499ec..98817a91f6 100644--- a/tests/disas/gc/null/array-get-s.wat+++ b/tests/disas/gc/null/array-get-s.wat@@ -32,22 +32,22 @@;; @0022 v11 = icmp ult v3, v10;; @0022 trapz v11, user17;; @0022 v13 = uextend.i64 v10-;; v33 = iconst.i64 32-;; @0022 v15 = ushr v13, v33 ; v33 = 32-;; @0022 trapnz v15, user2-;; @0022 v17 = iconst.i32 12-;; @0022 v18 = uadd_overflow_trap v10, v17, user2 ; v17 = 12-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23-;; @0022 v21 = iadd v3, v17 ; v17 = 12-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i8 user2 little region0 v28+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v13, v15 ; v15 = 32+;; @0022 trapnz v16, user2+;; @0022 v18 = iconst.i32 12+;; @0022 v19 = uadd_overflow_trap v10, v18, user2 ; v18 = 12+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24+;; @0022 v22 = iadd v3, v18 ; v18 = 12+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i8 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0022 v30 = sextend.i32 v29-;; @0025 return v30+;; @0022 v31 = sextend.i32 v30+;; @0025 return v31;; }diff --git a/tests/disas/gc/null/array-get-u.wat b/tests/disas/gc/null/array-get-u.watindex a379e8b714..1eaf70fca1 100644--- a/tests/disas/gc/null/array-get-u.wat+++ b/tests/disas/gc/null/array-get-u.wat@@ -32,22 +32,22 @@;; @0022 v11 = icmp ult v3, v10;; @0022 trapz v11, user17;; @0022 v13 = uextend.i64 v10-;; v33 = iconst.i64 32-;; @0022 v15 = ushr v13, v33 ; v33 = 32-;; @0022 trapnz v15, user2-;; @0022 v17 = iconst.i32 12-;; @0022 v18 = uadd_overflow_trap v10, v17, user2 ; v17 = 12-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23-;; @0022 v21 = iadd v3, v17 ; v17 = 12-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i8 user2 little region0 v28+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v13, v15 ; v15 = 32+;; @0022 trapnz v16, user2+;; @0022 v18 = iconst.i32 12+;; @0022 v19 = uadd_overflow_trap v10, v18, user2 ; v18 = 12+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24+;; @0022 v22 = iadd v3, v18 ; v18 = 12+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i8 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0022 v30 = uextend.i32 v29-;; @0025 return v30+;; @0022 v31 = uextend.i32 v30+;; @0025 return v31;; }diff --git a/tests/disas/gc/null/array-get.wat b/tests/disas/gc/null/array-get.watindex 3c1fb07cb5..d37e9ca5b7 100644--- a/tests/disas/gc/null/array-get.wat+++ b/tests/disas/gc/null/array-get.wat@@ -34,24 +34,24 @@;; @0022 v13 = uextend.i64 v10;; v35 = iconst.i64 3;; v36 = ishl v13, v35 ; v35 = 3-;; v32 = iconst.i64 32-;; @0022 v15 = ushr v36, v32 ; v32 = 32-;; @0022 trapnz v15, user2+;; @0022 v15 = iconst.i64 32+;; @0022 v16 = ushr v36, v15 ; v15 = 32+;; @0022 trapnz v16, user2;; v45 = iconst.i32 3;; v46 = ishl v10, v45 ; v45 = 3-;; @0022 v17 = iconst.i32 16-;; @0022 v18 = uadd_overflow_trap v46, v17, user2 ; v17 = 16-;; @0022 v22 = uadd_overflow_trap v2, v18, user2-;; @0022 v23 = uextend.i64 v22-;; @0022 v25 = iadd v6, v23+;; @0022 v18 = iconst.i32 16+;; @0022 v19 = uadd_overflow_trap v46, v18, user2 ; v18 = 16+;; @0022 v23 = uadd_overflow_trap v2, v19, user2+;; @0022 v24 = uextend.i64 v23+;; @0022 v26 = iadd v6, v24;; v52 = ishl v3, v45 ; v45 = 3-;; @0022 v21 = iadd v52, v17 ; v17 = 16-;; @0022 v26 = isub v18, v21-;; @0022 v27 = uextend.i64 v26-;; @0022 v28 = isub v25, v27-;; @0022 v29 = load.i64 user2 little region0 v28+;; @0022 v22 = iadd v52, v18 ; v18 = 16+;; @0022 v27 = isub v19, v22+;; @0022 v28 = uextend.i64 v27+;; @0022 v29 = isub v26, v28+;; @0022 v30 = load.i64 user2 little region0 v29;; @0025 jump block1;;;; block1:-;; @0025 return v29+;; @0025 return v30;; }diff --git a/tests/disas/gc/null/array-new-fixed-of-gc-refs.wat b/tests/disas/gc/null/array-new-fixed-of-gc-refs.watindex bf64bd544e..d1e025883f 100644--- a/tests/disas/gc/null/array-new-fixed-of-gc-refs.wat+++ b/tests/disas/gc/null/array-new-fixed-of-gc-refs.wat@@ -33,93 +33,93 @@;; store notrap v3, v144;; v143 = stack_addr.i64 ss0;; store notrap v4, v143-;; @0025 v18 = load.i64 notrap aligned readonly region0 v0+32-;; @0025 v19 = load.i32 user2 region1 v18+;; @0025 v19 = load.i64 notrap aligned readonly region0 v0+32+;; @0025 v20 = load.i32 user2 region1 v19;; v163 = iconst.i32 7-;; @0025 v22 = uadd_overflow_trap v19, v163, user18 ; v163 = 7+;; @0025 v23 = uadd_overflow_trap v20, v163, user18 ; v163 = 7;; v169 = iconst.i32 -8-;; @0025 v24 = band v22, v169 ; v169 = -8+;; @0025 v25 = band v23, v169 ; v169 = -8;; v156 = iconst.i32 24-;; @0025 v25 = uadd_overflow_trap v24, v156, user18 ; v156 = 24-;; @0025 v140 = load.i64 notrap aligned readonly can_move v0+8-;; @0025 v27 = load.i64 notrap aligned v140+40-;; @0025 v26 = uextend.i64 v25-;; @0025 v28 = icmp ule v26, v27-;; @0025 brif v28, block2, block3+;; @0025 v26 = uadd_overflow_trap v25, v156, user18 ; v156 = 24+;; @0025 v141 = load.i64 notrap aligned readonly can_move v0+8+;; @0025 v28 = load.i64 notrap aligned v141+40+;; @0025 v27 = uextend.i64 v26+;; @0025 v29 = icmp ule v27, v28+;; @0025 brif v29, block2, block3;;;; block2:;; v170 = iconst.i32 -1476394984-;; @0025 v32 = load.i64 notrap aligned readonly can_move v140+32-;; v268 = band.i32 v22, v169 ; v169 = -8+;; @0025 v33 = load.i64 notrap aligned readonly can_move v141+32+;; v268 = band.i32 v23, v169 ; v169 = -8;; v269 = uextend.i64 v268-;; @0025 v34 = iadd v32, v269-;; @0025 store user2 region1 v170, v34 ; v170 = -1476394984-;; @0025 v38 = load.i64 notrap aligned readonly can_move v0+40-;; @0025 v39 = load.i32 notrap aligned readonly can_move v38-;; @0025 store user2 region1 v39, v34+4-;; @0025 store.i32 user2 region1 v25, v18+;; @0025 v35 = iadd v33, v269+;; @0025 store user2 region1 v170, v35 ; v170 = -1476394984+;; @0025 v39 = load.i64 notrap aligned readonly can_move v0+40+;; @0025 v40 = load.i32 notrap aligned readonly can_move v39+;; @0025 store user2 region1 v40, v35+4+;; @0025 store.i32 user2 region1 v26, v19;; @0025 v6 = iconst.i32 3-;; @0025 v40 = iconst.i64 8-;; @0025 v41 = iadd v34, v40 ; v40 = 8-;; @0025 store user2 region1 v6, v41 ; v6 = 3+;; @0025 v41 = iconst.i64 8+;; @0025 v42 = iadd v35, v41 ; v41 = 8+;; @0025 store user2 region1 v6, v42 ; v6 = 3;; @0025 trapz v268, user16;; v270 = iconst.i32 24-;; @0025 v60 = uadd_overflow_trap v268, v270, user2 ; v270 = 24-;; v119 = load.i32 notrap v145-;; @0025 v61 = uextend.i64 v60-;; @0025 v63 = iadd v32, v61+;; @0025 v62 = uadd_overflow_trap v268, v270, user2 ; v270 = 24+;; v123 = load.i32 notrap v145+;; @0025 v63 = uextend.i64 v62+;; @0025 v65 = iadd v33, v63;; v147 = iconst.i64 12-;; @0025 v66 = isub v63, v147 ; v147 = 12-;; @0025 store user2 little region1 v119, v66-;; @0025 v73 = load.i32 user2 readonly region1 v41-;; @0025 v67 = iconst.i32 1-;; v208 = icmp ugt v73, v67 ; v67 = 1+;; @0025 v68 = isub v65, v147 ; v147 = 12+;; @0025 store user2 little region1 v123, v68+;; @0025 v75 = load.i32 user2 readonly region1 v42+;; @0025 v69 = iconst.i32 1+;; v208 = icmp ugt v75, v69 ; v69 = 1;; @0025 trapz v208, user17-;; @0025 v76 = uextend.i64 v73+;; @0025 v78 = uextend.i64 v75;; v148 = iconst.i64 2-;; v210 = ishl v76, v148 ; v148 = 2-;; v142 = iconst.i64 32-;; @0025 v78 = ushr v210, v142 ; v142 = 32-;; @0025 trapnz v78, user2+;; v210 = ishl v78, v148 ; v148 = 2+;; @0025 v11 = iconst.i64 32+;; @0025 v81 = ushr v210, v11 ; v11 = 32+;; @0025 trapnz v81, user2;; v187 = iconst.i32 2-;; v217 = ishl v73, v187 ; v187 = 2+;; v217 = ishl v75, v187 ; v187 = 2;; @0025 v7 = iconst.i32 12-;; @0025 v81 = uadd_overflow_trap v217, v7, user2 ; v7 = 12-;; @0025 v85 = uadd_overflow_trap v268, v81, user2-;; v118 = load.i32 notrap v144-;; @0025 v86 = uextend.i64 v85-;; @0025 v88 = iadd v32, v86+;; @0025 v84 = uadd_overflow_trap v217, v7, user2 ; v7 = 12+;; @0025 v88 = uadd_overflow_trap v268, v84, user2+;; v122 = load.i32 notrap v144+;; @0025 v89 = uextend.i64 v88+;; @0025 v91 = iadd v33, v89;; v230 = iconst.i32 16-;; @0025 v89 = isub v81, v230 ; v230 = 16-;; @0025 v90 = uextend.i64 v89-;; @0025 v91 = isub v88, v90-;; @0025 store user2 little region1 v118, v91-;; @0025 v98 = load.i32 user2 readonly region1 v41-;; v236 = icmp ugt v98, v187 ; v187 = 2+;; @0025 v92 = isub v84, v230 ; v230 = 16+;; @0025 v93 = uextend.i64 v92+;; @0025 v94 = isub v91, v93+;; @0025 store user2 little region1 v122, v94+;; @0025 v101 = load.i32 user2 readonly region1 v42+;; v236 = icmp ugt v101, v187 ; v187 = 2;; @0025 trapz v236, user17-;; @0025 v101 = uextend.i64 v98-;; v238 = ishl v101, v148 ; v148 = 2-;; @0025 v103 = ushr v238, v142 ; v142 = 32-;; @0025 trapnz v103, user2-;; v245 = ishl v98, v187 ; v187 = 2-;; @0025 v106 = uadd_overflow_trap v245, v7, user2 ; v7 = 12-;; @0025 v110 = uadd_overflow_trap v268, v106, user2-;; v117 = load.i32 notrap v143-;; @0025 v111 = uextend.i64 v110-;; @0025 v113 = iadd v32, v111-;; v262 = iconst.i32 20-;; @0025 v114 = isub v106, v262 ; v262 = 20+;; @0025 v104 = uextend.i64 v101+;; v238 = ishl v104, v148 ; v148 = 2+;; @0025 v107 = ushr v238, v11 ; v11 = 32+;; @0025 trapnz v107, user2+;; v245 = ishl v101, v187 ; v187 = 2+;; @0025 v110 = uadd_overflow_trap v245, v7, user2 ; v7 = 12+;; @0025 v114 = uadd_overflow_trap v268, v110, user2+;; v121 = load.i32 notrap v143;; @0025 v115 = uextend.i64 v114-;; @0025 v116 = isub v113, v115-;; @0025 store user2 little region1 v117, v116+;; @0025 v117 = iadd v33, v115+;; v262 = iconst.i32 20+;; @0025 v118 = isub v110, v262 ; v262 = 20+;; @0025 v119 = uextend.i64 v118+;; @0025 v120 = isub v117, v119+;; @0025 store user2 little region1 v121, v120;; @0029 jump block1;;;; block3 cold:-;; @0025 v30 = isub.i64 v26, v27-;; @0025 v31 = call fn0(v0, v30), stack_map=[i32 @ ss2+0, i32 @ ss1+0, i32 @ ss0+0]+;; @0025 v31 = isub.i64 v27, v28+;; @0025 v32 = call fn0(v0, v31), stack_map=[i32 @ ss2+0, i32 @ ss1+0, i32 @ ss0+0];; @0025 jump block2;;;; block1:-;; v271 = band.i32 v22, v169 ; v169 = -8+;; v271 = band.i32 v23, v169 ; v169 = -8;; @0029 return v271;; }diff --git a/tests/disas/gc/null/array-new-fixed.wat b/tests/disas/gc/null/array-new-fixed.watindex da148eeff6..3cc82037aa 100644--- a/tests/disas/gc/null/array-new-fixed.wat+++ b/tests/disas/gc/null/array-new-fixed.wat@@ -24,90 +24,90 @@;; stack_limit = gv2;;;; block0(v0: i64, v1: i64, v2: i64, v3: i64, v4: i64):-;; @0025 v18 = load.i64 notrap aligned readonly region0 v0+32-;; @0025 v19 = load.i32 user2 region1 v18+;; @0025 v19 = load.i64 notrap aligned readonly region0 v0+32+;; @0025 v20 = load.i32 user2 region1 v19;; v154 = iconst.i32 7-;; @0025 v22 = uadd_overflow_trap v19, v154, user18 ; v154 = 7+;; @0025 v23 = uadd_overflow_trap v20, v154, user18 ; v154 = 7;; v160 = iconst.i32 -8-;; @0025 v24 = band v22, v160 ; v160 = -8+;; @0025 v25 = band v23, v160 ; v160 = -8;; v147 = iconst.i32 40-;; @0025 v25 = uadd_overflow_trap v24, v147, user18 ; v147 = 40-;; @0025 v134 = load.i64 notrap aligned readonly can_move v0+8-;; @0025 v27 = load.i64 notrap aligned v134+40-;; @0025 v26 = uextend.i64 v25-;; @0025 v28 = icmp ule v26, v27-;; @0025 brif v28, block2, block3+;; @0025 v26 = uadd_overflow_trap v25, v147, user18 ; v147 = 40+;; @0025 v135 = load.i64 notrap aligned readonly can_move v0+8+;; @0025 v28 = load.i64 notrap aligned v135+40+;; @0025 v27 = uextend.i64 v26+;; @0025 v29 = icmp ule v27, v28+;; @0025 brif v29, block2, block3;;;; block2:;; v161 = iconst.i32 -1476394968-;; @0025 v32 = load.i64 notrap aligned readonly can_move v134+32-;; v256 = band.i32 v22, v160 ; v160 = -8+;; @0025 v33 = load.i64 notrap aligned readonly can_move v135+32+;; v256 = band.i32 v23, v160 ; v160 = -8;; v257 = uextend.i64 v256-;; @0025 v34 = iadd v32, v257-;; @0025 store user2 region1 v161, v34 ; v161 = -1476394968-;; @0025 v38 = load.i64 notrap aligned readonly can_move v0+40-;; @0025 v39 = load.i32 notrap aligned readonly can_move v38-;; @0025 store user2 region1 v39, v34+4-;; @0025 store.i32 user2 region1 v25, v18+;; @0025 v35 = iadd v33, v257+;; @0025 store user2 region1 v161, v35 ; v161 = -1476394968+;; @0025 v39 = load.i64 notrap aligned readonly can_move v0+40+;; @0025 v40 = load.i32 notrap aligned readonly can_move v39+;; @0025 store user2 region1 v40, v35+4+;; @0025 store.i32 user2 region1 v26, v19;; @0025 v6 = iconst.i32 3;; @0025 v9 = iconst.i64 8-;; @0025 v41 = iadd v34, v9 ; v9 = 8-;; @0025 store user2 region1 v6, v41 ; v6 = 3+;; @0025 v42 = iadd v35, v9 ; v9 = 8+;; @0025 store user2 region1 v6, v42 ; v6 = 3;; @0025 trapz v256, user16;; v258 = iconst.i32 40-;; @0025 v60 = uadd_overflow_trap v256, v258, user2 ; v258 = 40-;; @0025 v61 = uextend.i64 v60-;; @0025 v63 = iadd v32, v61+;; @0025 v62 = uadd_overflow_trap v256, v258, user2 ; v258 = 40+;; @0025 v63 = uextend.i64 v62+;; @0025 v65 = iadd v33, v63;; v138 = iconst.i64 24-;; @0025 v66 = isub v63, v138 ; v138 = 24-;; @0025 store.i64 user2 little region1 v2, v66-;; @0025 v73 = load.i32 user2 readonly region1 v41-;; @0025 v67 = iconst.i32 1-;; v197 = icmp ugt v73, v67 ; v67 = 1+;; @0025 v68 = isub v65, v138 ; v138 = 24+;; @0025 store.i64 user2 little region1 v2, v68+;; @0025 v75 = load.i32 user2 readonly region1 v42+;; @0025 v69 = iconst.i32 1+;; v197 = icmp ugt v75, v69 ; v69 = 1;; @0025 trapz v197, user17-;; @0025 v76 = uextend.i64 v73+;; @0025 v78 = uextend.i64 v75;; v137 = iconst.i64 3-;; v199 = ishl v76, v137 ; v137 = 3-;; v136 = iconst.i64 32-;; @0025 v78 = ushr v199, v136 ; v136 = 32-;; @0025 trapnz v78, user2-;; v206 = ishl v73, v6 ; v6 = 3+;; v199 = ishl v78, v137 ; v137 = 3+;; @0025 v11 = iconst.i64 32+;; @0025 v81 = ushr v199, v11 ; v11 = 32+;; @0025 trapnz v81, user2+;; v206 = ishl v75, v6 ; v6 = 3;; @0025 v7 = iconst.i32 16-;; @0025 v81 = uadd_overflow_trap v206, v7, user2 ; v7 = 16-;; @0025 v85 = uadd_overflow_trap v256, v81, user2-;; @0025 v86 = uextend.i64 v85-;; @0025 v88 = iadd v32, v86+;; @0025 v84 = uadd_overflow_trap v206, v7, user2 ; v7 = 16+;; @0025 v88 = uadd_overflow_trap v256, v84, user2+;; @0025 v89 = uextend.i64 v88+;; @0025 v91 = iadd v33, v89;; v146 = iconst.i32 24-;; @0025 v89 = isub v81, v146 ; v146 = 24-;; @0025 v90 = uextend.i64 v89-;; @0025 v91 = isub v88, v90-;; @0025 store.i64 user2 little region1 v3, v91-;; @0025 v98 = load.i32 user2 readonly region1 v41-;; @0025 v92 = iconst.i32 2-;; v224 = icmp ugt v98, v92 ; v92 = 2+;; @0025 v92 = isub v84, v146 ; v146 = 24+;; @0025 v93 = uextend.i64 v92+;; @0025 v94 = isub v91, v93+;; @0025 store.i64 user2 little region1 v3, v94+;; @0025 v101 = load.i32 user2 readonly region1 v42+;; @0025 v95 = iconst.i32 2+;; v224 = icmp ugt v101, v95 ; v95 = 2;; @0025 trapz v224, user17-;; @0025 v101 = uextend.i64 v98-;; v226 = ishl v101, v137 ; v137 = 3-;; @0025 v103 = ushr v226, v136 ; v136 = 32-;; @0025 trapnz v103, user2-;; v233 = ishl v98, v6 ; v6 = 3-;; @0025 v106 = uadd_overflow_trap v233, v7, user2 ; v7 = 16-;; @0025 v110 = uadd_overflow_trap v256, v106, user2-;; @0025 v111 = uextend.i64 v110-;; @0025 v113 = iadd v32, v111-;; v250 = iconst.i32 32-;; @0025 v114 = isub v106, v250 ; v250 = 32+;; @0025 v104 = uextend.i64 v101+;; v226 = ishl v104, v137 ; v137 = 3+;; @0025 v107 = ushr v226, v11 ; v11 = 32+;; @0025 trapnz v107, user2+;; v233 = ishl v101, v6 ; v6 = 3+;; @0025 v110 = uadd_overflow_trap v233, v7, user2 ; v7 = 16+;; @0025 v114 = uadd_overflow_trap v256, v110, user2;; @0025 v115 = uextend.i64 v114-;; @0025 v116 = isub v113, v115-;; @0025 store.i64 user2 little region1 v4, v116+;; @0025 v117 = iadd v33, v115+;; v250 = iconst.i32 32+;; @0025 v118 = isub v110, v250 ; v250 = 32+;; @0025 v119 = uextend.i64 v118+;; @0025 v120 = isub v117, v119+;; @0025 store.i64 user2 little region1 v4, v120;; @0029 jump block1;;;; block3 cold:-;; @0025 v30 = isub.i64 v26, v27-;; @0025 v31 = call fn0(v0, v30)+;; @0025 v31 = isub.i64 v27, v28+;; @0025 v32 = call fn0(v0, v31);; @0025 jump block2;;;; block1:-;; v259 = band.i32 v22, v160 ; v160 = -8+;; v259 = band.i32 v23, v160 ; v160 = -8;; @0029 return v259;; }diff --git a/tests/disas/gc/null/array-new.wat b/tests/disas/gc/null/array-new.watindex 3128fbf244..94f7a8329f 100644--- a/tests/disas/gc/null/array-new.wat+++ b/tests/disas/gc/null/array-new.wat@@ -27,73 +27,73 @@;; @0022 v6 = uextend.i64 v3;; v91 = iconst.i64 3;; v92 = ishl v6, v91 ; v91 = 3-;; v90 = iconst.i64 32-;; @0022 v9 = ushr v92, v90 ; v90 = 32-;; @0022 trapnz v9, user18+;; @0022 v9 = iconst.i64 32+;; @0022 v10 = ushr v92, v9 ; v9 = 32+;; @0022 trapnz v10, user18;; @0022 v5 = iconst.i32 16;; v98 = iconst.i32 3;; v99 = ishl v3, v98 ; v98 = 3-;; @0022 v11 = uadd_overflow_trap v5, v99, user18 ; v5 = 16-;; @0022 v13 = iconst.i32 -67108864-;; @0022 v14 = band v11, v13 ; v13 = -67108864-;; @0022 trapnz v14, user18-;; @0022 v16 = load.i64 notrap aligned readonly region0 v0+32-;; @0022 v17 = load.i32 user2 region1 v16+;; @0022 v12 = uadd_overflow_trap v5, v99, user18 ; v5 = 16+;; @0022 v14 = iconst.i32 -67108864+;; @0022 v15 = band v12, v14 ; v14 = -67108864+;; @0022 trapnz v15, user18+;; @0022 v17 = load.i64 notrap aligned readonly region0 v0+32+;; @0022 v18 = load.i32 user2 region1 v17;; v102 = iconst.i32 7-;; @0022 v20 = uadd_overflow_trap v17, v102, user18 ; v102 = 7+;; @0022 v21 = uadd_overflow_trap v18, v102, user18 ; v102 = 7;; v108 = iconst.i32 -8-;; @0022 v22 = band v20, v108 ; v108 = -8-;; @0022 v23 = uadd_overflow_trap v22, v11, user18-;; @0022 v88 = load.i64 notrap aligned readonly can_move v0+8-;; @0022 v25 = load.i64 notrap aligned v88+40-;; @0022 v24 = uextend.i64 v23-;; @0022 v26 = icmp ule v24, v25-;; @0022 brif v26, block2, block3+;; @0022 v23 = band v21, v108 ; v108 = -8+;; @0022 v24 = uadd_overflow_trap v23, v12, user18+;; @0022 v89 = load.i64 notrap aligned readonly can_move v0+8+;; @0022 v26 = load.i64 notrap aligned v89+40+;; @0022 v25 = uextend.i64 v24+;; @0022 v27 = icmp ule v25, v26+;; @0022 brif v27, block2, block3;;;; block2:-;; @0022 v33 = iconst.i32 -1476395008-;; v109 = bor.i32 v11, v33 ; v33 = -1476395008-;; @0022 v30 = load.i64 notrap aligned readonly can_move v88+32-;; v126 = band.i32 v20, v108 ; v108 = -8+;; @0022 v34 = iconst.i32 -1476395008+;; v109 = bor.i32 v12, v34 ; v34 = -1476395008+;; @0022 v31 = load.i64 notrap aligned readonly can_move v89+32+;; v126 = band.i32 v21, v108 ; v108 = -8;; v127 = uextend.i64 v126-;; @0022 v32 = iadd v30, v127-;; @0022 store user2 region1 v109, v32-;; @0022 v36 = load.i64 notrap aligned readonly can_move v0+40-;; @0022 v37 = load.i32 notrap aligned readonly can_move v36-;; @0022 store user2 region1 v37, v32+4-;; @0022 store.i32 user2 region1 v23, v16+;; @0022 v33 = iadd v31, v127+;; @0022 store user2 region1 v109, v33+;; @0022 v37 = load.i64 notrap aligned readonly can_move v0+40+;; @0022 v38 = load.i32 notrap aligned readonly can_move v37+;; @0022 store user2 region1 v38, v33+4+;; @0022 store.i32 user2 region1 v24, v17;; @0022 v7 = iconst.i64 8-;; @0022 v39 = iadd v32, v7 ; v7 = 8-;; @0022 store.i32 user2 region1 v3, v39+;; @0022 v40 = iadd v33, v7 ; v7 = 8+;; @0022 store.i32 user2 region1 v3, v40;; @0022 trapz v126, user16-;; @0022 v67 = load.i64 notrap aligned v88+40-;; @0022 v57 = iconst.i64 16-;; @0022 v58 = iadd v32, v57 ; v57 = 16-;; @0022 v69 = uadd_overflow_trap v58, v92, user2-;; @0022 v68 = iadd v30, v67-;; @0022 v70 = icmp ugt v69, v68-;; @0022 trapnz v70, user2+;; @0022 v68 = load.i64 notrap aligned v89+40+;; @0022 v58 = iconst.i64 16+;; @0022 v59 = iadd v33, v58 ; v58 = 16+;; @0022 v70 = uadd_overflow_trap v59, v92, user2+;; @0022 v69 = iadd v31, v68+;; @0022 v71 = icmp ugt v70, v69+;; @0022 trapnz v71, user2;; v111 = iconst.i64 0-;; @0022 v73 = icmp.i64 eq v6, v111 ; v111 = 0-;; @0022 v71 = iadd v58, v92-;; @0022 brif v73, block5, block4(v58)+;; @0022 v74 = icmp.i64 eq v6, v111 ; v111 = 0+;; @0022 v72 = iadd v59, v92+;; @0022 brif v74, block5, block4(v59);;-;; block4(v74: i64):-;; @0022 store.i64 user2 little region1 v2, v74+;; block4(v75: i64):+;; @0022 store.i64 user2 little region1 v2, v75;; v128 = iconst.i64 8-;; v129 = iadd v74, v128 ; v128 = 8-;; @0022 v77 = icmp eq v129, v71-;; @0022 brif v77, block5, block4(v129)+;; v129 = iadd v75, v128 ; v128 = 8+;; @0022 v78 = icmp eq v129, v72+;; @0022 brif v78, block5, block4(v129);;;; block5:;; @0025 jump block1;;;; block3 cold:-;; @0022 v28 = isub.i64 v24, v25-;; @0022 v29 = call fn0(v0, v28)+;; @0022 v29 = isub.i64 v25, v26+;; @0022 v30 = call fn0(v0, v29);; @0022 jump block2;;;; block1:-;; v130 = band.i32 v20, v108 ; v108 = -8+;; v130 = band.i32 v21, v108 ; v108 = -8;; @0025 return v130;; }diff --git a/tests/disas/gc/null/array-set.wat b/tests/disas/gc/null/array-set.watindex b60e14d262..e54a64518a 100644--- a/tests/disas/gc/null/array-set.wat+++ b/tests/disas/gc/null/array-set.wat@@ -34,22 +34,22 @@;; @0024 v13 = uextend.i64 v10;; v34 = iconst.i64 3;; v35 = ishl v13, v34 ; v34 = 3-;; v31 = iconst.i64 32-;; @0024 v15 = ushr v35, v31 ; v31 = 32-;; @0024 trapnz v15, user2+;; @0024 v15 = iconst.i64 32+;; @0024 v16 = ushr v35, v15 ; v15 = 32+;; @0024 trapnz v16, user2;; v44 = iconst.i32 3;; v45 = ishl v10, v44 ; v44 = 3-;; @0024 v17 = iconst.i32 16-;; @0024 v18 = uadd_overflow_trap v45, v17, user2 ; v17 = 16-;; @0024 v22 = uadd_overflow_trap v2, v18, user2-;; @0024 v23 = uextend.i64 v22-;; @0024 v25 = iadd v6, v23+;; @0024 v18 = iconst.i32 16+;; @0024 v19 = uadd_overflow_trap v45, v18, user2 ; v18 = 16+;; @0024 v23 = uadd_overflow_trap v2, v19, user2+;; @0024 v24 = uextend.i64 v23+;; @0024 v26 = iadd v6, v24;; v51 = ishl v3, v44 ; v44 = 3-;; @0024 v21 = iadd v51, v17 ; v17 = 16-;; @0024 v26 = isub v18, v21-;; @0024 v27 = uextend.i64 v26-;; @0024 v28 = isub v25, v27-;; @0024 store user2 little region0 v4, v28+;; @0024 v22 = iadd v51, v18 ; v18 = 16+;; @0024 v27 = isub v19, v22+;; @0024 v28 = uextend.i64 v27+;; @0024 v29 = isub v26, v28+;; @0024 store user2 little region0 v4, v29;; @0027 jump block1;;;; block1:diff --git a/tests/disas/gc/null/call-indirect-and-subtyping.wat b/tests/disas/gc/null/call-indirect-and-subtyping.watindex ee2c5b87d3..1f983d7bbf 100644--- a/tests/disas/gc/null/call-indirect-and-subtyping.wat+++ b/tests/disas/gc/null/call-indirect-and-subtyping.wat@@ -33,40 +33,40 @@;; block0(v0: i64, v1: i64, v2: i32):;; @005c v3 = iconst.i32 2;; @005c v4 = icmp uge v2, v3 ; v3 = 2-;; @005c v9 = iconst.i64 0+;; @005c v10 = iconst.i64 0;; @005c v6 = load.i64 notrap aligned readonly can_move v0+112;; @005c v5 = uextend.i64 v2-;; v30 = iconst.i64 3-;; @005c v7 = ishl v5, v30 ; v30 = 3-;; @005c v8 = iadd v6, v7-;; @005c v10 = select_spectre_guard v4, v9, v8 ; v9 = 0-;; @005c v11 = load.i64 user6 aligned region0 v10-;; v29 = iconst.i64 -2-;; @005c v12 = band v11, v29 ; v29 = -2-;; @005c brif v11, block3(v12), block2+;; @005c v7 = iconst.i64 3+;; @005c v8 = ishl v5, v7 ; v7 = 3+;; @005c v9 = iadd v6, v8+;; @005c v11 = select_spectre_guard v4, v10, v9 ; v10 = 0+;; @005c v12 = load.i64 user6 aligned region0 v11+;; @005c v13 = iconst.i64 -2+;; @005c v14 = band v12, v13 ; v13 = -2+;; @005c brif v12, block3(v14), block2;;;; block2 cold:-;; @005c v14 = iconst.i32 0-;; @005c v17 = call fn0(v0, v14, v5) ; v14 = 0-;; @005c jump block3(v17)+;; @005c v16 = iconst.i32 0+;; @005c v19 = call fn0(v0, v16, v5) ; v16 = 0+;; @005c jump block3(v19);;-;; block3(v13: i64):-;; @005c v21 = load.i32 user7 aligned readonly v13+16-;; @005c v19 = load.i64 notrap aligned readonly can_move v0+40-;; @005c v20 = load.i32 notrap aligned readonly can_move v19-;; @005c v22 = icmp eq v21, v20-;; @005c v23 = uextend.i32 v22-;; @005c brif v23, block5(v23), block4+;; block3(v15: i64):+;; @005c v23 = load.i32 user7 aligned readonly v15+16+;; @005c v21 = load.i64 notrap aligned readonly can_move v0+40+;; @005c v22 = load.i32 notrap aligned readonly can_move v21+;; @005c v24 = icmp eq v23, v22+;; @005c v25 = uextend.i32 v24+;; @005c brif v25, block5(v25), block4;;;; block4:-;; @005c v25 = call fn1(v0, v21, v20)-;; @005c jump block5(v25)+;; @005c v27 = call fn1(v0, v23, v22)+;; @005c jump block5(v27);;-;; block5(v26: i32):-;; @005c trapz v26, user8-;; @005c v27 = load.i64 notrap aligned readonly v13+8-;; @005c v28 = load.i64 notrap aligned readonly v13+24-;; @005c call_indirect sig0, v27(v28, v0)+;; block5(v28: i32):+;; @005c trapz v28, user8+;; @005c v29 = load.i64 notrap aligned readonly v15+8+;; @005c v30 = load.i64 notrap aligned readonly v15+24+;; @005c call_indirect sig0, v29(v30, v0);; @005f jump block1;;;; block1:diff --git a/tests/disas/gc/null/multiple-array-get.wat b/tests/disas/gc/null/multiple-array-get.watindex 8be59ae604..2355ced42f 100644--- a/tests/disas/gc/null/multiple-array-get.wat+++ b/tests/disas/gc/null/multiple-array-get.wat@@ -35,32 +35,32 @@;; @0024 v15 = uextend.i64 v12;; v67 = iconst.i64 3;; v68 = ishl v15, v67 ; v67 = 3-;; v64 = iconst.i64 32-;; @0024 v17 = ushr v68, v64 ; v64 = 32-;; @0024 trapnz v17, user2+;; @0024 v17 = iconst.i64 32+;; @0024 v18 = ushr v68, v17 ; v17 = 32+;; @0024 trapnz v18, user2;; v77 = iconst.i32 3;; v78 = ishl v12, v77 ; v77 = 3-;; @0024 v19 = iconst.i32 16-;; @0024 v20 = uadd_overflow_trap v78, v19, user2 ; v19 = 16-;; @0024 v24 = uadd_overflow_trap v2, v20, user2-;; @0024 v25 = uextend.i64 v24-;; @0024 v27 = iadd v8, v25+;; @0024 v20 = iconst.i32 16+;; @0024 v21 = uadd_overflow_trap v78, v20, user2 ; v20 = 16+;; @0024 v25 = uadd_overflow_trap v2, v21, user2+;; @0024 v26 = uextend.i64 v25+;; @0024 v28 = iadd v8, v26;; v84 = ishl v3, v77 ; v77 = 3-;; @0024 v23 = iadd v84, v19 ; v19 = 16-;; @0024 v28 = isub v20, v23-;; @0024 v29 = uextend.i64 v28-;; @0024 v30 = isub v27, v29-;; @0024 v31 = load.i64 user2 little region0 v30-;; @002b v38 = icmp ult v4, v12-;; @002b trapz v38, user17+;; @0024 v24 = iadd v84, v20 ; v20 = 16+;; @0024 v29 = isub v21, v24+;; @0024 v30 = uextend.i64 v29+;; @0024 v31 = isub v28, v30+;; @0024 v32 = load.i64 user2 little region0 v31+;; @002b v39 = icmp ult v4, v12+;; @002b trapz v39, user17;; v86 = ishl v4, v77 ; v77 = 3-;; @002b v48 = iadd v86, v19 ; v19 = 16-;; @002b v53 = isub v20, v48-;; @002b v54 = uextend.i64 v53-;; @002b v55 = isub v27, v54-;; @002b v56 = load.i64 user2 little region0 v55+;; @002b v50 = iadd v86, v20 ; v20 = 16+;; @002b v55 = isub v21, v50+;; @002b v56 = uextend.i64 v55+;; @002b v57 = isub v28, v56+;; @002b v58 = load.i64 user2 little region0 v57;; @002e jump block1;;;; block1:-;; @002e return v31, v56+;; @002e return v32, v58;; }diff --git a/tests/disas/icall-loop.wat b/tests/disas/icall-loop.watindex 3d2455ee62..4f9fb4f0bc 100644--- a/tests/disas/icall-loop.wat+++ b/tests/disas/icall-loop.wat@@ -37,37 +37,37 @@;; block0(v0: i64, v1: i64, v2: i32):;; @002b v4 = iconst.i32 2;; @002b v5 = icmp uge v2, v4 ; v4 = 2-;; @002b v10 = iconst.i64 0+;; @002b v11 = iconst.i64 0;; @002b v7 = load.i64 notrap aligned readonly can_move v0+48;; @002b v6 = uextend.i64 v2-;; v29 = iconst.i64 3-;; @002b v8 = ishl v6, v29 ; v29 = 3-;; @002b v9 = iadd v7, v8-;; @002b v11 = select_spectre_guard v5, v10, v9 ; v10 = 0-;; v28 = iconst.i64 -2-;; @002b v15 = iconst.i32 0-;; @002b v20 = load.i64 notrap aligned readonly can_move v0+40-;; @002b v21 = load.i32 notrap aligned readonly can_move v20+;; @002b v8 = iconst.i64 3+;; @002b v9 = ishl v6, v8 ; v8 = 3+;; @002b v10 = iadd v7, v9+;; @002b v12 = select_spectre_guard v5, v11, v10 ; v11 = 0+;; @002b v14 = iconst.i64 -2+;; @002b v17 = iconst.i32 0+;; @002b v22 = load.i64 notrap aligned readonly can_move v0+40+;; @002b v23 = load.i32 notrap aligned readonly can_move v22;; @0027 jump block2;;;; block2:-;; @002b v12 = load.i64 user6 aligned region0 v11+;; @002b v13 = load.i64 user6 aligned region0 v12;; v31 = iconst.i64 -2-;; v32 = band v12, v31 ; v31 = -2-;; @002b brif v12, block5(v32), block4+;; v32 = band v13, v31 ; v31 = -2+;; @002b brif v13, block5(v32), block4;;;; block4 cold:;; v33 = iconst.i32 0-;; @002b v18 = call fn0(v0, v33, v6) ; v33 = 0-;; @002b jump block5(v18)+;; @002b v20 = call fn0(v0, v33, v6) ; v33 = 0+;; @002b jump block5(v20);;-;; block5(v14: i64):-;; @002b v22 = load.i32 user7 aligned readonly v14+16-;; @002b v23 = icmp eq v22, v21-;; @002b trapz v23, user8-;; @002b v24 = load.i64 notrap aligned readonly v14+8-;; @002b v25 = load.i64 notrap aligned readonly v14+24-;; @002b v26 = call_indirect sig0, v24(v25, v0)+;; block5(v16: i64):+;; @002b v24 = load.i32 user7 aligned readonly v16+16+;; @002b v25 = icmp eq v24, v23+;; @002b trapz v25, user8+;; @002b v26 = load.i64 notrap aligned readonly v16+8+;; @002b v27 = load.i64 notrap aligned readonly v16+24+;; @002b v28 = call_indirect sig0, v26(v27, v0);; @002e jump block2;; };;@@ -86,33 +86,33 @@;; block0(v0: i64, v1: i64):;; @0038 v6 = load.i64 notrap aligned readonly can_move v0+48;; v36 = iconst.i64 8-;; @0038 v8 = iadd v6, v36 ; v36 = 8-;; v26 = iconst.i64 -2-;; @0038 v14 = iconst.i32 0+;; @0038 v9 = iadd v6, v36 ; v36 = 8+;; @0038 v13 = iconst.i64 -2+;; @0038 v16 = iconst.i32 0;; v35 = iconst.i64 1-;; @0038 v19 = load.i64 notrap aligned readonly can_move v0+40-;; @0038 v20 = load.i32 notrap aligned readonly can_move v19+;; @0038 v21 = load.i64 notrap aligned readonly can_move v0+40+;; @0038 v22 = load.i32 notrap aligned readonly can_move v21;; @0034 jump block2;;;; block2:;; v37 = iadd.i64 v6, v36 ; v36 = 8-;; @0038 v11 = load.i64 user6 aligned region0 v37+;; @0038 v12 = load.i64 user6 aligned region0 v37;; v38 = iconst.i64 -2-;; v39 = band v11, v38 ; v38 = -2-;; @0038 brif v11, block5(v39), block4+;; v39 = band v12, v38 ; v38 = -2+;; @0038 brif v12, block5(v39), block4;;;; block4 cold:;; v40 = iconst.i32 0;; v41 = iconst.i64 1-;; @0038 v17 = call fn0(v0, v40, v41) ; v40 = 0, v41 = 1-;; @0038 jump block5(v17)+;; @0038 v19 = call fn0(v0, v40, v41) ; v40 = 0, v41 = 1+;; @0038 jump block5(v19);;-;; block5(v13: i64):-;; @0038 v21 = load.i32 user7 aligned readonly v13+16-;; @0038 v22 = icmp eq v21, v20-;; @0038 trapz v22, user8-;; @0038 v23 = load.i64 notrap aligned readonly v13+8-;; @0038 v24 = load.i64 notrap aligned readonly v13+24-;; @0038 v25 = call_indirect sig0, v23(v24, v0)+;; block5(v15: i64):+;; @0038 v23 = load.i32 user7 aligned readonly v15+16+;; @0038 v24 = icmp eq v23, v22+;; @0038 trapz v24, user8+;; @0038 v25 = load.i64 notrap aligned readonly v15+8+;; @0038 v26 = load.i64 notrap aligned readonly v15+24+;; @0038 v27 = call_indirect sig0, v25(v26, v0);; @003b jump block2;; }diff --git a/tests/disas/icall-simd.wat b/tests/disas/icall-simd.watindex 171661fe57..e276a53fc4 100644--- a/tests/disas/icall-simd.wat+++ b/tests/disas/icall-simd.wat@@ -25,33 +25,33 @@;; @0033 v6 = icmp uge v2, v5 ; v5 = 23;; @0033 v7 = uextend.i64 v2;; @0033 v8 = load.i64 notrap aligned readonly can_move v0+48-;; v29 = iconst.i64 3-;; @0033 v9 = ishl v7, v29 ; v29 = 3-;; @0033 v10 = iadd v8, v9-;; @0033 v11 = iconst.i64 0-;; @0033 v12 = select_spectre_guard v6, v11, v10 ; v11 = 0-;; @0033 v13 = load.i64 user6 aligned region0 v12-;; v28 = iconst.i64 -2-;; @0033 v14 = band v13, v28 ; v28 = -2-;; @0033 brif v13, block3(v14), block2+;; @0033 v9 = iconst.i64 3+;; @0033 v10 = ishl v7, v9 ; v9 = 3+;; @0033 v11 = iadd v8, v10+;; @0033 v12 = iconst.i64 0+;; @0033 v13 = select_spectre_guard v6, v12, v11 ; v12 = 0+;; @0033 v14 = load.i64 user6 aligned region0 v13+;; @0033 v15 = iconst.i64 -2+;; @0033 v16 = band v14, v15 ; v15 = -2+;; @0033 brif v14, block3(v16), block2;;;; block2 cold:-;; @0033 v16 = iconst.i32 0-;; @0033 v18 = uextend.i64 v2-;; @0033 v19 = call fn0(v0, v16, v18) ; v16 = 0-;; @0033 jump block3(v19)+;; @0033 v18 = iconst.i32 0+;; @0033 v20 = uextend.i64 v2+;; @0033 v21 = call fn0(v0, v18, v20) ; v18 = 0+;; @0033 jump block3(v21);;-;; block3(v15: i64):-;; @0033 v21 = load.i64 notrap aligned readonly can_move v0+40-;; @0033 v22 = load.i32 notrap aligned readonly can_move v21-;; @0033 v23 = load.i32 user7 aligned readonly v15+16-;; @0033 v24 = icmp eq v23, v22-;; @0033 trapz v24, user8-;; @0033 v25 = load.i64 notrap aligned readonly v15+8-;; @0033 v26 = load.i64 notrap aligned readonly v15+24-;; @0033 v27 = call_indirect sig0, v25(v26, v0, v3)+;; block3(v17: i64):+;; @0033 v23 = load.i64 notrap aligned readonly can_move v0+40+;; @0033 v24 = load.i32 notrap aligned readonly can_move v23+;; @0033 v25 = load.i32 user7 aligned readonly v17+16+;; @0033 v26 = icmp eq v25, v24+;; @0033 trapz v26, user8+;; @0033 v27 = load.i64 notrap aligned readonly v17+8+;; @0033 v28 = load.i64 notrap aligned readonly v17+24+;; @0033 v29 = call_indirect sig0, v27(v28, v0, v3);; @0036 jump block1;;;; block1:-;; @0036 return v27+;; @0036 return v29;; }diff --git a/tests/disas/icall.wat b/tests/disas/icall.watindex cd1cdd1cdf..c288b25a1c 100644--- a/tests/disas/icall.wat+++ b/tests/disas/icall.wat@@ -25,33 +25,33 @@;; @0033 v6 = icmp uge v2, v5 ; v5 = 23;; @0033 v7 = uextend.i64 v2;; @0033 v8 = load.i64 notrap aligned readonly can_move v0+48-;; v29 = iconst.i64 3-;; @0033 v9 = ishl v7, v29 ; v29 = 3-;; @0033 v10 = iadd v8, v9-;; @0033 v11 = iconst.i64 0-;; @0033 v12 = select_spectre_guard v6, v11, v10 ; v11 = 0-;; @0033 v13 = load.i64 user6 aligned region0 v12-;; v28 = iconst.i64 -2-;; @0033 v14 = band v13, v28 ; v28 = -2-;; @0033 brif v13, block3(v14), block2+;; @0033 v9 = iconst.i64 3+;; @0033 v10 = ishl v7, v9 ; v9 = 3+;; @0033 v11 = iadd v8, v10+;; @0033 v12 = iconst.i64 0+;; @0033 v13 = select_spectre_guard v6, v12, v11 ; v12 = 0+;; @0033 v14 = load.i64 user6 aligned region0 v13+;; @0033 v15 = iconst.i64 -2+;; @0033 v16 = band v14, v15 ; v15 = -2+;; @0033 brif v14, block3(v16), block2;;;; block2 cold:-;; @0033 v16 = iconst.i32 0-;; @0033 v18 = uextend.i64 v2-;; @0033 v19 = call fn0(v0, v16, v18) ; v16 = 0-;; @0033 jump block3(v19)+;; @0033 v18 = iconst.i32 0+;; @0033 v20 = uextend.i64 v2+;; @0033 v21 = call fn0(v0, v18, v20) ; v18 = 0+;; @0033 jump block3(v21);;-;; block3(v15: i64):-;; @0033 v21 = load.i64 notrap aligned readonly can_move v0+40-;; @0033 v22 = load.i32 notrap aligned readonly can_move v21-;; @0033 v23 = load.i32 user7 aligned readonly v15+16-;; @0033 v24 = icmp eq v23, v22-;; @0033 trapz v24, user8-;; @0033 v25 = load.i64 notrap aligned readonly v15+8-;; @0033 v26 = load.i64 notrap aligned readonly v15+24-;; @0033 v27 = call_indirect sig0, v25(v26, v0, v3)+;; block3(v17: i64):+;; @0033 v23 = load.i64 notrap aligned readonly can_move v0+40+;; @0033 v24 = load.i32 notrap aligned readonly can_move v23+;; @0033 v25 = load.i32 user7 aligned readonly v17+16+;; @0033 v26 = icmp eq v25, v24+;; @0033 trapz v26, user8+;; @0033 v27 = load.i64 notrap aligned readonly v17+8+;; @0033 v28 = load.i64 notrap aligned readonly v17+24+;; @0033 v29 = call_indirect sig0, v27(v28, v0, v3);; @0036 jump block1;;;; block1:-;; @0036 return v27+;; @0036 return v29;; }diff --git a/tests/disas/indirect-call-no-caching.wat b/tests/disas/indirect-call-no-caching.watindex fccbf8a85a..32a58a3b19 100644--- a/tests/disas/indirect-call-no-caching.wat+++ b/tests/disas/indirect-call-no-caching.wat@@ -79,33 +79,33 @@;; @0050 v5 = icmp uge v2, v4 ; v4 = 10;; @0050 v6 = uextend.i64 v2;; @0050 v7 = load.i64 notrap aligned readonly can_move v0+48-;; v28 = iconst.i64 3-;; @0050 v8 = ishl v6, v28 ; v28 = 3-;; @0050 v9 = iadd v7, v8-;; @0050 v10 = iconst.i64 0-;; @0050 v11 = select_spectre_guard v5, v10, v9 ; v10 = 0-;; @0050 v12 = load.i64 user6 aligned region0 v11-;; v27 = iconst.i64 -2-;; @0050 v13 = band v12, v27 ; v27 = -2-;; @0050 brif v12, block3(v13), block2+;; @0050 v8 = iconst.i64 3+;; @0050 v9 = ishl v6, v8 ; v8 = 3+;; @0050 v10 = iadd v7, v9+;; @0050 v11 = iconst.i64 0+;; @0050 v12 = select_spectre_guard v5, v11, v10 ; v11 = 0+;; @0050 v13 = load.i64 user6 aligned region0 v12+;; @0050 v14 = iconst.i64 -2+;; @0050 v15 = band v13, v14 ; v14 = -2+;; @0050 brif v13, block3(v15), block2;;;; block2 cold:-;; @0050 v15 = iconst.i32 0-;; @0050 v17 = uextend.i64 v2-;; @0050 v18 = call fn0(v0, v15, v17) ; v15 = 0-;; @0050 jump block3(v18)+;; @0050 v17 = iconst.i32 0+;; @0050 v19 = uextend.i64 v2+;; @0050 v20 = call fn0(v0, v17, v19) ; v17 = 0+;; @0050 jump block3(v20);;-;; block3(v14: i64):-;; @0050 v20 = load.i64 notrap aligned readonly can_move v0+40-;; @0050 v21 = load.i32 notrap aligned readonly can_move v20-;; @0050 v22 = load.i32 user7 aligned readonly v14+16-;; @0050 v23 = icmp eq v22, v21-;; @0050 trapz v23, user8-;; @0050 v24 = load.i64 notrap aligned readonly v14+8-;; @0050 v25 = load.i64 notrap aligned readonly v14+24-;; @0050 v26 = call_indirect sig0, v24(v25, v0)+;; block3(v16: i64):+;; @0050 v22 = load.i64 notrap aligned readonly can_move v0+40+;; @0050 v23 = load.i32 notrap aligned readonly can_move v22+;; @0050 v24 = load.i32 user7 aligned readonly v16+16+;; @0050 v25 = icmp eq v24, v23+;; @0050 trapz v25, user8+;; @0050 v26 = load.i64 notrap aligned readonly v16+8+;; @0050 v27 = load.i64 notrap aligned readonly v16+24+;; @0050 v28 = call_indirect sig0, v26(v27, v0);; @0053 jump block1;;;; block1:-;; @0053 return v26+;; @0053 return v28;; }diff --git a/tests/disas/readonly-funcrefs.wat b/tests/disas/readonly-funcrefs.watindex 57c7b51f32..7f8c9be2ae 100644--- a/tests/disas/readonly-funcrefs.wat+++ b/tests/disas/readonly-funcrefs.wat@@ -46,32 +46,32 @@;; block0(v0: i64, v1: i64, v2: i32):;; @0031 v3 = iconst.i32 2;; @0031 v4 = icmp uge v2, v3 ; v3 = 2-;; @0031 v9 = iconst.i64 0+;; @0031 v10 = iconst.i64 0;; @0031 v6 = load.i64 notrap aligned readonly can_move v0+48;; @0031 v5 = uextend.i64 v2-;; v26 = iconst.i64 3-;; @0031 v7 = ishl v5, v26 ; v26 = 3-;; @0031 v8 = iadd v6, v7-;; @0031 v10 = select_spectre_guard v4, v9, v8 ; v9 = 0-;; @0031 v11 = load.i64 user6 aligned region0 v10-;; v25 = iconst.i64 -2-;; @0031 v12 = band v11, v25 ; v25 = -2-;; @0031 brif v11, block3(v12), block2+;; @0031 v7 = iconst.i64 3+;; @0031 v8 = ishl v5, v7 ; v7 = 3+;; @0031 v9 = iadd v6, v8+;; @0031 v11 = select_spectre_guard v4, v10, v9 ; v10 = 0+;; @0031 v12 = load.i64 user6 aligned region0 v11+;; @0031 v13 = iconst.i64 -2+;; @0031 v14 = band v12, v13 ; v13 = -2+;; @0031 brif v12, block3(v14), block2;;;; block2 cold:-;; @0031 v14 = iconst.i32 0-;; @0031 v17 = call fn0(v0, v14, v5) ; v14 = 0-;; @0031 jump block3(v17)+;; @0031 v16 = iconst.i32 0+;; @0031 v19 = call fn0(v0, v16, v5) ; v16 = 0+;; @0031 jump block3(v19);;-;; block3(v13: i64):-;; @0031 v21 = load.i32 user7 aligned readonly v13+16-;; @0031 v19 = load.i64 notrap aligned readonly can_move v0+40-;; @0031 v20 = load.i32 notrap aligned readonly can_move v19-;; @0031 v22 = icmp eq v21, v20-;; @0031 trapz v22, user8-;; @0031 v23 = load.i64 notrap aligned readonly v13+8-;; @0031 v24 = load.i64 notrap aligned readonly v13+24-;; @0031 call_indirect sig0, v23(v24, v0)+;; block3(v15: i64):+;; @0031 v23 = load.i32 user7 aligned readonly v15+16+;; @0031 v21 = load.i64 notrap aligned readonly can_move v0+40+;; @0031 v22 = load.i32 notrap aligned readonly can_move v21+;; @0031 v24 = icmp eq v23, v22+;; @0031 trapz v24, user8+;; @0031 v25 = load.i64 notrap aligned readonly v15+8+;; @0031 v26 = load.i64 notrap aligned readonly v15+24+;; @0031 call_indirect sig0, v25(v26, v0);; @0034 jump block1;;;; block1:diff --git a/tests/disas/riscv64-component-builtins.wat b/tests/disas/riscv64-component-builtins.watindex 9975e8a268..0978a74137 100644--- a/tests/disas/riscv64-component-builtins.wat+++ b/tests/disas/riscv64-component-builtins.wat@@ -22,25 +22,25 @@;; v5 = get_return_address.i64;; store notrap aligned v5, v3+56;; v6 = load.i32 notrap aligned v0+32-;; v17 = iconst.i32 1-;; v7 = band v6, v17 ; v17 = 1-;; trapz v7, user26-;; v10 = load.i64 notrap aligned readonly v0+8-;; v11 = load.i64 notrap aligned readonly v10+16-;; v8 = iconst.i32 0-;; v12 = call_indirect sig0, v11(v0, v8, v8, v2) ; v8 = 0, v8 = 0-;; v13 = iconst.i64 -1-;; v14 = icmp ne v12, v13 ; v13 = -1-;; brif v14, block2, block1+;; v7 = iconst.i32 1+;; v8 = band v6, v7 ; v7 = 1+;; trapz v8, user26+;; v11 = load.i64 notrap aligned readonly v0+8+;; v12 = load.i64 notrap aligned readonly v11+16+;; v9 = iconst.i32 0+;; v13 = call_indirect sig0, v12(v0, v9, v9, v2) ; v9 = 0, v9 = 0+;; v14 = iconst.i64 -1+;; v15 = icmp ne v13, v14 ; v14 = -1+;; brif v15, block2, block1;;;; block1 cold:-;; v15 = load.i64 notrap aligned readonly v1+16-;; v16 = load.i64 notrap aligned readonly v15+328-;; call_indirect sig1, v16(v1)+;; v16 = load.i64 notrap aligned readonly v1+16+;; v17 = load.i64 notrap aligned readonly v16+328+;; call_indirect sig1, v17(v1);; trap user1;;;; block2:-;; brif.i64 v12, block3, block4+;; brif.i64 v13, block3, block4;;;; block3:;; jump block4diff --git a/tests/disas/stack-switching/resume-suspend-data-passing.wat b/tests/disas/stack-switching/resume-suspend-data-passing.watindex 8a45f2139c..032d97cea0 100644--- a/tests/disas/stack-switching/resume-suspend-data-passing.wat+++ b/tests/disas/stack-switching/resume-suspend-data-passing.wat@@ -51,8 +51,8 @@;; @0044 v36 = stack_addr.i64 ss0;; @0044 v42 = iconst.i64 16;; @0044 v39 = iconst.i64 0-;; @0044 v50 = iconst.i64 80-;; @0044 v53 = iconst.i64 -24+;; @0044 v51 = iconst.i64 80+;; @0044 v54 = iconst.i64 -24;; v70 = iconst.i64 0x0002_0000_0000;; @0040 jump block2(v3) ; v3 = 10;;@@ -65,7 +65,7 @@;; @003a v2 = iconst.i32 0;; @0044 jump block4(v10, v11, v4);;-;; block4(v12: i64, v13: i64, v63: i32):+;; block4(v12: i64, v13: i64, v64: i32):;; v73 = iconst.i64 1;; v74 = icmp eq v12, v73 ; v73 = 1;; @0044 trapnz v74, user22@@ -87,7 +87,7 @@;;;; block6(v23: i32):;; @0044 v24 = icmp ult v23, v21-;; @0044 brif v24, block7, block4(v16, v17, v63)+;; @0044 brif v24, block7, block4(v16, v17, v64);;;; block7:;; v78 = iconst.i32 3@@ -119,19 +119,19 @@;; @0044 store notrap aligned v90, v13+56 ; v90 = 0;; v91 = iconst.i64 80;; v92 = iadd.i64 v13, v91 ; v91 = 80-;; @0044 v52 = load.i64 notrap aligned v92+;; @0044 v53 = load.i64 notrap aligned v92;; v93 = iconst.i64 -24-;; v94 = iadd v52, v93 ; v93 = -24-;; @0044 v48 = uextend.i64 v23+;; v94 = iadd v53, v93 ; v93 = -24+;; @0044 v49 = uextend.i64 v23;; v95 = iconst.i64 0x0002_0000_0000-;; v96 = bor v48, v95 ; v95 = 0x0002_0000_0000-;; @0044 v55 = stack_switch v94, v94, v96-;; @0044 v58 = load.i64 notrap aligned v86+8+;; v96 = bor v49, v95 ; v95 = 0x0002_0000_0000+;; @0044 v56 = stack_switch v94, v94, v96+;; @0044 v59 = load.i64 notrap aligned v86+8;; v97 = iconst.i32 0;; @0044 store notrap aligned v97, v86 ; v97 = 0;; @0044 store notrap aligned v97, v86+4 ; v97 = 0;; @0044 store notrap aligned v90, v86+8 ; v90 = 0-;; v98 = isub.i32 v63, v84 ; v84 = 1+;; v98 = isub.i32 v64, v84 ; v84 = 1;; @004d brif v98, block2(v98), block10;;;; block10:@@ -163,149 +163,149 @@;; @0058 v8 = call fn1(v0, v4, v2, v2) ; v2 = 0, v2 = 0;; @0058 v9 = load.i64 notrap aligned v8+72;; @0058 v11 = uextend.i128 v9-;; v119 = iconst.i64 64-;; v121 = ishl v11, v119 ; v119 = 64+;; @0058 v12 = iconst.i64 64+;; v121 = ishl v11, v12 ; v12 = 64;; @0058 v10 = uextend.i128 v8-;; @0058 v13 = bor v121, v10-;; @0062 v23 = iconst.i64 1-;; @0062 v29 = iconst.i64 0-;; @0062 v30 = iconst.i64 2-;; @0062 v34 = iconst.i32 1-;; @0062 v35 = iconst.i64 16-;; @0062 v37 = iconst.i32 2-;; @0062 v49 = iconst.i64 24-;; @0062 v52 = stack_addr.i64 ss0-;; @0062 v54 = iconst.i64 48-;; @0062 v55 = iadd v0, v54 ; v54 = 48-;; @0062 v61 = iconst.i64 80-;; @0062 v64 = iconst.i64 -24+;; @0058 v15 = bor v121, v10+;; @0062 v27 = iconst.i64 1+;; @0062 v33 = iconst.i64 0+;; @0062 v34 = iconst.i64 2+;; @0062 v38 = iconst.i32 1+;; @0062 v39 = iconst.i64 16+;; @0062 v41 = iconst.i32 2+;; @0062 v53 = iconst.i64 24+;; @0062 v56 = stack_addr.i64 ss0+;; @0062 v58 = iconst.i64 48+;; @0062 v59 = iadd v0, v58 ; v58 = 48+;; @0062 v66 = iconst.i64 80+;; @0062 v69 = iconst.i64 -24;; v125 = iconst.i64 0x0001_0000_0000-;; v116 = iconst.i64 32-;; @005c jump block2(v13)+;; @0062 v64 = iconst.i64 32+;; @005c jump block2(v15);;-;; block2(v16: i128):+;; block2(v18: i128):;; @0062 jump block5;;;; block5:-;; @0062 v18 = ireduce.i64 v16-;; @0062 trapz v18, user16-;; @0062 v21 = load.i64 notrap aligned v18+72+;; @0062 v20 = ireduce.i64 v18+;; @0062 trapz v20, user16+;; @0062 v25 = load.i64 notrap aligned v20+72;; v128 = iconst.i64 64-;; v129 = ushr.i128 v16, v128 ; v128 = 64-;; @0062 v20 = ireduce.i64 v129-;; @0062 v22 = icmp eq v21, v20-;; @0062 trapz v22, user23+;; v129 = ushr.i128 v18, v128 ; v128 = 64+;; @0062 v24 = ireduce.i64 v129+;; @0062 v26 = icmp eq v25, v24+;; @0062 trapz v26, user23;; v130 = iconst.i64 1-;; v131 = iadd v21, v130 ; v130 = 1-;; @0062 store notrap aligned v131, v18+72-;; @0062 v25 = load.i64 notrap aligned v18+64-;; @0062 v26 = load.i64 notrap aligned v0+8-;; @0062 v27 = load.i64 notrap aligned v26+88-;; @0062 v28 = load.i64 notrap aligned v26+96-;; @0062 store notrap aligned v27, v25+48-;; @0062 store notrap aligned v28, v25+56+;; v131 = iadd v25, v130 ; v130 = 1+;; @0062 store notrap aligned v131, v20+72+;; @0062 v29 = load.i64 notrap aligned v20+64+;; @0062 v30 = load.i64 notrap aligned v0+8+;; @0062 v31 = load.i64 notrap aligned v30+88+;; @0062 v32 = load.i64 notrap aligned v30+96+;; @0062 store notrap aligned v31, v29+48+;; @0062 store notrap aligned v32, v29+56;; v132 = iconst.i64 0-;; @0062 store notrap aligned v132, v18+64 ; v132 = 0-;; @0062 v31 = load.i64 notrap aligned v0+8+;; @0062 store notrap aligned v132, v20+64 ; v132 = 0+;; @0062 v35 = load.i64 notrap aligned v0+8;; v133 = iconst.i64 2-;; @0062 store notrap aligned v133, v31+88 ; v133 = 2-;; @0062 store notrap aligned v18, v31+96+;; @0062 store notrap aligned v133, v35+88 ; v133 = 2+;; @0062 store notrap aligned v20, v35+96;; v134 = iconst.i32 1;; v135 = iconst.i64 16-;; v136 = iadd v18, v135 ; v135 = 16+;; v136 = iadd v20, v135 ; v135 = 16;; @0062 store notrap aligned v134, v136 ; v134 = 1;; v137 = iconst.i32 2-;; v138 = iadd v28, v135 ; v135 = 16+;; v138 = iadd v32, v135 ; v135 = 16;; @0062 store notrap aligned v137, v138 ; v137 = 2-;; @0062 v40 = load.i64 notrap aligned readonly v0+8-;; @0062 v43 = load.i64 notrap aligned v40+72-;; @0062 store notrap aligned v43, v28+8-;; @0062 v44 = load.i64 notrap aligned v40+24-;; @0062 store notrap aligned v44, v28-;; @0062 v47 = load.i64 notrap aligned v18-;; @0062 store notrap aligned v47, v40+24-;; @0062 v48 = load.i64 notrap aligned v18+8-;; @0062 store notrap aligned v48, v40+72+;; @0062 v44 = load.i64 notrap aligned readonly v0+8+;; @0062 v47 = load.i64 notrap aligned v44+72+;; @0062 store notrap aligned v47, v32+8+;; @0062 v48 = load.i64 notrap aligned v44+24+;; @0062 store notrap aligned v48, v32+;; @0062 v51 = load.i64 notrap aligned v20+;; @0062 store notrap aligned v51, v44+24+;; @0062 v52 = load.i64 notrap aligned v20+8+;; @0062 store notrap aligned v52, v44+72;; v139 = iconst.i64 24-;; v140 = iadd v28, v139 ; v139 = 24+;; v140 = iadd v32, v139 ; v139 = 24;; @0062 store notrap aligned v134, v140+4 ; v134 = 1-;; @0062 store.i64 notrap aligned v52, v140+8-;; v141 = iadd.i64 v0, v54 ; v54 = 48-;; @0062 store notrap aligned v141, v52+;; @0062 store.i64 notrap aligned v56, v140+8+;; v141 = iadd.i64 v0, v58 ; v58 = 48+;; @0062 store notrap aligned v141, v56;; @0062 store notrap aligned v134, v140 ; v134 = 1-;; @0062 store notrap aligned v134, v28+40 ; v134 = 1+;; @0062 store notrap aligned v134, v32+40 ; v134 = 1;; v142 = iconst.i64 80-;; v143 = iadd v25, v142 ; v142 = 80-;; @0062 v63 = load.i64 notrap aligned v143+;; v143 = iadd v29, v142 ; v142 = 80+;; @0062 v68 = load.i64 notrap aligned v143;; v144 = iconst.i64 -24-;; v145 = iadd v63, v144 ; v144 = -24+;; v145 = iadd v68, v144 ; v144 = -24;; v146 = iconst.i64 0x0001_0000_0000-;; @0062 v66 = stack_switch v145, v145, v146 ; v146 = 0x0001_0000_0000-;; @0062 v67 = load.i64 notrap aligned v0+8-;; @0062 v68 = load.i64 notrap aligned v67+88-;; @0062 v69 = load.i64 notrap aligned v67+96-;; @0062 store notrap aligned v27, v67+88-;; @0062 store notrap aligned v28, v67+96+;; @0062 v71 = stack_switch v145, v145, v146 ; v146 = 0x0001_0000_0000+;; @0062 v72 = load.i64 notrap aligned v0+8+;; @0062 v73 = load.i64 notrap aligned v72+88+;; @0062 v74 = load.i64 notrap aligned v72+96+;; @0062 store notrap aligned v31, v72+88+;; @0062 store notrap aligned v32, v72+96;; @0062 store notrap aligned v134, v138 ; v134 = 1;; v147 = iconst.i32 0;; @0062 store notrap aligned v147, v140 ; v147 = 0;; @0062 store notrap aligned v147, v140+4 ; v147 = 0;; @0062 store notrap aligned v132, v140+8 ; v132 = 0-;; @0062 store notrap aligned v132, v28+40 ; v132 = 0+;; @0062 store notrap aligned v132, v32+40 ; v132 = 0;; v148 = iconst.i64 32-;; v149 = ushr v66, v148 ; v148 = 32+;; v149 = ushr v71, v148 ; v148 = 32;; @0062 brif v149, block7, block6;;;; block7:-;; @0062 v82 = load.i64 notrap aligned v40+72-;; @0062 store notrap aligned v82, v69+8-;; @0062 v85 = load.i64 notrap aligned v28-;; @0062 store notrap aligned v85, v40+24-;; @0062 v86 = load.i64 notrap aligned v28+8-;; @0062 store notrap aligned v86, v40+72-;; @0062 v88 = load.i64 notrap aligned v69+72+;; @0062 v88 = load.i64 notrap aligned v44+72+;; @0062 store notrap aligned v88, v74+8+;; @0062 v91 = load.i64 notrap aligned v32+;; @0062 store notrap aligned v91, v44+24+;; @0062 v92 = load.i64 notrap aligned v32+8+;; @0062 store notrap aligned v92, v44+72+;; @0062 v94 = load.i64 notrap aligned v74+72;; @0062 jump block8;;;; block9 cold:;; @0062 trap user12;;;; block10:-;; @0062 v93 = iconst.i64 120-;; @0062 v94 = iadd.i64 v69, v93 ; v93 = 120-;; @0062 v95 = load.i64 notrap aligned v94+8-;; @0062 v96 = load.i32 notrap aligned v95+;; @0062 v101 = iconst.i64 120+;; @0062 v102 = iadd.i64 v74, v101 ; v101 = 120+;; @0062 v103 = load.i64 notrap aligned v102+8+;; @0062 v104 = load.i32 notrap aligned v103;; v154 = iconst.i32 0-;; @0062 store notrap aligned v154, v94 ; v154 = 0+;; @0062 store notrap aligned v154, v102 ; v154 = 0;; @0062 jump block4;;;; block8:-;; @0062 v87 = ireduce.i32 v66-;; @0062 br_table v87, block9, [block10]+;; @0062 v93 = ireduce.i32 v71+;; @0062 br_table v93, block9, [block10];;;; block6:-;; @0062 v100 = load.i64 notrap aligned v28-;; @0062 store notrap aligned v100, v40+24-;; @0062 v101 = load.i64 notrap aligned v28+8-;; @0062 store notrap aligned v101, v40+72-;; @0062 v104 = iconst.i32 4+;; @0062 v108 = load.i64 notrap aligned v32+;; @0062 store notrap aligned v108, v44+24+;; @0062 v109 = load.i64 notrap aligned v32+8+;; @0062 store notrap aligned v109, v44+72+;; @0062 v112 = iconst.i32 4;; v150 = iconst.i64 16-;; v151 = iadd.i64 v69, v150 ; v150 = 16-;; @0062 store notrap aligned v104, v151 ; v104 = 4-;; @0062 v107 = iconst.i64 104-;; @0062 v108 = iadd.i64 v69, v107 ; v107 = 104-;; @0062 v109 = load.i64 notrap aligned v108+8+;; v151 = iadd.i64 v74, v150 ; v150 = 16+;; @0062 store notrap aligned v112, v151 ; v112 = 4+;; @0062 v115 = iconst.i64 104+;; @0062 v116 = iadd.i64 v74, v115 ; v115 = 104+;; @0062 v117 = load.i64 notrap aligned v116+8;; v152 = iconst.i32 0-;; @0062 store notrap aligned v152, v108 ; v152 = 0-;; @0062 store notrap aligned v152, v108+4 ; v152 = 0+;; @0062 store notrap aligned v152, v116 ; v152 = 0+;; @0062 store notrap aligned v152, v116+4 ; v152 = 0;; v153 = iconst.i64 0-;; @0062 store notrap aligned v153, v108+8 ; v153 = 0+;; @0062 store notrap aligned v153, v116+8 ; v153 = 0;; @0068 return;;;; block4:-;; @0062 v90 = uextend.i128 v88+;; @0062 v96 = uextend.i128 v94;; v155 = iconst.i64 64-;; v156 = ishl v90, v155 ; v155 = 64-;; @0062 v89 = uextend.i128 v69-;; @0062 v92 = bor v156, v89-;; @006d jump block2(v92)+;; v156 = ishl v96, v155 ; v155 = 64+;; @0062 v95 = uextend.i128 v74+;; @0062 v100 = bor v156, v95+;; @006d jump block2(v100);; }diff --git a/tests/disas/stack-switching/resume-suspend.wat b/tests/disas/stack-switching/resume-suspend.watindex 09f089dc98..3eb43373bc 100644--- a/tests/disas/stack-switching/resume-suspend.wat+++ b/tests/disas/stack-switching/resume-suspend.wat@@ -83,18 +83,18 @@;; @003b v32 = iconst.i64 0;; @003b store notrap aligned v32, v10+48 ; v32 = 0;; @003b store notrap aligned v32, v10+56 ; v32 = 0-;; @003b v43 = iconst.i64 80-;; @003b v44 = iadd.i64 v10, v43 ; v43 = 80-;; @003b v45 = load.i64 notrap aligned v44-;; @003b v46 = iconst.i64 -24-;; @003b v47 = iadd v45, v46 ; v46 = -24-;; @003b v41 = uextend.i64 v20+;; @003b v44 = iconst.i64 80+;; @003b v45 = iadd.i64 v10, v44 ; v44 = 80+;; @003b v46 = load.i64 notrap aligned v45+;; @003b v47 = iconst.i64 -24+;; @003b v48 = iadd v46, v47 ; v47 = -24+;; @003b v42 = uextend.i64 v20;; v59 = iconst.i64 0x0002_0000_0000-;; v60 = bor v41, v59 ; v59 = 0x0002_0000_0000-;; @003b v48 = stack_switch v47, v47, v60+;; v60 = bor v42, v59 ; v59 = 0x0002_0000_0000+;; @003b v49 = stack_switch v48, v48, v60;; @003b v30 = iconst.i64 120;; @003b v31 = iadd.i64 v8, v30 ; v30 = 120-;; @003b v51 = load.i64 notrap aligned v31+8+;; @003b v52 = load.i64 notrap aligned v31+8;; v74 = iconst.i32 0;; @003b store notrap aligned v74, v31 ; v74 = 0;; @003b store notrap aligned v74, v31+4 ; v74 = 0@@ -118,144 +118,144 @@;; stack_limit = gv2;;;; block0(v0: i64, v1: i64):-;; @0043 v7 = iconst.i32 0-;; @0043 v9 = call fn0(v0, v7) ; v7 = 0-;; @0045 trapz v9, user16-;; @0045 v13 = call fn1(v0, v9, v7, v7) ; v7 = 0, v7 = 0-;; @0045 v14 = load.i64 notrap aligned v13+72+;; @0043 v9 = iconst.i32 0+;; @0043 v11 = call fn0(v0, v9) ; v9 = 0+;; @0045 trapz v11, user16+;; @0045 v15 = call fn1(v0, v11, v9, v9) ; v9 = 0, v9 = 0+;; @0045 v16 = load.i64 notrap aligned v15+72;; @004e jump block3;;;; block3:-;; @0045 v16 = uextend.i128 v14-;; v130 = iconst.i64 64-;; v134 = ishl v16, v130 ; v130 = 64+;; @0045 v18 = uextend.i128 v16+;; @0040 v5 = iconst.i64 64+;; v134 = ishl v18, v5 ; v5 = 64;; v136 = ireduce.i64 v134-;; v138 = bor v136, v13+;; v138 = bor v136, v15;; @004e trapz v138, user16-;; @004e v24 = load.i64 notrap aligned v138+72-;; @0045 v15 = uextend.i128 v13-;; @0045 v18 = bor v134, v15-;; v140 = ushr v18, v130 ; v130 = 64-;; @004e v23 = ireduce.i64 v140-;; @004e v25 = icmp eq v24, v23-;; @004e trapz v25, user23-;; @004e v26 = iconst.i64 1-;; @004e v27 = iadd v24, v26 ; v26 = 1-;; @004e store notrap aligned v27, v138+72-;; @004e v28 = load.i64 notrap aligned v138+64-;; @004e v29 = load.i64 notrap aligned v0+8-;; @004e v30 = load.i64 notrap aligned v29+88-;; @004e v31 = load.i64 notrap aligned v29+96-;; @004e store notrap aligned v30, v28+48-;; @004e store notrap aligned v31, v28+56+;; @004e v30 = load.i64 notrap aligned v138+72+;; @0045 v17 = uextend.i128 v15+;; @0045 v22 = bor v134, v17+;; v140 = ushr v22, v5 ; v5 = 64+;; @004e v29 = ireduce.i64 v140+;; @004e v31 = icmp eq v30, v29+;; @004e trapz v31, user23+;; @004e v32 = iconst.i64 1+;; @004e v33 = iadd v30, v32 ; v32 = 1+;; @004e store notrap aligned v33, v138+72+;; @004e v34 = load.i64 notrap aligned v138+64+;; @004e v35 = load.i64 notrap aligned v0+8+;; @004e v36 = load.i64 notrap aligned v35+88+;; @004e v37 = load.i64 notrap aligned v35+96+;; @004e store notrap aligned v36, v34+48+;; @004e store notrap aligned v37, v34+56;; @0040 v2 = iconst.i64 0;; @004e store notrap aligned v2, v138+64 ; v2 = 0-;; @004e v34 = load.i64 notrap aligned v0+8-;; @004e v33 = iconst.i64 2-;; @004e store notrap aligned v33, v34+88 ; v33 = 2-;; @004e store notrap aligned v138, v34+96-;; @004e v37 = iconst.i32 1-;; @004e v38 = iconst.i64 16-;; @004e v39 = iadd v138, v38 ; v38 = 16-;; @004e store notrap aligned v37, v39 ; v37 = 1-;; @004e v40 = iconst.i32 2-;; @004e v42 = iadd v31, v38 ; v38 = 16-;; @004e store notrap aligned v40, v42 ; v40 = 2-;; @004e v43 = load.i64 notrap aligned readonly v0+8-;; @004e v46 = load.i64 notrap aligned v43+72-;; @004e store notrap aligned v46, v31+8-;; @004e v47 = load.i64 notrap aligned v43+24-;; @004e store notrap aligned v47, v31-;; @004e v50 = load.i64 notrap aligned v138-;; @004e store notrap aligned v50, v43+24-;; @004e v51 = load.i64 notrap aligned v138+8-;; @004e store notrap aligned v51, v43+72-;; @004e v52 = iconst.i64 24-;; @004e v53 = iadd v31, v52 ; v52 = 24-;; @004e store notrap aligned v37, v53+4 ; v37 = 1-;; @004e v55 = stack_addr.i64 ss0-;; @004e store notrap aligned v55, v53+8-;; @004e v57 = iconst.i64 48-;; @004e v58 = iadd.i64 v0, v57 ; v57 = 48-;; @004e store notrap aligned v58, v55-;; @004e store notrap aligned v37, v53 ; v37 = 1-;; @004e store notrap aligned v37, v31+40 ; v37 = 1-;; @004e v64 = iconst.i64 80-;; @004e v65 = iadd v28, v64 ; v64 = 80-;; @004e v66 = load.i64 notrap aligned v65-;; @004e v67 = iconst.i64 -24-;; @004e v68 = iadd v66, v67 ; v67 = -24+;; @004e v40 = load.i64 notrap aligned v0+8+;; @004e v39 = iconst.i64 2+;; @004e store notrap aligned v39, v40+88 ; v39 = 2+;; @004e store notrap aligned v138, v40+96+;; @004e v43 = iconst.i32 1+;; @004e v44 = iconst.i64 16+;; @004e v45 = iadd v138, v44 ; v44 = 16+;; @004e store notrap aligned v43, v45 ; v43 = 1+;; @004e v46 = iconst.i32 2+;; @004e v48 = iadd v37, v44 ; v44 = 16+;; @004e store notrap aligned v46, v48 ; v46 = 2+;; @004e v49 = load.i64 notrap aligned readonly v0+8+;; @004e v52 = load.i64 notrap aligned v49+72+;; @004e store notrap aligned v52, v37+8+;; @004e v53 = load.i64 notrap aligned v49+24+;; @004e store notrap aligned v53, v37+;; @004e v56 = load.i64 notrap aligned v138+;; @004e store notrap aligned v56, v49+24+;; @004e v57 = load.i64 notrap aligned v138+8+;; @004e store notrap aligned v57, v49+72+;; @004e v58 = iconst.i64 24+;; @004e v59 = iadd v37, v58 ; v58 = 24+;; @004e store notrap aligned v43, v59+4 ; v43 = 1+;; @004e v61 = stack_addr.i64 ss0+;; @004e store notrap aligned v61, v59+8+;; @004e v63 = iconst.i64 48+;; @004e v64 = iadd.i64 v0, v63 ; v63 = 48+;; @004e store notrap aligned v64, v61+;; @004e store notrap aligned v43, v59 ; v43 = 1+;; @004e store notrap aligned v43, v37+40 ; v43 = 1+;; @004e v71 = iconst.i64 80+;; @004e v72 = iadd v34, v71 ; v71 = 80+;; @004e v73 = load.i64 notrap aligned v72+;; @004e v74 = iconst.i64 -24+;; @004e v75 = iadd v73, v74 ; v74 = -24;; v142 = iconst.i64 0x0001_0000_0000-;; @004e v69 = stack_switch v68, v68, v142 ; v142 = 0x0001_0000_0000-;; @004e v70 = load.i64 notrap aligned v0+8-;; @004e v71 = load.i64 notrap aligned v70+88-;; @004e v72 = load.i64 notrap aligned v70+96-;; @004e store notrap aligned v30, v70+88-;; @004e store notrap aligned v31, v70+96-;; @004e store notrap aligned v37, v42 ; v37 = 1+;; @004e v76 = stack_switch v75, v75, v142 ; v142 = 0x0001_0000_0000+;; @004e v77 = load.i64 notrap aligned v0+8+;; @004e v78 = load.i64 notrap aligned v77+88+;; @004e v79 = load.i64 notrap aligned v77+96+;; @004e store notrap aligned v36, v77+88+;; @004e store notrap aligned v37, v77+96+;; @004e store notrap aligned v43, v48 ; v43 = 1;; v145 = iconst.i32 0-;; @004e store notrap aligned v145, v53 ; v145 = 0-;; @004e store notrap aligned v145, v53+4 ; v145 = 0-;; @004e store notrap aligned v2, v53+8 ; v2 = 0-;; @004e store notrap aligned v2, v31+40 ; v2 = 0-;; v125 = iconst.i64 32-;; @004e v80 = ushr v69, v125 ; v125 = 32-;; @004e brif v80, block5, block4+;; @004e store notrap aligned v145, v59 ; v145 = 0+;; @004e store notrap aligned v145, v59+4 ; v145 = 0+;; @004e store notrap aligned v2, v59+8 ; v2 = 0+;; @004e store notrap aligned v2, v37+40 ; v2 = 0+;; @004e v69 = iconst.i64 32+;; @004e v88 = ushr v76, v69 ; v69 = 32+;; @004e brif v88, block5, block4;;;; block5:-;; @004e v85 = load.i64 notrap aligned v43+72-;; @004e store notrap aligned v85, v72+8-;; @004e v88 = load.i64 notrap aligned v31-;; @004e store notrap aligned v88, v43+24-;; @004e v89 = load.i64 notrap aligned v31+8-;; @004e store notrap aligned v89, v43+72-;; @004e v91 = load.i64 notrap aligned v72+72+;; @004e v93 = load.i64 notrap aligned v49+72+;; @004e store notrap aligned v93, v79+8+;; @004e v96 = load.i64 notrap aligned v37+;; @004e store notrap aligned v96, v49+24+;; @004e v97 = load.i64 notrap aligned v37+8+;; @004e store notrap aligned v97, v49+72+;; @004e v99 = load.i64 notrap aligned v79+72;; @004e jump block6;;;; block7 cold:;; @004e trap user12;;;; block8:-;; @004e v96 = iconst.i64 120-;; @004e v97 = iadd.i64 v72, v96 ; v96 = 120-;; @004e v98 = load.i64 notrap aligned v97+8+;; @004e v106 = iconst.i64 120+;; @004e v107 = iadd.i64 v79, v106 ; v106 = 120+;; @004e v108 = load.i64 notrap aligned v107+8;; v153 = iconst.i32 0-;; @004e store notrap aligned v153, v97 ; v153 = 0-;; @004e v93 = uextend.i128 v91+;; @004e store notrap aligned v153, v107 ; v153 = 0+;; @004e v101 = uextend.i128 v99;; v154 = iconst.i64 64-;; v155 = ishl v93, v154 ; v154 = 64-;; @004e v92 = uextend.i128 v72-;; @004e v95 = bor v155, v92-;; @004e jump block2(v95)+;; v155 = ishl v101, v154 ; v154 = 64+;; @004e v100 = uextend.i128 v79+;; @004e v105 = bor v155, v100+;; @004e jump block2(v105);;;; block6:-;; @004e v90 = ireduce.i32 v69-;; @004e br_table v90, block7, [block8]+;; @004e v98 = ireduce.i32 v76+;; @004e br_table v98, block7, [block8];;;; block4:-;; @004e v102 = load.i64 notrap aligned v31-;; @004e store notrap aligned v102, v43+24-;; @004e v103 = load.i64 notrap aligned v31+8-;; @004e store notrap aligned v103, v43+72-;; @004e v106 = iconst.i32 4+;; @004e v112 = load.i64 notrap aligned v37+;; @004e store notrap aligned v112, v49+24+;; @004e v113 = load.i64 notrap aligned v37+8+;; @004e store notrap aligned v113, v49+72+;; @004e v116 = iconst.i32 4;; v146 = iconst.i64 16-;; v147 = iadd.i64 v72, v146 ; v146 = 16-;; @004e store notrap aligned v106, v147 ; v106 = 4-;; @004e v109 = iconst.i64 104-;; @004e v110 = iadd.i64 v72, v109 ; v109 = 104-;; @004e v111 = load.i64 notrap aligned v110+8+;; v147 = iadd.i64 v79, v146 ; v146 = 16+;; @004e store notrap aligned v116, v147 ; v116 = 4+;; @004e v119 = iconst.i64 104+;; @004e v120 = iadd.i64 v79, v119 ; v119 = 104+;; @004e v121 = load.i64 notrap aligned v120+8;; v148 = iconst.i32 0-;; @004e store notrap aligned v148, v110 ; v148 = 0-;; @004e store notrap aligned v148, v110+4 ; v148 = 0+;; @004e store notrap aligned v148, v120 ; v148 = 0+;; @004e store notrap aligned v148, v120+4 ; v148 = 0;; v149 = iconst.i64 0-;; @004e store notrap aligned v149, v110+8 ; v149 = 0+;; @004e store notrap aligned v149, v120+8 ; v149 = 0;; v150 = uextend.i128 v149 ; v149 = 0;; v151 = iconst.i64 64;; v152 = ishl v150, v151 ; v151 = 64-;; @0040 v6 = bor v152, v150-;; @0056 jump block2(v6)+;; @0040 v8 = bor v152, v150+;; @0056 jump block2(v8);;-;; block2(v19: i128):+;; block2(v23: i128):;; @0058 jump block1;;;; block1:diff --git a/tests/disas/stack-switching/symmetric-switch.wat b/tests/disas/stack-switching/symmetric-switch.watindex 163b008a05..a1a2a0bcc2 100644--- a/tests/disas/stack-switching/symmetric-switch.wat+++ b/tests/disas/stack-switching/symmetric-switch.wat@@ -47,180 +47,180 @@;; @003c v9 = load.i64 notrap aligned v8+72;; @003c v10 = uextend.i128 v8;; @003c v11 = uextend.i128 v9-;; v138 = iconst.i64 64-;; v139 = uextend.i128 v138 ; v138 = 64-;; @003c v12 = ishl v11, v139-;; @003c v13 = bor v12, v10-;; @003e v15 = ireduce.i64 v13-;; v136 = iconst.i64 64-;; v137 = uextend.i128 v136 ; v136 = 64-;; @003e v16 = ushr v13, v137-;; @003e v17 = ireduce.i64 v16-;; @003e trapz v15, user16-;; @003e v18 = load.i64 notrap aligned v15+72-;; @003e v19 = icmp eq v18, v17-;; @003e trapz v19, user23-;; @003e v20 = iconst.i64 1-;; @003e v21 = iadd v18, v20 ; v20 = 1-;; @003e store notrap aligned v21, v15+72-;; @003e v23 = iconst.i64 48-;; @003e v24 = iadd v0, v23 ; v23 = 48-;; @003e v25 = load.i64 notrap aligned v0+8-;; @003e v26 = load.i64 notrap aligned v25+88-;; @003e v27 = load.i64 notrap aligned v25+96-;; @003e jump block2(v26, v27)+;; @003c v12 = iconst.i64 64+;; @003c v13 = uextend.i128 v12 ; v12 = 64+;; @003c v14 = ishl v11, v13+;; @003c v15 = bor v14, v10+;; @003e v17 = ireduce.i64 v15+;; @003e v18 = iconst.i64 64+;; @003e v19 = uextend.i128 v18 ; v18 = 64+;; @003e v20 = ushr v15, v19+;; @003e v21 = ireduce.i64 v20+;; @003e trapz v17, user16+;; @003e v22 = load.i64 notrap aligned v17+72+;; @003e v23 = icmp eq v22, v21+;; @003e trapz v23, user23+;; @003e v24 = iconst.i64 1+;; @003e v25 = iadd v22, v24 ; v24 = 1+;; @003e store notrap aligned v25, v17+72+;; @003e v27 = iconst.i64 48+;; @003e v28 = iadd v0, v27 ; v27 = 48+;; @003e v29 = load.i64 notrap aligned v0+8+;; @003e v30 = load.i64 notrap aligned v29+88+;; @003e v31 = load.i64 notrap aligned v29+96+;; @003e jump block2(v30, v31);;-;; block2(v28: i64, v29: i64):-;; @003e v30 = iconst.i64 1-;; @003e v31 = icmp eq v28, v30 ; v30 = 1-;; @003e trapnz v31, user22+;; block2(v32: i64, v33: i64):+;; @003e v34 = iconst.i64 1+;; @003e v35 = icmp eq v32, v34 ; v34 = 1+;; @003e trapnz v35, user22;; @003e jump block3;;;; block3:-;; @003e v32 = load.i64 notrap aligned v29+48-;; @003e v33 = load.i64 notrap aligned v29+56-;; @003e v34 = iconst.i64 24-;; @003e v35 = iadd v33, v34 ; v34 = 24-;; @003e v36 = load.i64 notrap aligned v35+8-;; @003e v37 = load.i32 notrap aligned v33+40-;; @003e v38 = load.i32 notrap aligned v35-;; @003e jump block4(v37)+;; @003e v36 = load.i64 notrap aligned v33+48+;; @003e v37 = load.i64 notrap aligned v33+56+;; @003e v38 = iconst.i64 24+;; @003e v39 = iadd v37, v38 ; v38 = 24+;; @003e v40 = load.i64 notrap aligned v39+8+;; @003e v41 = load.i32 notrap aligned v37+40+;; @003e v42 = load.i32 notrap aligned v39+;; @003e jump block4(v41);;-;; block4(v39: i32):-;; @003e v40 = icmp ult v39, v38-;; @003e brif v40, block5, block2(v32, v33)+;; block4(v43: i32):+;; @003e v44 = icmp ult v43, v42+;; @003e brif v44, block5, block2(v36, v37);;;; block5:-;; @003e v41 = iconst.i32 8-;; @003e v42 = imul.i32 v39, v41 ; v41 = 8-;; @003e v43 = uextend.i64 v42-;; @003e v44 = iadd.i64 v36, v43-;; @003e v45 = load.i64 notrap aligned v44-;; @003e v46 = icmp eq v45, v24-;; @003e v47 = iconst.i32 1-;; @003e v48 = iadd.i32 v39, v47 ; v47 = 1-;; @003e brif v46, block6, block4(v48)+;; @003e v45 = iconst.i32 8+;; @003e v46 = imul.i32 v43, v45 ; v45 = 8+;; @003e v47 = uextend.i64 v46+;; @003e v48 = iadd.i64 v40, v47+;; @003e v49 = load.i64 notrap aligned v48+;; @003e v50 = icmp eq v49, v28+;; @003e v51 = iconst.i32 1+;; @003e v52 = iadd.i32 v43, v51 ; v51 = 1+;; @003e brif v50, block6, block4(v52);;;; block6:-;; @003e store.i64 notrap aligned v29, v27+64-;; @003e v49 = iconst.i64 120-;; @003e v50 = iadd.i64 v27, v49 ; v49 = 120-;; @003e v51 = iconst.i64 0-;; @003e v52 = iadd.i64 v27, v51 ; v51 = 0-;; @003e v53 = iconst.i32 3-;; @003e v54 = iconst.i64 16-;; @003e v55 = iadd v52, v54 ; v54 = 16-;; @003e store notrap aligned v53, v55 ; v53 = 3-;; @003e v56 = iconst.i64 0-;; @003e v57 = iconst.i64 0-;; @003e store notrap aligned v56, v29+48 ; v56 = 0-;; @003e store notrap aligned v57, v29+56 ; v57 = 0-;; @003e v58 = load.i64 notrap aligned readonly v0+8-;; @003e v59 = iconst.i64 0-;; @003e v60 = iadd v52, v59 ; v59 = 0-;; @003e v61 = load.i64 notrap aligned v58+72-;; @003e store notrap aligned v61, v60+8-;; @003e v62 = load.i64 notrap aligned v27+72-;; @003e v63 = uextend.i128 v27-;; @003e v64 = uextend.i128 v62-;; v134 = iconst.i64 64-;; v135 = uextend.i128 v134 ; v134 = 64-;; @003e v65 = ishl v64, v135-;; @003e v66 = bor v65, v63-;; @003e v68 = iconst.i64 0-;; @003e v69 = iadd.i64 v15, v68 ; v68 = 0-;; @003e v70 = iconst.i64 16-;; @003e v71 = iadd v69, v70 ; v70 = 16-;; @003e v72 = load.i32 notrap aligned v71-;; @003e v73 = iconst.i32 0-;; @003e v74 = icmp ne v72, v73 ; v73 = 0-;; @003e brif v74, block9, block8+;; @003e store.i64 notrap aligned v33, v31+64+;; @003e v53 = iconst.i64 120+;; @003e v54 = iadd.i64 v31, v53 ; v53 = 120+;; @003e v55 = iconst.i64 0+;; @003e v56 = iadd.i64 v31, v55 ; v55 = 0+;; @003e v57 = iconst.i32 3+;; @003e v58 = iconst.i64 16+;; @003e v59 = iadd v56, v58 ; v58 = 16+;; @003e store notrap aligned v57, v59 ; v57 = 3+;; @003e v60 = iconst.i64 0+;; @003e v61 = iconst.i64 0+;; @003e store notrap aligned v60, v33+48 ; v60 = 0+;; @003e store notrap aligned v61, v33+56 ; v61 = 0+;; @003e v62 = load.i64 notrap aligned readonly v0+8+;; @003e v63 = iconst.i64 0+;; @003e v64 = iadd v56, v63 ; v63 = 0+;; @003e v65 = load.i64 notrap aligned v62+72+;; @003e store notrap aligned v65, v64+8+;; @003e v66 = load.i64 notrap aligned v31+72+;; @003e v67 = uextend.i128 v31+;; @003e v68 = uextend.i128 v66+;; @003e v69 = iconst.i64 64+;; @003e v70 = uextend.i128 v69 ; v69 = 64+;; @003e v71 = ishl v68, v70+;; @003e v72 = bor v71, v67+;; @003e v74 = iconst.i64 0+;; @003e v75 = iadd.i64 v17, v74 ; v74 = 0+;; @003e v76 = iconst.i64 16+;; @003e v77 = iadd v75, v76 ; v76 = 16+;; @003e v78 = load.i32 notrap aligned v77+;; @003e v79 = iconst.i32 0+;; @003e v80 = icmp ne v78, v79 ; v79 = 0+;; @003e brif v80, block9, block8;;;; block8:-;; @003e v75 = iconst.i64 104-;; @003e v76 = iadd.i64 v15, v75 ; v75 = 104-;; @003e v77 = load.i64 notrap aligned v76+8-;; @003e v78 = load.i32 notrap aligned v76-;; @003e v79 = iconst.i32 1-;; @003e v80 = iadd v78, v79 ; v79 = 1-;; @003e store notrap aligned v80, v76-;; @003e v81 = uextend.i64 v78-;; @003e v82 = iconst.i64 16-;; @003e v83 = imul v81, v82 ; v82 = 16-;; @003e v84 = iadd v77, v83-;; @003e jump block10(v84)+;; @003e v81 = iconst.i64 104+;; @003e v82 = iadd.i64 v17, v81 ; v81 = 104+;; @003e v83 = load.i64 notrap aligned v82+8+;; @003e v84 = load.i32 notrap aligned v82+;; @003e v85 = iconst.i32 1+;; @003e v86 = iadd v84, v85 ; v85 = 1+;; @003e store notrap aligned v86, v82+;; @003e v87 = uextend.i64 v84+;; @003e v88 = iconst.i64 16+;; @003e v89 = imul v87, v88 ; v88 = 16+;; @003e v90 = iadd v83, v89+;; @003e jump block10(v90);;;; block9:-;; @003e v85 = iconst.i64 120-;; @003e v86 = iadd.i64 v15, v85 ; v85 = 120-;; @003e v87 = load.i64 notrap aligned v86+8-;; @003e v88 = load.i32 notrap aligned v86-;; @003e v89 = iconst.i32 1-;; @003e v90 = iadd v88, v89 ; v89 = 1-;; @003e store notrap aligned v90, v86-;; @003e v91 = uextend.i64 v88-;; @003e v92 = iconst.i64 16-;; @003e v93 = imul v91, v92 ; v92 = 16-;; @003e v94 = iadd v87, v93-;; @003e jump block10(v94)-;;-;; block10(v67: i64):-;; @003e store.i128 notrap aligned v66, v67-;; @003e v95 = iconst.i64 0-;; @003e v96 = iadd.i64 v15, v95 ; v95 = 0-;; @003e v97 = iconst.i32 1+;; @003e v91 = iconst.i64 120+;; @003e v92 = iadd.i64 v17, v91 ; v91 = 120+;; @003e v93 = load.i64 notrap aligned v92+8+;; @003e v94 = load.i32 notrap aligned v92+;; @003e v95 = iconst.i32 1+;; @003e v96 = iadd v94, v95 ; v95 = 1+;; @003e store notrap aligned v96, v92+;; @003e v97 = uextend.i64 v94;; @003e v98 = iconst.i64 16-;; @003e v99 = iadd v96, v98 ; v98 = 16-;; @003e store notrap aligned v97, v99 ; v97 = 1-;; @003e v100 = load.i64 notrap aligned v15+64-;; @003e store.i64 notrap aligned v32, v100+48-;; @003e store.i64 notrap aligned v33, v100+56-;; @003e v101 = iconst.i64 2-;; @003e v102 = load.i64 notrap aligned v0+8-;; @003e store notrap aligned v101, v102+88 ; v101 = 2-;; @003e store.i64 notrap aligned v15, v102+96-;; @003e v103 = iconst.i64 0-;; @003e v104 = iadd v96, v103 ; v103 = 0-;; @003e v105 = load.i64 notrap aligned v104-;; @003e store notrap aligned v105, v58+24-;; @003e v106 = load.i64 notrap aligned v104+8-;; @003e store notrap aligned v106, v58+72-;; @003e v107 = iconst.i64 80-;; @003e v108 = iadd.i64 v29, v107 ; v107 = 80-;; @003e v109 = load.i64 notrap aligned v108-;; @003e v110 = iconst.i64 -24-;; @003e v111 = iadd v109, v110 ; v110 = -24-;; @003e v112 = iconst.i64 80-;; @003e v113 = iadd v100, v112 ; v112 = 80-;; @003e v114 = load.i64 notrap aligned v113-;; @003e v115 = iconst.i64 -24-;; @003e v116 = iadd v114, v115 ; v115 = -24-;; @003e v117 = stack_addr.i64 ss0-;; @003e v118 = load.i64 notrap aligned v116-;; @003e store notrap aligned v118, v117-;; @003e v119 = load.i64 notrap aligned v111-;; @003e store notrap aligned v119, v116-;; @003e v120 = load.i64 notrap aligned v116+8-;; @003e store notrap aligned v120, v117+8-;; @003e v121 = load.i64 notrap aligned v111+8-;; @003e store notrap aligned v121, v116+8-;; @003e v122 = load.i64 notrap aligned v116+16-;; @003e store notrap aligned v122, v117+16-;; @003e v123 = load.i64 notrap aligned v111+16-;; @003e store notrap aligned v123, v116+16-;; @003e v124 = iconst.i64 3-;; v133 = iconst.i64 32-;; @003e v125 = ishl v124, v133 ; v124 = 3, v133 = 32-;; @003e v126 = stack_switch v111, v117, v125-;; @003e v127 = iconst.i64 120-;; @003e v128 = iadd.i64 v27, v127 ; v127 = 120-;; @003e v129 = load.i64 notrap aligned v128+8-;; @003e v130 = iconst.i32 0-;; @003e store notrap aligned v130, v128 ; v130 = 0-;; @003e v131 = iconst.i32 0-;; @003e store notrap aligned v131, v128+4 ; v131 = 0-;; @003e v132 = iconst.i64 0-;; @003e store notrap aligned v132, v128+8 ; v132 = 0+;; @003e v99 = imul v97, v98 ; v98 = 16+;; @003e v100 = iadd v93, v99+;; @003e jump block10(v100)+;;+;; block10(v73: i64):+;; @003e store.i128 notrap aligned v72, v73+;; @003e v101 = iconst.i64 0+;; @003e v102 = iadd.i64 v17, v101 ; v101 = 0+;; @003e v103 = iconst.i32 1+;; @003e v104 = iconst.i64 16+;; @003e v105 = iadd v102, v104 ; v104 = 16+;; @003e store notrap aligned v103, v105 ; v103 = 1+;; @003e v106 = load.i64 notrap aligned v17+64+;; @003e store.i64 notrap aligned v36, v106+48+;; @003e store.i64 notrap aligned v37, v106+56+;; @003e v107 = iconst.i64 2+;; @003e v108 = load.i64 notrap aligned v0+8+;; @003e store notrap aligned v107, v108+88 ; v107 = 2+;; @003e store.i64 notrap aligned v17, v108+96+;; @003e v109 = iconst.i64 0+;; @003e v110 = iadd v102, v109 ; v109 = 0+;; @003e v111 = load.i64 notrap aligned v110+;; @003e store notrap aligned v111, v62+24+;; @003e v112 = load.i64 notrap aligned v110+8+;; @003e store notrap aligned v112, v62+72+;; @003e v113 = iconst.i64 80+;; @003e v114 = iadd.i64 v33, v113 ; v113 = 80+;; @003e v115 = load.i64 notrap aligned v114+;; @003e v116 = iconst.i64 -24+;; @003e v117 = iadd v115, v116 ; v116 = -24+;; @003e v118 = iconst.i64 80+;; @003e v119 = iadd v106, v118 ; v118 = 80+;; @003e v120 = load.i64 notrap aligned v119+;; @003e v121 = iconst.i64 -24+;; @003e v122 = iadd v120, v121 ; v121 = -24+;; @003e v123 = stack_addr.i64 ss0+;; @003e v124 = load.i64 notrap aligned v122+;; @003e store notrap aligned v124, v123+;; @003e v125 = load.i64 notrap aligned v117+;; @003e store notrap aligned v125, v122+;; @003e v126 = load.i64 notrap aligned v122+8+;; @003e store notrap aligned v126, v123+8+;; @003e v127 = load.i64 notrap aligned v117+8+;; @003e store notrap aligned v127, v122+8+;; @003e v128 = load.i64 notrap aligned v122+16+;; @003e store notrap aligned v128, v123+16+;; @003e v129 = load.i64 notrap aligned v117+16+;; @003e store notrap aligned v129, v122+16+;; @003e v130 = iconst.i64 3+;; @003e v131 = iconst.i64 32+;; @003e v132 = ishl v130, v131 ; v130 = 3, v131 = 32+;; @003e v133 = stack_switch v117, v123, v132+;; @003e v134 = iconst.i64 120+;; @003e v135 = iadd.i64 v31, v134 ; v134 = 120+;; @003e v136 = load.i64 notrap aligned v135+8+;; @003e v137 = iconst.i32 0+;; @003e store notrap aligned v137, v135 ; v137 = 0+;; @003e v138 = iconst.i32 0+;; @003e store notrap aligned v138, v135+4 ; v138 = 0+;; @003e v139 = iconst.i64 0+;; @003e store notrap aligned v139, v135+8 ; v139 = 0;; @0041 jump block1;;;; block1:@@ -262,155 +262,155 @@;; @0049 v9 = load.i64 notrap aligned v8+72;; @0049 v10 = uextend.i128 v8;; @0049 v11 = uextend.i128 v9-;; v111 = iconst.i64 64-;; v112 = uextend.i128 v111 ; v111 = 64-;; @0049 v12 = ishl v11, v112-;; @0049 v13 = bor v12, v10+;; @0049 v12 = iconst.i64 64+;; @0049 v13 = uextend.i128 v12 ; v12 = 64+;; @0049 v14 = ishl v11, v13+;; @0049 v15 = bor v14, v10;; @004b jump block2;;;; block2:-;; @004b v15 = ireduce.i64 v13-;; v109 = iconst.i64 64-;; v110 = uextend.i128 v109 ; v109 = 64-;; @004b v16 = ushr.i128 v13, v110-;; @004b v17 = ireduce.i64 v16-;; @004b trapz v15, user16-;; @004b v18 = load.i64 notrap aligned v15+72-;; @004b v19 = icmp eq v18, v17-;; @004b trapz v19, user23-;; @004b v20 = iconst.i64 1-;; @004b v21 = iadd v18, v20 ; v20 = 1-;; @004b store notrap aligned v21, v15+72-;; @004b v22 = load.i64 notrap aligned v15+64-;; @004b v23 = load.i64 notrap aligned v0+8-;; @004b v24 = load.i64 notrap aligned v23+88-;; @004b v25 = load.i64 notrap aligned v23+96-;; @004b store notrap aligned v24, v22+48-;; @004b store notrap aligned v25, v22+56-;; @004b v26 = iconst.i64 0-;; @004b store notrap aligned v26, v15+64 ; v26 = 0-;; @004b v27 = iconst.i64 2-;; @004b v28 = load.i64 notrap aligned v0+8-;; @004b store notrap aligned v27, v28+88 ; v27 = 2-;; @004b store notrap aligned v15, v28+96-;; @004b v29 = iconst.i64 0-;; @004b v30 = iadd v15, v29 ; v29 = 0-;; @004b v31 = iconst.i32 1-;; @004b v32 = iconst.i64 16-;; @004b v33 = iadd v30, v32 ; v32 = 16-;; @004b store notrap aligned v31, v33 ; v31 = 1-;; @004b v34 = iconst.i32 2-;; @004b v35 = iconst.i64 16-;; @004b v36 = iadd v25, v35 ; v35 = 16-;; @004b store notrap aligned v34, v36 ; v34 = 2-;; @004b v37 = load.i64 notrap aligned readonly v0+8-;; @004b v38 = iconst.i64 0-;; @004b v39 = iadd v25, v38 ; v38 = 0-;; @004b v40 = load.i64 notrap aligned v37+72-;; @004b store notrap aligned v40, v39+8-;; @004b v41 = load.i64 notrap aligned v37+24-;; @004b store notrap aligned v41, v39+;; @004b v17 = ireduce.i64 v15+;; @004b v18 = iconst.i64 64+;; @004b v19 = uextend.i128 v18 ; v18 = 64+;; @004b v20 = ushr.i128 v15, v19+;; @004b v21 = ireduce.i64 v20+;; @004b trapz v17, user16+;; @004b v22 = load.i64 notrap aligned v17+72+;; @004b v23 = icmp eq v22, v21+;; @004b trapz v23, user23+;; @004b v24 = iconst.i64 1+;; @004b v25 = iadd v22, v24 ; v24 = 1+;; @004b store notrap aligned v25, v17+72+;; @004b v26 = load.i64 notrap aligned v17+64+;; @004b v27 = load.i64 notrap aligned v0+8+;; @004b v28 = load.i64 notrap aligned v27+88+;; @004b v29 = load.i64 notrap aligned v27+96+;; @004b store notrap aligned v28, v26+48+;; @004b store notrap aligned v29, v26+56+;; @004b v30 = iconst.i64 0+;; @004b store notrap aligned v30, v17+64 ; v30 = 0+;; @004b v31 = iconst.i64 2+;; @004b v32 = load.i64 notrap aligned v0+8+;; @004b store notrap aligned v31, v32+88 ; v31 = 2+;; @004b store notrap aligned v17, v32+96+;; @004b v33 = iconst.i64 0+;; @004b v34 = iadd v17, v33 ; v33 = 0+;; @004b v35 = iconst.i32 1+;; @004b v36 = iconst.i64 16+;; @004b v37 = iadd v34, v36 ; v36 = 16+;; @004b store notrap aligned v35, v37 ; v35 = 1+;; @004b v38 = iconst.i32 2+;; @004b v39 = iconst.i64 16+;; @004b v40 = iadd v29, v39 ; v39 = 16+;; @004b store notrap aligned v38, v40 ; v38 = 2+;; @004b v41 = load.i64 notrap aligned readonly v0+8;; @004b v42 = iconst.i64 0-;; @004b v43 = iadd v30, v42 ; v42 = 0-;; @004b v44 = load.i64 notrap aligned v43-;; @004b store notrap aligned v44, v37+24-;; @004b v45 = load.i64 notrap aligned v43+8-;; @004b store notrap aligned v45, v37+72-;; @004b v46 = iconst.i64 24-;; @004b v47 = iadd v25, v46 ; v46 = 24-;; @004b v48 = iconst.i32 1-;; @004b v49 = stack_addr.i64 ss0-;; @004b store notrap aligned v48, v47+4 ; v48 = 1-;; @004b store notrap aligned v49, v47+8-;; @004b v51 = iconst.i64 48-;; @004b v52 = iadd.i64 v0, v51 ; v51 = 48-;; @004b v53 = iconst.i32 1-;; @004b v54 = load.i64 notrap aligned v47+8-;; @004b store notrap aligned v52, v54-;; @004b store notrap aligned v53, v47 ; v53 = 1-;; @004b v55 = iconst.i32 0-;; @004b store notrap aligned v55, v25+40 ; v55 = 0-;; @004b v56 = iconst.i64 1-;; v108 = iconst.i64 32-;; @004b v57 = ishl v56, v108 ; v56 = 1, v108 = 32-;; @004b v58 = iconst.i64 80-;; @004b v59 = iadd v22, v58 ; v58 = 80-;; @004b v60 = load.i64 notrap aligned v59-;; @004b v61 = iconst.i64 -24-;; @004b v62 = iadd v60, v61 ; v61 = -24-;; @004b v63 = stack_switch v62, v62, v57-;; @004b v64 = load.i64 notrap aligned v0+8-;; @004b v65 = load.i64 notrap aligned v64+88-;; @004b v66 = load.i64 notrap aligned v64+96-;; @004b v67 = load.i64 notrap aligned v0+8-;; @004b store notrap aligned v24, v67+88-;; @004b store notrap aligned v25, v67+96-;; @004b v68 = iconst.i32 1-;; @004b v69 = iconst.i64 16-;; @004b v70 = iadd v25, v69 ; v69 = 16-;; @004b store notrap aligned v68, v70 ; v68 = 1-;; @004b v71 = iconst.i32 0-;; @004b store notrap aligned v71, v47 ; v71 = 0-;; @004b v72 = iconst.i32 0-;; @004b store notrap aligned v72, v47+4 ; v72 = 0-;; @004b v73 = iconst.i64 0-;; @004b store notrap aligned v73, v47+8 ; v73 = 0-;; @004b store notrap aligned v26, v25+40 ; v26 = 0-;; v107 = iconst.i64 32-;; @004b v74 = ushr v63, v107 ; v107 = 32-;; @004b brif v74, block4, block3+;; @004b v43 = iadd v29, v42 ; v42 = 0+;; @004b v44 = load.i64 notrap aligned v41+72+;; @004b store notrap aligned v44, v43+8+;; @004b v45 = load.i64 notrap aligned v41+24+;; @004b store notrap aligned v45, v43+;; @004b v46 = iconst.i64 0+;; @004b v47 = iadd v34, v46 ; v46 = 0+;; @004b v48 = load.i64 notrap aligned v47+;; @004b store notrap aligned v48, v41+24+;; @004b v49 = load.i64 notrap aligned v47+8+;; @004b store notrap aligned v49, v41+72+;; @004b v50 = iconst.i64 24+;; @004b v51 = iadd v29, v50 ; v50 = 24+;; @004b v52 = iconst.i32 1+;; @004b v53 = stack_addr.i64 ss0+;; @004b store notrap aligned v52, v51+4 ; v52 = 1+;; @004b store notrap aligned v53, v51+8+;; @004b v55 = iconst.i64 48+;; @004b v56 = iadd.i64 v0, v55 ; v55 = 48+;; @004b v57 = iconst.i32 1+;; @004b v58 = load.i64 notrap aligned v51+8+;; @004b store notrap aligned v56, v58+;; @004b store notrap aligned v57, v51 ; v57 = 1+;; @004b v59 = iconst.i32 0+;; @004b store notrap aligned v59, v29+40 ; v59 = 0+;; @004b v60 = iconst.i64 1+;; @004b v61 = iconst.i64 32+;; @004b v62 = ishl v60, v61 ; v60 = 1, v61 = 32+;; @004b v63 = iconst.i64 80+;; @004b v64 = iadd v26, v63 ; v63 = 80+;; @004b v65 = load.i64 notrap aligned v64+;; @004b v66 = iconst.i64 -24+;; @004b v67 = iadd v65, v66 ; v66 = -24+;; @004b v68 = stack_switch v67, v67, v62+;; @004b v69 = load.i64 notrap aligned v0+8+;; @004b v70 = load.i64 notrap aligned v69+88+;; @004b v71 = load.i64 notrap aligned v69+96+;; @004b v72 = load.i64 notrap aligned v0+8+;; @004b store notrap aligned v28, v72+88+;; @004b store notrap aligned v29, v72+96+;; @004b v73 = iconst.i32 1+;; @004b v74 = iconst.i64 16+;; @004b v75 = iadd v29, v74 ; v74 = 16+;; @004b store notrap aligned v73, v75 ; v73 = 1+;; @004b v76 = iconst.i32 0+;; @004b store notrap aligned v76, v51 ; v76 = 0+;; @004b v77 = iconst.i32 0+;; @004b store notrap aligned v77, v51+4 ; v77 = 0+;; @004b v78 = iconst.i64 0+;; @004b store notrap aligned v78, v51+8 ; v78 = 0+;; @004b store notrap aligned v30, v29+40 ; v30 = 0+;; @004b v79 = iconst.i64 32+;; @004b v80 = ushr v68, v79 ; v79 = 32+;; @004b brif v80, block4, block3;;;; block4:-;; @004b v75 = iconst.i64 0-;; @004b v76 = iadd.i64 v66, v75 ; v75 = 0-;; @004b v77 = iconst.i64 0-;; @004b v78 = iadd v76, v77 ; v77 = 0-;; @004b v79 = load.i64 notrap aligned v37+72-;; @004b store notrap aligned v79, v78+8-;; @004b v80 = iconst.i64 0-;; @004b v81 = iadd.i64 v25, v80 ; v80 = 0-;; @004b v82 = load.i64 notrap aligned v81-;; @004b store notrap aligned v82, v37+24-;; @004b v83 = load.i64 notrap aligned v81+8-;; @004b store notrap aligned v83, v37+72-;; @004b v84 = ireduce.i32 v63-;; @004b v85 = load.i64 notrap aligned v66+72-;; @004b v86 = uextend.i128 v66-;; @004b v87 = uextend.i128 v85-;; v105 = iconst.i64 64-;; v106 = uextend.i128 v105 ; v105 = 64-;; @004b v88 = ishl v87, v106-;; @004b v89 = bor v88, v86+;; @004b v81 = iconst.i64 0+;; @004b v82 = iadd.i64 v71, v81 ; v81 = 0+;; @004b v83 = iconst.i64 0+;; @004b v84 = iadd v82, v83 ; v83 = 0+;; @004b v85 = load.i64 notrap aligned v41+72+;; @004b store notrap aligned v85, v84+8+;; @004b v86 = iconst.i64 0+;; @004b v87 = iadd.i64 v29, v86 ; v86 = 0+;; @004b v88 = load.i64 notrap aligned v87+;; @004b store notrap aligned v88, v41+24+;; @004b v89 = load.i64 notrap aligned v87+8+;; @004b store notrap aligned v89, v41+72+;; @004b v90 = ireduce.i32 v68+;; @004b v91 = load.i64 notrap aligned v71+72+;; @004b v92 = uextend.i128 v71+;; @004b v93 = uextend.i128 v91+;; @004b v94 = iconst.i64 64+;; @004b v95 = uextend.i128 v94 ; v94 = 64+;; @004b v96 = ishl v93, v95+;; @004b v97 = bor v96, v92;; @004b jump block5;;;; block6 cold:;; @004b trap user12;;;; block5:-;; @004b br_table v84, block6, []+;; @004b br_table v90, block6, [];;;; block3:-;; @004b v90 = iconst.i64 0-;; @004b v91 = iadd.i64 v25, v90 ; v90 = 0-;; @004b v92 = load.i64 notrap aligned v91-;; @004b store notrap aligned v92, v37+24-;; @004b v93 = load.i64 notrap aligned v91+8-;; @004b store notrap aligned v93, v37+72-;; @004b v94 = iconst.i64 0-;; @004b v95 = iadd.i64 v66, v94 ; v94 = 0-;; @004b v96 = iconst.i32 4-;; @004b v97 = iconst.i64 16-;; @004b v98 = iadd v95, v97 ; v97 = 16-;; @004b store notrap aligned v96, v98 ; v96 = 4-;; @004b v99 = iconst.i64 104-;; @004b v100 = iadd.i64 v66, v99 ; v99 = 104-;; @004b v101 = load.i64 notrap aligned v100+8-;; @004b v102 = iconst.i32 0-;; @004b store notrap aligned v102, v100 ; v102 = 0-;; @004b v103 = iconst.i32 0-;; @004b store notrap aligned v103, v100+4 ; v103 = 0-;; @004b v104 = iconst.i64 0-;; @004b store notrap aligned v104, v100+8 ; v104 = 0+;; @004b v98 = iconst.i64 0+;; @004b v99 = iadd.i64 v29, v98 ; v98 = 0+;; @004b v100 = load.i64 notrap aligned v99+;; @004b store notrap aligned v100, v41+24+;; @004b v101 = load.i64 notrap aligned v99+8+;; @004b store notrap aligned v101, v41+72+;; @004b v102 = iconst.i64 0+;; @004b v103 = iadd.i64 v71, v102 ; v102 = 0+;; @004b v104 = iconst.i32 4+;; @004b v105 = iconst.i64 16+;; @004b v106 = iadd v103, v105 ; v105 = 16+;; @004b store notrap aligned v104, v106 ; v104 = 4+;; @004b v107 = iconst.i64 104+;; @004b v108 = iadd.i64 v71, v107 ; v107 = 104+;; @004b v109 = load.i64 notrap aligned v108+8+;; @004b v110 = iconst.i32 0+;; @004b store notrap aligned v110, v108 ; v110 = 0+;; @004b v111 = iconst.i32 0+;; @004b store notrap aligned v111, v108+4 ; v111 = 0+;; @004b v112 = iconst.i64 0+;; @004b store notrap aligned v112, v108+8 ; v112 = 0;; @0050 jump block1;;;; block1:diff --git a/tests/disas/startup-elem-active.wat b/tests/disas/startup-elem-active.watindex 96beba1864..e7a952f6b9 100644--- a/tests/disas/startup-elem-active.wat+++ b/tests/disas/startup-elem-active.wat@@ -57,21 +57,21 @@;; v114 = icmp ule v5, v2 ; v2 = 1;; v79 = iconst.i64 0;; v17 = iadd v13, v86 ; v86 = 4-;; v31 = select_spectre_guard v114, v79, v17 ; v79 = 0-;; store user6 aligned region0 v103, v31 ; v103 = 21+;; v34 = select_spectre_guard v114, v79, v17 ; v79 = 0+;; store user6 aligned region0 v103, v34 ; v103 = 21;; v117 = iconst.i32 23;; v123 = iconst.i32 2;; v129 = icmp ule v5, v123 ; v123 = 2;; v131 = iconst.i64 8-;; v43 = iadd v13, v131 ; v131 = 8-;; v45 = select_spectre_guard v129, v79, v43 ; v79 = 0-;; store user6 aligned region0 v117, v45 ; v117 = 23+;; v49 = iadd v13, v131 ; v131 = 8+;; v51 = select_spectre_guard v129, v79, v49 ; v79 = 0+;; store user6 aligned region0 v117, v51 ; v117 = 23;; v133 = iconst.i32 25;; v3 = iconst.i32 3;; v144 = icmp ule v5, v3 ; v3 = 3;; v146 = iconst.i64 12-;; v57 = iadd v13, v146 ; v146 = 12-;; v59 = select_spectre_guard v144, v79, v57 ; v79 = 0-;; store user6 aligned region0 v133, v59 ; v133 = 25+;; v66 = iadd v13, v146 ; v146 = 12+;; v68 = select_spectre_guard v144, v79, v66 ; v79 = 0+;; store user6 aligned region0 v133, v68 ; v133 = 25;; return;; }diff --git a/tests/disas/startup-passive-segment.wat b/tests/disas/startup-passive-segment.watindex 579cffbb22..9647516527 100644--- a/tests/disas/startup-passive-segment.wat+++ b/tests/disas/startup-passive-segment.wat@@ -41,11 +41,11 @@;; block0(v0: i64, v1: i64):;; v3 = iconst.i32 0;; v4 = call fn0(v0, v3) ; v3 = 0-;; v18 = iconst.i32 1-;; store user2 little region0 v18, v4 ; v18 = 1+;; v6 = iconst.i32 1+;; store user2 little region0 v6, v4 ; v6 = 1;; v25 = iconst.i32 3-;; v13 = iconst.i64 16-;; v14 = iadd v4, v13 ; v13 = 16-;; store user2 little region0 v25, v14 ; v25 = 3+;; v17 = iconst.i64 16+;; v18 = iadd v4, v17 ; v17 = 16+;; store user2 little region0 v25, v18 ; v25 = 3;; return;; }diff --git a/tests/disas/startup-table-initial-value.wat b/tests/disas/startup-table-initial-value.watindex 0d24542a98..d07bdadcdc 100644--- a/tests/disas/startup-table-initial-value.wat+++ b/tests/disas/startup-table-initial-value.wat@@ -38,26 +38,26 @@;; gv2 = load.i64 notrap aligned gv0+56;;;; block0(v0: i64, v1: i64):-;; v7 = load.i64 notrap aligned v0+56-;; v8 = ireduce.i32 v7-;; v9 = uextend.i64 v8+;; v9 = load.i64 notrap aligned v0+56+;; v10 = ireduce.i32 v9+;; v11 = uextend.i64 v10;; v41 = iconst.i64 10-;; v53 = icmp ult v9, v41 ; v41 = 10+;; v53 = icmp ult v11, v41 ; v41 = 10;; trapnz v53, user6-;; v16 = load.i64 notrap aligned v0+48-;; v34 = iconst.i32 1+;; v18 = load.i64 notrap aligned v0+48+;; v3 = iconst.i32 1;; v83 = iconst.i64 36-;; v85 = iadd v16, v83 ; v83 = 36-;; v18 = iconst.i64 4-;; jump block1(v16)+;; v85 = iadd v18, v83 ; v83 = 36+;; v20 = iconst.i64 4+;; jump block1(v18);;-;; block1(v27: i64):+;; block1(v29: i64):;; v88 = iconst.i32 1-;; store notrap aligned v88, v27 ; v88 = 1-;; v89 = iadd.i64 v16, v83 ; v83 = 36-;; v90 = icmp eq v27, v89+;; store notrap aligned v88, v29 ; v88 = 1+;; v89 = iadd.i64 v18, v83 ; v83 = 36+;; v90 = icmp eq v29, v89;; v91 = iconst.i64 4-;; v92 = iadd v27, v91 ; v91 = 4+;; v92 = iadd v29, v91 ; v91 = 4;; brif v90, block2, block1(v92);;;; block2:diff --git a/tests/disas/table-copy.wat b/tests/disas/table-copy.watindex b6a4ac7f66..b45fbe5cfb 100644--- a/tests/disas/table-copy.wat+++ b/tests/disas/table-copy.wat@@ -132,71 +132,71 @@;; @0090 v52 = icmp uge v50, v51 ; v51 = 6;; @0090 v53 = uextend.i64 v50;; @0090 v54 = load.i64 notrap aligned readonly can_move v0+72-;; v106 = iconst.i64 3-;; @0090 v55 = ishl v53, v106 ; v106 = 3-;; @0090 v56 = iadd v54, v55-;; @0090 v57 = iconst.i64 0-;; @0090 v58 = select_spectre_guard v52, v57, v56 ; v57 = 0-;; @0090 v59 = load.i64 user6 aligned region0 v58-;; v105 = iconst.i64 -2-;; @0090 v60 = band v59, v105 ; v105 = -2-;; @0090 brif v59, block7(v60), block6+;; @0090 v55 = iconst.i64 3+;; @0090 v56 = ishl v53, v55 ; v55 = 3+;; @0090 v57 = iadd v54, v56+;; @0090 v58 = iconst.i64 0+;; @0090 v59 = select_spectre_guard v52, v58, v57 ; v58 = 0+;; @0090 v60 = load.i64 user6 aligned region0 v59+;; @0090 v61 = iconst.i64 -2+;; @0090 v62 = band v60, v61 ; v61 = -2+;; @0090 brif v60, block7(v62), block6;;-;; block4(v74: i64, v75: i64, v76: i32):-;; @0090 v77 = iconst.i64 8-;; @0090 v78 = isub v74, v77 ; v77 = 8-;; @0090 v79 = iconst.i64 8-;; @0090 v80 = isub v75, v79 ; v79 = 8-;; @0090 v81 = iconst.i32 1-;; @0090 v82 = isub v76, v81 ; v81 = 1-;; @0090 v83 = iconst.i32 6-;; @0090 v84 = icmp uge v82, v83 ; v83 = 6-;; @0090 v85 = uextend.i64 v82-;; @0090 v86 = load.i64 notrap aligned readonly can_move v0+72-;; v103 = iconst.i64 3-;; @0090 v87 = ishl v85, v103 ; v103 = 3-;; @0090 v88 = iadd v86, v87-;; @0090 v89 = iconst.i64 0-;; @0090 v90 = select_spectre_guard v84, v89, v88 ; v89 = 0-;; @0090 v91 = load.i64 user6 aligned region0 v90-;; v102 = iconst.i64 -2-;; @0090 v92 = band v91, v102 ; v102 = -2-;; @0090 brif v91, block9(v92), block8+;; block4(v77: i64, v78: i64, v79: i32):+;; @0090 v80 = iconst.i64 8+;; @0090 v81 = isub v77, v80 ; v80 = 8+;; @0090 v82 = iconst.i64 8+;; @0090 v83 = isub v78, v82 ; v82 = 8+;; @0090 v84 = iconst.i32 1+;; @0090 v85 = isub v79, v84 ; v84 = 1+;; @0090 v86 = iconst.i32 6+;; @0090 v87 = icmp uge v85, v86 ; v86 = 6+;; @0090 v88 = uextend.i64 v85+;; @0090 v89 = load.i64 notrap aligned readonly can_move v0+72+;; @0090 v90 = iconst.i64 3+;; @0090 v91 = ishl v88, v90 ; v90 = 3+;; @0090 v92 = iadd v89, v91+;; @0090 v93 = iconst.i64 0+;; @0090 v94 = select_spectre_guard v87, v93, v92 ; v93 = 0+;; @0090 v95 = load.i64 user6 aligned region0 v94+;; @0090 v96 = iconst.i64 -2+;; @0090 v97 = band v95, v96 ; v96 = -2+;; @0090 brif v95, block9(v97), block8;;;; block5:;; @0094 jump block1;;;; block6 cold:-;; @0090 v62 = iconst.i32 1-;; @0090 v64 = uextend.i64 v50-;; @0090 v65 = call fn0(v0, v62, v64) ; v62 = 1-;; @0090 jump block7(v65)+;; @0090 v64 = iconst.i32 1+;; @0090 v66 = uextend.i64 v50+;; @0090 v67 = call fn0(v0, v64, v66) ; v64 = 1+;; @0090 jump block7(v67);;-;; block7(v61: i64):-;; v101 = iconst.i64 1-;; @0090 v66 = bor v61, v101 ; v101 = 1-;; @0090 store notrap aligned v66, v48-;; @0090 v67 = iconst.i64 8-;; @0090 v68 = iadd.i64 v48, v67 ; v67 = 8-;; @0090 v69 = iconst.i64 8-;; @0090 v70 = iadd.i64 v49, v69 ; v69 = 8-;; @0090 v71 = iconst.i32 1-;; @0090 v72 = iadd.i32 v50, v71 ; v71 = 1-;; @0090 v73 = icmp eq v70, v45-;; @0090 brif v73, block5, block3(v68, v70, v72)+;; block7(v63: i64):+;; @0090 v68 = iconst.i64 1+;; @0090 v69 = bor v63, v68 ; v68 = 1+;; @0090 store notrap aligned v69, v48+;; @0090 v70 = iconst.i64 8+;; @0090 v71 = iadd.i64 v48, v70 ; v70 = 8+;; @0090 v72 = iconst.i64 8+;; @0090 v73 = iadd.i64 v49, v72 ; v72 = 8+;; @0090 v74 = iconst.i32 1+;; @0090 v75 = iadd.i32 v50, v74 ; v74 = 1+;; @0090 v76 = icmp eq v73, v45+;; @0090 brif v76, block5, block3(v71, v73, v75);;;; block8 cold:-;; @0090 v94 = iconst.i32 1-;; @0090 v96 = uextend.i64 v82-;; @0090 v97 = call fn0(v0, v94, v96) ; v94 = 1-;; @0090 jump block9(v97)+;; @0090 v99 = iconst.i32 1+;; @0090 v101 = uextend.i64 v85+;; @0090 v102 = call fn0(v0, v99, v101) ; v99 = 1+;; @0090 jump block9(v102);;-;; block9(v93: i64):-;; v100 = iconst.i64 1-;; @0090 v98 = bor v93, v100 ; v100 = 1-;; @0090 store notrap aligned v98, v78-;; @0090 v99 = icmp.i64 eq v80, v33-;; @0090 brif v99, block5, block4(v78, v80, v82)+;; block9(v98: i64):+;; @0090 v103 = iconst.i64 1+;; @0090 v104 = bor v98, v103 ; v103 = 1+;; @0090 store notrap aligned v104, v81+;; @0090 v105 = icmp.i64 eq v83, v33+;; @0090 brif v105, block5, block4(v81, v83, v85);;;; block1:;; @0094 return v2@@ -275,74 +275,74 @@;; @009f v54 = uextend.i64 v50;; @009f v112 = load.i64 notrap aligned readonly can_move v0+48;; @009f v55 = load.i64 notrap aligned v112-;; v111 = iconst.i64 3-;; @009f v56 = ishl v54, v111 ; v111 = 3-;; @009f v57 = iadd v55, v56-;; @009f v58 = iconst.i64 0-;; @009f v59 = select_spectre_guard v53, v58, v57 ; v58 = 0-;; @009f v60 = load.i64 user6 aligned region0 v59-;; v110 = iconst.i64 -2-;; @009f v61 = band v60, v110 ; v110 = -2-;; @009f brif v60, block7(v61), block6+;; @009f v56 = iconst.i64 3+;; @009f v57 = ishl v54, v56 ; v56 = 3+;; @009f v58 = iadd v55, v57+;; @009f v59 = iconst.i64 0+;; @009f v60 = select_spectre_guard v53, v59, v58 ; v59 = 0+;; @009f v61 = load.i64 user6 aligned region0 v60+;; @009f v62 = iconst.i64 -2+;; @009f v63 = band v61, v62 ; v62 = -2+;; @009f brif v61, block7(v63), block6;;-;; block4(v75: i64, v76: i64, v77: i32):-;; @009f v78 = iconst.i64 8-;; @009f v79 = isub v75, v78 ; v78 = 8-;; @009f v80 = iconst.i64 8-;; @009f v81 = isub v76, v80 ; v80 = 8-;; @009f v82 = iconst.i32 1-;; @009f v83 = isub v77, v82 ; v82 = 1+;; block4(v78: i64, v79: i64, v80: i32):+;; @009f v81 = iconst.i64 8+;; @009f v82 = isub v78, v81 ; v81 = 8+;; @009f v83 = iconst.i64 8+;; @009f v84 = isub v79, v83 ; v83 = 8+;; @009f v85 = iconst.i32 1+;; @009f v86 = isub v80, v85 ; v85 = 1+;; @009f v110 = load.i64 notrap aligned readonly can_move v0+48+;; @009f v87 = load.i64 notrap aligned v110+8+;; @009f v88 = ireduce.i32 v87+;; @009f v89 = icmp uge v86, v88+;; @009f v90 = uextend.i64 v86;; @009f v108 = load.i64 notrap aligned readonly can_move v0+48-;; @009f v84 = load.i64 notrap aligned v108+8-;; @009f v85 = ireduce.i32 v84-;; @009f v86 = icmp uge v83, v85-;; @009f v87 = uextend.i64 v83-;; @009f v106 = load.i64 notrap aligned readonly can_move v0+48-;; @009f v88 = load.i64 notrap aligned v106-;; v105 = iconst.i64 3-;; @009f v89 = ishl v87, v105 ; v105 = 3-;; @009f v90 = iadd v88, v89-;; @009f v91 = iconst.i64 0-;; @009f v92 = select_spectre_guard v86, v91, v90 ; v91 = 0-;; @009f v93 = load.i64 user6 aligned region0 v92-;; v104 = iconst.i64 -2-;; @009f v94 = band v93, v104 ; v104 = -2-;; @009f brif v93, block9(v94), block8+;; @009f v91 = load.i64 notrap aligned v108+;; @009f v92 = iconst.i64 3+;; @009f v93 = ishl v90, v92 ; v92 = 3+;; @009f v94 = iadd v91, v93+;; @009f v95 = iconst.i64 0+;; @009f v96 = select_spectre_guard v89, v95, v94 ; v95 = 0+;; @009f v97 = load.i64 user6 aligned region0 v96+;; @009f v98 = iconst.i64 -2+;; @009f v99 = band v97, v98 ; v98 = -2+;; @009f brif v97, block9(v99), block8;;;; block5:;; @00a3 jump block1;;;; block6 cold:-;; @009f v63 = iconst.i32 0-;; @009f v65 = uextend.i64 v50-;; @009f v66 = call fn0(v0, v63, v65) ; v63 = 0-;; @009f jump block7(v66)+;; @009f v65 = iconst.i32 0+;; @009f v67 = uextend.i64 v50+;; @009f v68 = call fn0(v0, v65, v67) ; v65 = 0+;; @009f jump block7(v68);;-;; block7(v62: i64):-;; v103 = iconst.i64 1-;; @009f v67 = bor v62, v103 ; v103 = 1-;; @009f store notrap aligned v67, v48-;; @009f v68 = iconst.i64 8-;; @009f v69 = iadd.i64 v48, v68 ; v68 = 8-;; @009f v70 = iconst.i64 8-;; @009f v71 = iadd.i64 v49, v70 ; v70 = 8-;; @009f v72 = iconst.i32 1-;; @009f v73 = iadd.i32 v50, v72 ; v72 = 1-;; @009f v74 = icmp eq v71, v45-;; @009f brif v74, block5, block3(v69, v71, v73)+;; block7(v64: i64):+;; @009f v69 = iconst.i64 1+;; @009f v70 = bor v64, v69 ; v69 = 1+;; @009f store notrap aligned v70, v48+;; @009f v71 = iconst.i64 8+;; @009f v72 = iadd.i64 v48, v71 ; v71 = 8+;; @009f v73 = iconst.i64 8+;; @009f v74 = iadd.i64 v49, v73 ; v73 = 8+;; @009f v75 = iconst.i32 1+;; @009f v76 = iadd.i32 v50, v75 ; v75 = 1+;; @009f v77 = icmp eq v74, v45+;; @009f brif v77, block5, block3(v72, v74, v76);;;; block8 cold:-;; @009f v96 = iconst.i32 0-;; @009f v98 = uextend.i64 v83-;; @009f v99 = call fn0(v0, v96, v98) ; v96 = 0-;; @009f jump block9(v99)+;; @009f v101 = iconst.i32 0+;; @009f v103 = uextend.i64 v86+;; @009f v104 = call fn0(v0, v101, v103) ; v101 = 0+;; @009f jump block9(v104);;-;; block9(v95: i64):-;; v102 = iconst.i64 1-;; @009f v100 = bor v95, v102 ; v102 = 1-;; @009f store notrap aligned v100, v79-;; @009f v101 = icmp.i64 eq v81, v33-;; @009f brif v101, block5, block4(v79, v81, v83)+;; block9(v100: i64):+;; @009f v105 = iconst.i64 1+;; @009f v106 = bor v100, v105 ; v105 = 1+;; @009f store notrap aligned v106, v82+;; @009f v107 = icmp.i64 eq v84, v33+;; @009f brif v107, block5, block4(v82, v84, v86);;;; block1:;; @00a3 return v2diff --git a/tests/disas/table-get-fixed-size.wat b/tests/disas/table-get-fixed-size.watindex d535ffa53b..c3b6c6f388 100644--- a/tests/disas/table-get-fixed-size.wat+++ b/tests/disas/table-get-fixed-size.wat@@ -30,16 +30,16 @@;; @0054 v5 = icmp uge v3, v4 ; v3 = 0, v4 = 7;; @0054 v6 = uextend.i64 v3 ; v3 = 0;; @0054 v7 = load.i64 notrap aligned readonly can_move v0+48-;; v13 = iconst.i64 2-;; @0054 v8 = ishl v6, v13 ; v13 = 2-;; @0054 v9 = iadd v7, v8-;; @0054 v10 = iconst.i64 0-;; @0054 v11 = select_spectre_guard v5, v10, v9 ; v10 = 0-;; @0054 v12 = load.i32 user6 aligned region0 v11+;; @0054 v8 = iconst.i64 2+;; @0054 v9 = ishl v6, v8 ; v8 = 2+;; @0054 v10 = iadd v7, v9+;; @0054 v11 = iconst.i64 0+;; @0054 v12 = select_spectre_guard v5, v11, v10 ; v11 = 0+;; @0054 v13 = load.i32 user6 aligned region0 v12;; @0056 jump block1;;;; block1:-;; @0056 return v12+;; @0056 return v13;; };;;; function u0:1(i64 vmctx, i64, i32) -> i32 tail {@@ -56,14 +56,14 @@;; @005b v5 = icmp uge v2, v4 ; v4 = 7;; @005b v6 = uextend.i64 v2;; @005b v7 = load.i64 notrap aligned readonly can_move v0+48-;; v13 = iconst.i64 2-;; @005b v8 = ishl v6, v13 ; v13 = 2-;; @005b v9 = iadd v7, v8-;; @005b v10 = iconst.i64 0-;; @005b v11 = select_spectre_guard v5, v10, v9 ; v10 = 0-;; @005b v12 = load.i32 user6 aligned region0 v11+;; @005b v8 = iconst.i64 2+;; @005b v9 = ishl v6, v8 ; v8 = 2+;; @005b v10 = iadd v7, v9+;; @005b v11 = iconst.i64 0+;; @005b v12 = select_spectre_guard v5, v11, v10 ; v11 = 0+;; @005b v13 = load.i32 user6 aligned region0 v12;; @005d jump block1;;;; block1:-;; @005d return v12+;; @005d return v13;; }diff --git a/tests/disas/table-get.wat b/tests/disas/table-get.watindex 75ffa24e55..1d97842b49 100644--- a/tests/disas/table-get.wat+++ b/tests/disas/table-get.wat@@ -31,16 +31,16 @@;; @0053 v6 = icmp uge v3, v5 ; v3 = 0;; @0053 v7 = uextend.i64 v3 ; v3 = 0;; @0053 v8 = load.i64 notrap aligned v0+48-;; v14 = iconst.i64 2-;; @0053 v9 = ishl v7, v14 ; v14 = 2-;; @0053 v10 = iadd v8, v9-;; @0053 v11 = iconst.i64 0-;; @0053 v12 = select_spectre_guard v6, v11, v10 ; v11 = 0-;; @0053 v13 = load.i32 user6 aligned region0 v12+;; @0053 v9 = iconst.i64 2+;; @0053 v10 = ishl v7, v9 ; v9 = 2+;; @0053 v11 = iadd v8, v10+;; @0053 v12 = iconst.i64 0+;; @0053 v13 = select_spectre_guard v6, v12, v11 ; v12 = 0+;; @0053 v14 = load.i32 user6 aligned region0 v13;; @0055 jump block1;;;; block1:-;; @0055 return v13+;; @0055 return v14;; };;;; function u0:1(i64 vmctx, i64, i32) -> i32 tail {@@ -59,14 +59,14 @@;; @005a v6 = icmp uge v2, v5;; @005a v7 = uextend.i64 v2;; @005a v8 = load.i64 notrap aligned v0+48-;; v14 = iconst.i64 2-;; @005a v9 = ishl v7, v14 ; v14 = 2-;; @005a v10 = iadd v8, v9-;; @005a v11 = iconst.i64 0-;; @005a v12 = select_spectre_guard v6, v11, v10 ; v11 = 0-;; @005a v13 = load.i32 user6 aligned region0 v12+;; @005a v9 = iconst.i64 2+;; @005a v10 = ishl v7, v9 ; v9 = 2+;; @005a v11 = iadd v8, v10+;; @005a v12 = iconst.i64 0+;; @005a v13 = select_spectre_guard v6, v12, v11 ; v12 = 0+;; @005a v14 = load.i32 user6 aligned region0 v13;; @005c jump block1;;;; block1:-;; @005c return v13+;; @005c return v14;; }diff --git a/tests/disas/table-set-fixed-size.wat b/tests/disas/table-set-fixed-size.watindex 2725fbaf22..64986ab38e 100644--- a/tests/disas/table-set-fixed-size.wat+++ b/tests/disas/table-set-fixed-size.wat@@ -31,12 +31,12 @@;; @0056 v5 = icmp uge v3, v4 ; v3 = 0, v4 = 7;; @0056 v6 = uextend.i64 v3 ; v3 = 0;; @0056 v7 = load.i64 notrap aligned readonly can_move v0+48-;; v12 = iconst.i64 2-;; @0056 v8 = ishl v6, v12 ; v12 = 2-;; @0056 v9 = iadd v7, v8-;; @0056 v10 = iconst.i64 0-;; @0056 v11 = select_spectre_guard v5, v10, v9 ; v10 = 0-;; @0056 store user6 aligned region0 v2, v11+;; @0056 v8 = iconst.i64 2+;; @0056 v9 = ishl v6, v8 ; v8 = 2+;; @0056 v10 = iadd v7, v9+;; @0056 v11 = iconst.i64 0+;; @0056 v12 = select_spectre_guard v5, v11, v10 ; v11 = 0+;; @0056 store user6 aligned region0 v2, v12;; @0058 jump block1;;;; block1:@@ -57,12 +57,12 @@;; @005f v5 = icmp uge v2, v4 ; v4 = 7;; @005f v6 = uextend.i64 v2;; @005f v7 = load.i64 notrap aligned readonly can_move v0+48-;; v12 = iconst.i64 2-;; @005f v8 = ishl v6, v12 ; v12 = 2-;; @005f v9 = iadd v7, v8-;; @005f v10 = iconst.i64 0-;; @005f v11 = select_spectre_guard v5, v10, v9 ; v10 = 0-;; @005f store user6 aligned region0 v3, v11+;; @005f v8 = iconst.i64 2+;; @005f v9 = ishl v6, v8 ; v8 = 2+;; @005f v10 = iadd v7, v9+;; @005f v11 = iconst.i64 0+;; @005f v12 = select_spectre_guard v5, v11, v10 ; v11 = 0+;; @005f store user6 aligned region0 v3, v12;; @0061 jump block1;;;; block1:diff --git a/tests/disas/table-set.wat b/tests/disas/table-set.watindex cddb25c6a3..af1913b452 100644--- a/tests/disas/table-set.wat+++ b/tests/disas/table-set.wat@@ -33,12 +33,12 @@;; @0055 v6 = icmp uge v3, v5 ; v3 = 0;; @0055 v7 = uextend.i64 v3 ; v3 = 0;; @0055 v8 = load.i64 notrap aligned v0+48-;; v13 = iconst.i64 2-;; @0055 v9 = ishl v7, v13 ; v13 = 2-;; @0055 v10 = iadd v8, v9-;; @0055 v11 = iconst.i64 0-;; @0055 v12 = select_spectre_guard v6, v11, v10 ; v11 = 0-;; @0055 store user6 aligned region0 v2, v12+;; @0055 v9 = iconst.i64 2+;; @0055 v10 = ishl v7, v9 ; v9 = 2+;; @0055 v11 = iadd v8, v10+;; @0055 v12 = iconst.i64 0+;; @0055 v13 = select_spectre_guard v6, v12, v11 ; v12 = 0+;; @0055 store user6 aligned region0 v2, v13;; @0057 jump block1;;;; block1:@@ -61,12 +61,12 @@;; @005e v6 = icmp uge v2, v5;; @005e v7 = uextend.i64 v2;; @005e v8 = load.i64 notrap aligned v0+48-;; v13 = iconst.i64 2-;; @005e v9 = ishl v7, v13 ; v13 = 2-;; @005e v10 = iadd v8, v9-;; @005e v11 = iconst.i64 0-;; @005e v12 = select_spectre_guard v6, v11, v10 ; v11 = 0-;; @005e store user6 aligned region0 v3, v12+;; @005e v9 = iconst.i64 2+;; @005e v10 = ishl v7, v9 ; v9 = 2+;; @005e v11 = iadd v8, v10+;; @005e v12 = iconst.i64 0+;; @005e v13 = select_spectre_guard v6, v12, v11 ; v12 = 0+;; @005e store user6 aligned region0 v3, v13;; @0060 jump block1;;;; block1:diff --git a/tests/disas/typed-funcrefs-eager-init.wat b/tests/disas/typed-funcrefs-eager-init.watindex 18946f27a7..17711b3d4f 100644--- a/tests/disas/typed-funcrefs-eager-init.wat+++ b/tests/disas/typed-funcrefs-eager-init.wat@@ -139,22 +139,22 @@;; block0(v0: i64, v1: i64, v2: i32, v3: i32, v4: i32, v5: i32):;; @0048 v12 = load.i64 notrap aligned readonly can_move v0+48;; v47 = iconst.i64 8-;; @0048 v14 = iadd v12, v47 ; v47 = 8-;; @0048 v17 = load.i64 user6 aligned region0 v14-;; @004a v18 = load.i64 user16 aligned readonly v17+8-;; @004a v19 = load.i64 notrap aligned readonly v17+24-;; @004a v20 = call_indirect sig0, v18(v19, v0, v2, v3, v4, v5)+;; @0048 v15 = iadd v12, v47 ; v47 = 8+;; @0048 v18 = load.i64 user6 aligned region0 v15+;; @004a v19 = load.i64 user16 aligned readonly v18+8+;; @004a v20 = load.i64 notrap aligned readonly v18+24+;; @004a v21 = call_indirect sig0, v19(v20, v0, v2, v3, v4, v5);; v54 = iconst.i64 16-;; @005b v28 = iadd v12, v54 ; v54 = 16-;; @005b v31 = load.i64 user6 aligned region0 v28-;; @005d v32 = load.i64 user16 aligned readonly v31+8-;; @005d v33 = load.i64 notrap aligned readonly v31+24-;; @005d v34 = call_indirect sig0, v32(v33, v0, v2, v3, v4, v5)+;; @005b v30 = iadd v12, v54 ; v54 = 16+;; @005b v33 = load.i64 user6 aligned region0 v30+;; @005d v34 = load.i64 user16 aligned readonly v33+8+;; @005d v35 = load.i64 notrap aligned readonly v33+24+;; @005d v36 = call_indirect sig0, v34(v35, v0, v2, v3, v4, v5);; @0066 jump block1;;;; block1:-;; @0061 v35 = iadd.i32 v34, v20-;; @0066 return v35+;; @0061 v37 = iadd.i32 v36, v21+;; @0066 return v37;; };;;; function u0:2(i64 vmctx, i64, i32, i32, i32, i32) -> i32 tail {@@ -170,22 +170,22 @@;; block0(v0: i64, v1: i64, v2: i32, v3: i32, v4: i32, v5: i32):;; @0075 v12 = load.i64 notrap aligned readonly can_move v0+48;; v47 = iconst.i64 8-;; @0075 v14 = iadd v12, v47 ; v47 = 8-;; @0075 v17 = load.i64 user6 aligned region0 v14-;; @0075 v18 = load.i64 user7 aligned readonly v17+8-;; @0075 v19 = load.i64 notrap aligned readonly v17+24-;; @0075 v20 = call_indirect sig0, v18(v19, v0, v2, v3, v4, v5)+;; @0075 v15 = iadd v12, v47 ; v47 = 8+;; @0075 v18 = load.i64 user6 aligned region0 v15+;; @0075 v19 = load.i64 user7 aligned readonly v18+8+;; @0075 v20 = load.i64 notrap aligned readonly v18+24+;; @0075 v21 = call_indirect sig0, v19(v20, v0, v2, v3, v4, v5);; v54 = iconst.i64 16-;; @0087 v28 = iadd v12, v54 ; v54 = 16-;; @0087 v31 = load.i64 user6 aligned region0 v28-;; @0087 v32 = load.i64 user7 aligned readonly v31+8-;; @0087 v33 = load.i64 notrap aligned readonly v31+24-;; @0087 v34 = call_indirect sig0, v32(v33, v0, v2, v3, v4, v5)+;; @0087 v30 = iadd v12, v54 ; v54 = 16+;; @0087 v33 = load.i64 user6 aligned region0 v30+;; @0087 v34 = load.i64 user7 aligned readonly v33+8+;; @0087 v35 = load.i64 notrap aligned readonly v33+24+;; @0087 v36 = call_indirect sig0, v34(v35, v0, v2, v3, v4, v5);; @0091 jump block1;;;; block1:-;; @008c v35 = iadd.i32 v34, v20-;; @0091 return v35+;; @008c v37 = iadd.i32 v36, v21+;; @0091 return v37;; };;;; function u0:3(i64 vmctx, i64, i32, i32, i32, i32) -> i32 tail {diff --git a/tests/disas/typed-funcrefs.wat b/tests/disas/typed-funcrefs.watindex 4f9adc85ae..e784fb5372 100644--- a/tests/disas/typed-funcrefs.wat+++ b/tests/disas/typed-funcrefs.wat@@ -141,44 +141,44 @@;; block0(v0: i64, v1: i64, v2: i32, v3: i32, v4: i32, v5: i32):;; @0048 v12 = load.i64 notrap aligned readonly can_move v0+48;; v67 = iconst.i64 8-;; @0048 v14 = iadd v12, v67 ; v67 = 8-;; @0048 v17 = load.i64 user6 aligned region0 v14-;; v57 = iconst.i64 -2-;; @0048 v18 = band v17, v57 ; v57 = -2-;; @0048 brif v17, block3(v18), block2+;; @0048 v15 = iadd v12, v67 ; v67 = 8+;; @0048 v18 = load.i64 user6 aligned region0 v15+;; @0048 v19 = iconst.i64 -2+;; @0048 v20 = band v18, v19 ; v19 = -2+;; @0048 brif v18, block3(v20), block2;;;; block2 cold:;; @003c v7 = iconst.i32 0;; v66 = iconst.i64 1-;; @0048 v23 = call fn0(v0, v7, v66) ; v7 = 0, v66 = 1-;; @0048 jump block3(v23)+;; @0048 v25 = call fn0(v0, v7, v66) ; v7 = 0, v66 = 1+;; @0048 jump block3(v25);;-;; block3(v19: i64):-;; @004a v24 = load.i64 user16 aligned readonly v19+8-;; @004a v25 = load.i64 notrap aligned readonly v19+24-;; @004a v26 = call_indirect sig1, v24(v25, v0, v2, v3, v4, v5)+;; block3(v21: i64):+;; @004a v26 = load.i64 user16 aligned readonly v21+8+;; @004a v27 = load.i64 notrap aligned readonly v21+24+;; @004a v28 = call_indirect sig1, v26(v27, v0, v2, v3, v4, v5);; v74 = iconst.i64 16-;; @005b v39 = iadd.i64 v12, v74 ; v74 = 16-;; @005b v42 = load.i64 user6 aligned region0 v39+;; @005b v42 = iadd.i64 v12, v74 ; v74 = 16+;; @005b v45 = load.i64 user6 aligned region0 v42;; v75 = iconst.i64 -2-;; v76 = band v42, v75 ; v75 = -2-;; @005b brif v42, block5(v76), block4+;; v76 = band v45, v75 ; v75 = -2+;; @005b brif v45, block5(v76), block4;;;; block4 cold:;; v77 = iconst.i32 0;; v73 = iconst.i64 2-;; @005b v48 = call fn0(v0, v77, v73) ; v77 = 0, v73 = 2-;; @005b jump block5(v48)+;; @005b v52 = call fn0(v0, v77, v73) ; v77 = 0, v73 = 2+;; @005b jump block5(v52);;-;; block5(v44: i64):-;; @005d v49 = load.i64 user16 aligned readonly v44+8-;; @005d v50 = load.i64 notrap aligned readonly v44+24-;; @005d v51 = call_indirect sig1, v49(v50, v0, v2, v3, v4, v5)+;; block5(v48: i64):+;; @005d v53 = load.i64 user16 aligned readonly v48+8+;; @005d v54 = load.i64 notrap aligned readonly v48+24+;; @005d v55 = call_indirect sig1, v53(v54, v0, v2, v3, v4, v5);; @0066 jump block1;;;; block1:-;; @0061 v53 = iadd.i32 v51, v26-;; @0066 return v53+;; @0061 v57 = iadd.i32 v55, v28+;; @0066 return v57;; };;;; function u0:2(i64 vmctx, i64, i32, i32, i32, i32) -> i32 tail {@@ -196,44 +196,44 @@;; block0(v0: i64, v1: i64, v2: i32, v3: i32, v4: i32, v5: i32):;; @0075 v12 = load.i64 notrap aligned readonly can_move v0+48;; v67 = iconst.i64 8-;; @0075 v14 = iadd v12, v67 ; v67 = 8-;; @0075 v17 = load.i64 user6 aligned region0 v14-;; v57 = iconst.i64 -2-;; @0075 v18 = band v17, v57 ; v57 = -2-;; @0075 brif v17, block3(v18), block2+;; @0075 v15 = iadd v12, v67 ; v67 = 8+;; @0075 v18 = load.i64 user6 aligned region0 v15+;; @0075 v19 = iconst.i64 -2+;; @0075 v20 = band v18, v19 ; v19 = -2+;; @0075 brif v18, block3(v20), block2;;;; block2 cold:;; @0069 v7 = iconst.i32 0;; v66 = iconst.i64 1-;; @0075 v23 = call fn0(v0, v7, v66) ; v7 = 0, v66 = 1-;; @0075 jump block3(v23)+;; @0075 v25 = call fn0(v0, v7, v66) ; v7 = 0, v66 = 1+;; @0075 jump block3(v25);;-;; block3(v19: i64):-;; @0075 v24 = load.i64 user7 aligned readonly v19+8-;; @0075 v25 = load.i64 notrap aligned readonly v19+24-;; @0075 v26 = call_indirect sig0, v24(v25, v0, v2, v3, v4, v5)+;; block3(v21: i64):+;; @0075 v26 = load.i64 user7 aligned readonly v21+8+;; @0075 v27 = load.i64 notrap aligned readonly v21+24+;; @0075 v28 = call_indirect sig0, v26(v27, v0, v2, v3, v4, v5);; v74 = iconst.i64 16-;; @0087 v39 = iadd.i64 v12, v74 ; v74 = 16-;; @0087 v42 = load.i64 user6 aligned region0 v39+;; @0087 v42 = iadd.i64 v12, v74 ; v74 = 16+;; @0087 v45 = load.i64 user6 aligned region0 v42;; v75 = iconst.i64 -2-;; v76 = band v42, v75 ; v75 = -2-;; @0087 brif v42, block5(v76), block4+;; v76 = band v45, v75 ; v75 = -2+;; @0087 brif v45, block5(v76), block4;;;; block4 cold:;; v77 = iconst.i32 0;; v73 = iconst.i64 2-;; @0087 v48 = call fn0(v0, v77, v73) ; v77 = 0, v73 = 2-;; @0087 jump block5(v48)+;; @0087 v52 = call fn0(v0, v77, v73) ; v77 = 0, v73 = 2+;; @0087 jump block5(v52);;-;; block5(v44: i64):-;; @0087 v49 = load.i64 user7 aligned readonly v44+8-;; @0087 v50 = load.i64 notrap aligned readonly v44+24-;; @0087 v51 = call_indirect sig0, v49(v50, v0, v2, v3, v4, v5)+;; block5(v48: i64):+;; @0087 v53 = load.i64 user7 aligned readonly v48+8+;; @0087 v54 = load.i64 notrap aligned readonly v48+24+;; @0087 v55 = call_indirect sig0, v53(v54, v0, v2, v3, v4, v5);; @0091 jump block1;;;; block1:-;; @008c v53 = iadd.i32 v51, v26-;; @0091 return v53+;; @008c v57 = iadd.i32 v55, v28+;; @0091 return v57;; };;;; function u0:3(i64 vmctx, i64, i32, i32, i32, i32) -> i32 tail {