()
| 988 | fn decode_data_processing() { |
| 989 | let output = ArmModeInstruction::from(0b1110_0001_0110_1001_1111_0000_0000_1110); |
| 990 | assert_eq!( |
| 991 | ArmModeInstruction::PSRTransfer { |
| 992 | condition: Condition::AL, |
| 993 | psr_kind: PsrKind::Spsr, |
| 994 | kind: PsrOpKind::Msr { |
| 995 | source_register: 14 |
| 996 | } |
| 997 | }, |
| 998 | output |
| 999 | ); |
| 1000 | assert_eq!("MSR SPSR, R14", output.disassembler()); |
| 1001 | } |
| 1002 | |
| 1003 | #[test] |
| 1004 | fn decode_half_word_data_transfer_immediate_offset() { |
| 1005 | let output = ArmModeInstruction::from(0b1110_0001_1100_0001_0000_0000_1011_0000); |
| 1006 | assert_eq!( |
nothing calls this directly
no outgoing calls
no test coverage detected