Skip to content

Commit

Permalink
reformat using rustfmt 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Sep 10, 2024
1 parent a3160f1 commit 82f7a33
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
26 changes: 15 additions & 11 deletions src/rust/iced-x86/src/encoder/tests/dec_enc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,17 +695,21 @@ fn verify_tuple_type_bcst() {
continue;
}
let op_code = code.op_code();
let expected_bcst =
matches!(
op_code.tuple_type(),
TupleType::N8b4
| TupleType::N16b4 | TupleType::N32b4
| TupleType::N64b4 | TupleType::N16b8
| TupleType::N32b8 | TupleType::N64b8
| TupleType::N4b2 | TupleType::N8b2
| TupleType::N16b2 | TupleType::N32b2
| TupleType::N64b2
);
let expected_bcst = matches!(
op_code.tuple_type(),
TupleType::N8b4
| TupleType::N16b4
| TupleType::N32b4
| TupleType::N64b4
| TupleType::N16b8
| TupleType::N32b8
| TupleType::N64b8
| TupleType::N4b2
| TupleType::N8b2
| TupleType::N16b2
| TupleType::N32b2
| TupleType::N64b2
);
assert_eq!(op_code.can_broadcast(), expected_bcst);
}
}
Expand Down
9 changes: 6 additions & 3 deletions src/rust/iced-x86/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,12 @@ impl Instruction {
| Code::Xchg_rm16_r16
| Code::Xchg_rm32_r32
| Code::Xchg_rm64_r64
| Code::Mov_rm8_r8 | Code::Mov_rm16_r16
| Code::Mov_rm32_r32 | Code::Mov_rm64_r64
| Code::Mov_rm8_imm8 | Code::Mov_rm16_imm16
| Code::Mov_rm8_r8
| Code::Mov_rm16_r16
| Code::Mov_rm32_r32
| Code::Mov_rm64_r64
| Code::Mov_rm8_imm8
| Code::Mov_rm16_imm16
| Code::Mov_rm32_imm32
| Code::Mov_rm64_imm32
)
Expand Down

0 comments on commit 82f7a33

Please sign in to comment.