(&mut self, ctrl_typevar: Type)
| 632 | |
| 633 | #[inline] |
| 634 | pub(crate) fn mask_immediates(&mut self, ctrl_typevar: Type) { |
| 635 | if ctrl_typevar.is_invalid() { |
| 636 | return; |
| 637 | } |
| 638 | |
| 639 | let bit_width = ctrl_typevar.bits(); |
| 640 | |
| 641 | match self { |
| 642 | Self::UnaryImm { opcode: _, imm } => { |
| 643 | *imm = imm.mask_to_width(bit_width); |
| 644 | } |
| 645 | _ => {} |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | /// Get the exception table, if any, associated with this instruction. |
| 650 | pub fn exception_table(&self) -> Option<ExceptionTable> { |
no test coverage detected