Skip to content

Commit

Permalink
Merge branch 'icedland:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
TetzkatLipHoka authored Dec 1, 2024
2 parents 631ce71 + 3aa9a7d commit a2ce157
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 31 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ jobs:
# shell: bash -le {0}
# setup-python is faster to install than setup-miniconda so we only
# use setup-miniconda if this is a macos image.
- uses: conda-incubator/setup-miniconda@v3.0.4
- uses: conda-incubator/setup-miniconda@v3.1.0
with:
python-version: '3.8'
- name: Install Python tools
Expand All @@ -346,7 +346,7 @@ jobs:
./build/build-python --no-set-rustflags --python python --quick-check
git clean -xdf
- uses: conda-incubator/setup-miniconda@v3.0.4
- uses: conda-incubator/setup-miniconda@v3.1.0
with:
python-version: '3.8'
- name: Build and test the wheel
Expand All @@ -355,7 +355,7 @@ jobs:
python --version 2>&1 | grep 'Python 3\.8'
bash build/ci-py-build-wheels.sh --build
- uses: conda-incubator/setup-miniconda@v3.0.4
- uses: conda-incubator/setup-miniconda@v3.1.0
with:
python-version: '3.9'
- name: Build and test the wheel
Expand All @@ -364,7 +364,7 @@ jobs:
python --version 2>&1 | grep 'Python 3\.9'
bash build/ci-py-build-wheels.sh
- uses: conda-incubator/setup-miniconda@v3.0.4
- uses: conda-incubator/setup-miniconda@v3.1.0
with:
python-version: '3.10'
- name: Build and test the wheel
Expand All @@ -373,7 +373,7 @@ jobs:
python --version 2>&1 | grep 'Python 3\.10'
bash build/ci-py-build-wheels.sh
- uses: conda-incubator/setup-miniconda@v3.0.4
- uses: conda-incubator/setup-miniconda@v3.1.0
with:
python-version: '3.11'
- name: Build and test the wheel
Expand Down
6 changes: 3 additions & 3 deletions src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="6.0.2" />
<!-- NOTE: when updating this thing, make sure it hasn't gotten slower (it's happened twice now!) -->
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.console" Version="2.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.console" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>

Expand Down
18 changes: 9 additions & 9 deletions src/java/iced-x86/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.3</version>
<version>5.11.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.10.3</version>
<version>5.11.3</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -82,7 +82,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.1</version>
<version>3.5.2</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -102,19 +102,19 @@
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>4.0.0-M15</version>
<version>4.0.0-M16</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.6.1</version>
<version>3.8.0</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
Expand All @@ -131,7 +131,7 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.7.0</version>
<version>3.11.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -151,7 +151,7 @@
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
1 change: 1 addition & 0 deletions src/rust/iced-x86/src/block_enc/instr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ impl InstrUtils {
format!("{} : 0x{:X}", error_message, instruction.ip())
}

