Skip to content

specify target CPUs in 'powerpc-types.rs' assembly test - #166595

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jchecahi:powerpc-types-base-cpu
Nov 27, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jchecahi:powerpc-types-base-cpu

Conversation

@jchecahi

Copy link
Copy Markdown
Contributor

The test currently relies on the default CPU configured for each target. This makes its behavior dependent on the target specification, which can be modified by downstream distributions.

Specifically, CentOS/RHEL 9/10 configure powerpc64le-unknown-linux-gnu target to use pwr9, and CentOS/RHEL 11 will use pwr10. This enables power9-vector by default and changes the code generation assumptions made by the test.

This change set the baseline CPU for each PowerPC target revision, based on upstream's target definition in compiler/rustc_target/src/spec/targets/<target>.rs:

  • generic for powerpc
  • ppc64 for powerpc64
  • ppc64le for powerpc64le

Additional target features remain enabled only in the revisions that explicitly test them.

This makes the test independent of downstream changes to default target CPUs and keeps its code generation assumptions reproducible.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 26, 2026
@rustbot

rustbot commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

r? @Enselic

rustbot has assigned @Enselic.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 79 candidates
  • Random selection from 20 candidates

@Enselic

Enselic commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Would you like to r? beetrees ? It looks like you might want to, based on git log.

@rustbot rustbot assigned beetrees and unassigned Enselic Nov 26, 2026
@rustbot

rustbot commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

beetrees is currently at their maximum review capacity.
They may take a while to respond.

@beetrees beetrees left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the same caveats regarding downstream changes to upstream targets mentioned in #164741 (comment):

@bors r+ rollup

View changes since this review

@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit fd9b8d5 has been approved by beetrees

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 27, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 27, 2026
…=beetrees

specify target CPUs in 'powerpc-types.rs' assembly test

The test currently relies on the default CPU configured for each target. This makes its behavior dependent on the target specification, which can be modified by downstream distributions.

Specifically, CentOS/RHEL 9/10 configure `powerpc64le-unknown-linux-gnu` target to use `pwr9`, and CentOS/RHEL 11 will use pwr10. This enables `power9-vector` by default and changes the code generation assumptions made by the test.

This change set the baseline CPU for each PowerPC target revision, based on upstream's target definition in `compiler/rustc_target/src/spec/targets/<target>.rs`:

* `generic` for powerpc
* `ppc64` for powerpc64
* `ppc64le` for powerpc64le

Additional target features remain enabled only in the revisions that explicitly test them.

This makes the test independent of downstream changes to default target CPUs and keeps its code generation assumptions reproducible.
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - #164628 (callconv: mips64: handle repr(transparent))
 - #166595 (specify target CPUs in 'powerpc-types.rs' assembly test)
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
…uwer

Rollup of 11 pull requests

Successful merges:

 - #165836 (Use LLVM option `-disable-auto-upgrade-debug-info`)
 - #164783 (callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs)
 - #166634 (do not lint `drop_bounds`, `dyn_drop`, `trivial_bounds` and const param names on items from external macros)
 - #166649 (abby dsl: minor refactor/cleanup)
 - #164628 (callconv: mips64: handle repr(transparent))
 - #166387 (Remove diagnostics import list)
 - #166564 (miri: support statx syscall)
 - #166583 (abby dsl tests: the passing test should check-pass)
 - #166595 (specify target CPUs in 'powerpc-types.rs' assembly test)
 - #166640 (compiletest: Use an explicit argfile instead of ArgFileCommand)
 - #166646 (Fix reversed argument counts in Fn trait mismatch note)
@rust-bors
rust-bors Bot merged commit 063c8f7 into rust-lang:main Nov 27, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
Rollup merge of #166595 - jchecahi:powerpc-types-base-cpu, r=beetrees

specify target CPUs in 'powerpc-types.rs' assembly test

The test currently relies on the default CPU configured for each target. This makes its behavior dependent on the target specification, which can be modified by downstream distributions.

Specifically, CentOS/RHEL 9/10 configure `powerpc64le-unknown-linux-gnu` target to use `pwr9`, and CentOS/RHEL 11 will use pwr10. This enables `power9-vector` by default and changes the code generation assumptions made by the test.

This change set the baseline CPU for each PowerPC target revision, based on upstream's target definition in `compiler/rustc_target/src/spec/targets/<target>.rs`:

* `generic` for powerpc
* `ppc64` for powerpc64
* `ppc64le` for powerpc64le

Additional target features remain enabled only in the revisions that explicitly test them.

This makes the test independent of downstream changes to default target CPUs and keeps its code generation assumptions reproducible.
mehmettoplu-rs pushed a commit to mehmettoplu-rs/miri that referenced this pull request Nov 28, 2026
…uwer

Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#165836 (Use LLVM option `-disable-auto-upgrade-debug-info`)
 - rust-lang/rust#164783 (callconv: mips64: match gcc for "alignment" of 16-byte-aligned ZSTs)
 - rust-lang/rust#166634 (do not lint `drop_bounds`, `dyn_drop`, `trivial_bounds` and const param names on items from external macros)
 - rust-lang/rust#166649 (abby dsl: minor refactor/cleanup)
 - rust-lang/rust#164628 (callconv: mips64: handle repr(transparent))
 - rust-lang/rust#166387 (Remove diagnostics import list)
 - rust-lang/rust#166564 (miri: support statx syscall)
 - rust-lang/rust#166583 (abby dsl tests: the passing test should check-pass)
 - rust-lang/rust#166595 (specify target CPUs in 'powerpc-types.rs' assembly test)
 - rust-lang/rust#166640 (compiletest: Use an explicit argfile instead of ArgFileCommand)
 - rust-lang/rust#166646 (Fix reversed argument counts in Fn trait mismatch note)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants