Add assertion for immediate values in test_be
This commit is contained in:
parent
4cab56f2f4
commit
21c7a88d16
1 changed files with 2 additions and 0 deletions
|
|
@ -1839,6 +1839,8 @@ pub fn gen_test_be(ctx: &mut JitContext, negate: ConditionNegate) {
|
|||
}
|
||||
},
|
||||
&InstructionOperand::Immediate(i) => {
|
||||
dbg_assert!(*opsize != OPSIZE_8 || i >= 0 && i < 0x100);
|
||||
dbg_assert!(*opsize != OPSIZE_16 || i >= 0 && i < 0x10000);
|
||||
ctx.builder.const_i32(i);
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue