Repository navigation
fix mips64el tests
#2260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
folkertdev
wants to merge
12
commits into
rust-lang:main
Choose a base branch
from
folkertdev:mips-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix mips64el tests
#2260
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
52ee613
fix shift immediate widths
folkertdev 33097e3
use better test inputs
folkertdev 86cfb2e
use better inputs that don't get folded away
folkertdev 70d2da8
use better inputs that don't get folded away
folkertdev d4636ea
fixup docker files
folkertdev 0ae226f
loads and stores now always use the `.d` variant
folkertdev abcd917
`copy_u_d` uses the signed instruction; there is no sign/zero extensi…
folkertdev 2b93927
clang ends up using the negated variant; fine
folkertdev 89fcb5d
clang uses just an `andi.b` for `bclri_b`
folkertdev ec956b1
correct FMA test results
folkertdev 83bf972
run qemu with a CPU that has +msa
folkertdev 1cc796f
work around LLVM emitting a different instruction than the intrinsic …
folkertdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| FROM ubuntu:25.04 # gcc-mips64-linux-gnuabi64 not available in 25.10 | ||
| FROM ubuntu:25.10 | ||
|
|
||
| # gcc-mips64-linux-gnuabi64 not available by default in 25.10 | ||
| RUN echo "deb http://archive.ubuntu.com/ubuntu noble main universe" >> /etc/apt/sources.list.d/noble-copies.list | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| gcc libc6-dev qemu-user ca-certificates \ | ||
| gcc-mips64-linux-gnuabi64 libc6-dev-mips64-cross \ | ||
| qemu-system-mips64 qemu-user | ||
|
|
||
| # Use Loongson-3A4000, a CPU with MSA support. Qemu does not define a max CPU for MIPS. | ||
| ENV CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_LINKER=mips64-linux-gnuabi64-gcc \ | ||
| CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -L /usr/mips64-linux-gnuabi64" \ | ||
| OBJDUMP=mips64-linux-gnuabi64-objdump | ||
| CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -cpu Loongson-3A4000 -L /usr/mips64-linux-gnuabi64" \ | ||
| OBJDUMP=mips64-linux-gnuabi64-objdump | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| FROM ubuntu:25.04 # gcc-mips64el-linux-gnuabi64 not available in 25.10 | ||
| FROM ubuntu:25.10 | ||
|
|
||
| # gcc-mips64el-linux-gnuabi64 not available by default in 25.10 | ||
| RUN echo "deb http://archive.ubuntu.com/ubuntu noble main universe" >> /etc/apt/sources.list.d/noble-copies.list | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| gcc libc6-dev qemu-user ca-certificates \ | ||
| gcc-mips64el-linux-gnuabi64 libc6-dev-mips64el-cross \ | ||
| qemu-system-mips64el | ||
|
|
||
| # Use Loongson-3A4000, a CPU with MSA support. Qemu does not define a max CPU for MIPS. | ||
| ENV CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_LINKER=mips64el-linux-gnuabi64-gcc \ | ||
| CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -L /usr/mips64el-linux-gnuabi64" \ | ||
| OBJDUMP=mips64el-linux-gnuabi64-objdump | ||
| CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -cpu Loongson-3A4000 -L /usr/mips64el-linux-gnuabi64" \ | ||
| OBJDUMP=mips64el-linux-gnuabi64-objdump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment about why the cpu is needed?
View changes since the review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming this is because there doesn't seem to be a "max" cpu for qemu-mips64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, from what I understand the CPUs covered by MIPS are quite a broad set, with various breaking changes, so it's not really possible to pick a single
maxCPU. I just picked one with MSA.