#[allow(unexpected_cfgs)]
pub(super) fn create(block_encoder: &mut BlockEncInt, base: &mut InstrBase, instruction: &Instruction) -> Box<dyn Instr> {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match instruction.code() {
Expand Down
4 changes: 4 additions & 0 deletions src/rust/iced-x86/src/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44853,6 +44853,7 @@ impl Code {
#[must_use]
#[inline]
#[allow(clippy::match_like_matches_macro)]
#[allow(unexpected_cfgs)]
pub const fn is_string_instruction(self) -> bool {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match self {
Expand Down Expand Up @@ -45083,6 +45084,7 @@ impl Code {
impl Code {
#[must_use]
#[allow(clippy::match_like_matches_macro)]
#[allow(unexpected_cfgs)]
pub(crate) const fn ignores_segment(self) -> bool {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match self {
Expand All @@ -45108,6 +45110,7 @@ impl Code {
#[must_use]
#[inline]
#[allow(clippy::match_like_matches_macro)]
#[allow(unexpected_cfgs)]
pub(crate) const fn ignores_index(self) -> bool {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match self {
Expand All @@ -45123,6 +45126,7 @@ impl Code {

#[must_use]
#[inline]
#[allow(unexpected_cfgs)]
pub(crate) const fn is_tile_stride_index(self) -> bool {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match self {
Expand Down
1 change: 1 addition & 0 deletions src/rust/iced-x86/src/encoder/instruction_fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ impl<'a, 'b> InstructionFormatter<'a, 'b> {
}
}

#[allow(unexpected_cfgs)]
pub(super) fn format(&mut self) -> String {
if !self.op_code.is_instruction() {
match self.op_code.code() {
Expand Down
2 changes: 2 additions & 0 deletions src/rust/iced-x86/src/encoder/op_code_fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ impl<'a, 'b> OpCodeFormatter<'a, 'b> {
EncodingKind::EVEX | EncodingKind::XOP | EncodingKind::D3NOW | EncodingKind::MVEX => return true,
}

#[allow(unexpected_cfgs)]
for &op_kind in self.op_code.op_kinds() {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match op_kind {
Expand Down Expand Up @@ -205,6 +206,7 @@ impl<'a, 'b> OpCodeFormatter<'a, 'b> {
false
}

#[allow(unexpected_cfgs)]
fn has_vsib(&self) -> bool {
for &op_kind in self.op_code.op_kinds() {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
Expand Down
2 changes: 2 additions & 0 deletions src/rust/iced-x86/src/encoder/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ impl Op for OpIq {
}

#[allow(non_camel_case_types)]
#[allow(dead_code)]
pub(super) struct OpI4;
impl Op for OpI4 {
fn encode(&self, encoder: &mut Encoder, instruction: &Instruction, operand: u32) {
Expand Down Expand Up @@ -484,6 +485,7 @@ impl Op for OpImm {
}

#[allow(non_camel_case_types)]
#[allow(dead_code)]
pub(super) struct OpHx {
pub(super) reg_lo: Register,
pub(super) reg_hi: Register,
Expand Down
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
1 change: 1 addition & 0 deletions src/rust/iced-x86/src/encoder/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ fn encode_invalid_code_value_is_an_error() {
}

#[test]
#[allow(unexpected_cfgs)]
fn displsize_eq_1_uses_long_form_if_it_does_not_fit_in_1_byte() {
const RIP: u64 = 0;

Expand Down
1 change: 1 addition & 0 deletions src/rust/iced-x86/src/formatter/fmt_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pub(super) fn is_call(kind: FormatterFlowControl) -> bool {
}

#[must_use]
#[allow(unexpected_cfgs)]
pub(super) fn get_flow_control(instruction: &Instruction) -> FormatterFlowControl {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match instruction.code() {
Expand Down
12 changes: 9 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 Expand Up @@ -2447,6 +2450,7 @@ impl Instruction {
#[must_use]
#[allow(clippy::missing_inline_in_public_items)]
#[allow(clippy::match_single_binding)]
#[allow(unexpected_cfgs)]
pub const fn vsib(&self) -> Option<bool> {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
match self.code() {
Expand Down Expand Up @@ -2829,6 +2833,7 @@ impl Instruction {
/// ```
#[must_use]
#[allow(clippy::missing_inline_in_public_items)]
#[allow(unexpected_cfgs)]
pub fn stack_pointer_increment(&self) -> i32 {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
#[allow(clippy::match_single_binding)]
Expand Down Expand Up @@ -2948,6 +2953,7 @@ impl Instruction {
/// ```
#[must_use]
#[allow(clippy::missing_inline_in_public_items)]
#[allow(unexpected_cfgs)]
pub fn fpu_stack_increment_info(&self) -> FpuStackIncrementInfo {
#[cfg_attr(feature = "cargo-fmt", rustfmt::skip)]
#[allow(clippy::match_single_binding)]
Expand Down

0 comments on commit a2ce157

Please sign in to comment.