Skip to content

Rollup of 15 pull requests #142397

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

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8bbc080
Added `Clone` implementation for `ChunkBy`
nwoods-cimpress Mar 4, 2025
e48617f
Changing #[stable] tag
nwoods-cimpress Mar 6, 2025
6a5bad3
resolve: Tweak `private_macro_use` lint to be compatible with upcomin…
petrochenkov Jun 2, 2025
c0851d7
Update ABI compatibility docs about null-pointer-optimized enums.
zachs18 Jun 3, 2025
2cfd494
docs: autogenerate compiler flag stubs based on -Zhelp
rmehri01 Jun 7, 2025
ff8b11e
assert in release in ast_lowering::item
workingjubilee Jun 9, 2025
dd78c95
assert more often in release in ast_lowering
workingjubilee Jun 9, 2025
6cea550
tests: Minicore `extern "gpu-kernel"` feature test
workingjubilee Jun 1, 2025
5906998
tests: Copy dont-shuffle-bswaps per tested opt level
workingjubilee Jun 7, 2025
6b0deb2
tests: Revise dont-shuffle-bswaps-opt3 per tested arch
workingjubilee Jun 7, 2025
de8a91b
Add supported asm types for LoongArch32
heiher Jun 9, 2025
2095211
core docs: improve clarity of considerations about atomic CAS operations
fu5ha Jun 10, 2025
d8f053b
Fix a missing fragment specifier in rustdoc tests
tgross35 Jul 31, 2024
1dc388b
Make `missing_fragment_specifier` an unconditional error
tgross35 Jul 31, 2024
30f3725
bump apfloat dependency
RalfJung Jun 11, 2025
2a10f12
miri: add flag to suppress float non-determinism
RalfJung Jun 11, 2025
f5d24e9
miri: we can use apfloat's mul_add now
RalfJung Jun 11, 2025
86493f7
compiler: Avoid reporting unsupported_calling_conventions in deps
workingjubilee Jun 11, 2025
457a4c4
Update dependencies in `library/Cargo.lock`
tgross35 Jun 10, 2025
8f0c09a
tests: Bless for weaker unsupported_calling_conventions
workingjubilee Jun 11, 2025
22de67f
add `extern "custom"` functions
folkertdev May 7, 2025
e477409
Rollup merge of #128425 - tgross35:missing-fragment-specifier-uncondi…
workingjubilee Jun 12, 2025
8b0e22d
Rollup merge of #138016 - nwoods-cimpress:slice_chunkby_clone, r=dtolnay
workingjubilee Jun 12, 2025
5ab24d2
Rollup merge of #140770 - folkertdev:custom-abi, r=tgross35
workingjubilee Jun 12, 2025
400da51
Rollup merge of #141934 - petrochenkov:privmacuse, r=compiler-errors
workingjubilee Jun 12, 2025
b0eea5e
Rollup merge of #141947 - zachs18:patch-4, r=workingjubilee,traviscross
workingjubilee Jun 12, 2025
8aa72bf
Rollup merge of #142135 - rmehri01:gen-compiler-flags, r=compiler-errors
workingjubilee Jun 12, 2025
7b89fff
Rollup merge of #142176 - workingjubilee:dont-shuffle-bswaps-per-arch…
workingjubilee Jun 12, 2025
b6bed38
Rollup merge of #142248 - heiher:loong32-asm-types, r=Amanieu
workingjubilee Jun 12, 2025
36a5613
Rollup merge of #142252 - fu5ha:doc-cas-ops, r=ibraheemdev
workingjubilee Jun 12, 2025
9c9121e
Rollup merge of #142267 - workingjubilee:debug-assert-less-in-ast-low…
workingjubilee Jun 12, 2025
6881d17
Rollup merge of #142273 - workingjubilee:rework-gpu-kernel-feature-ga…
workingjubilee Jun 12, 2025
23d1247
Rollup merge of #142276 - tgross35:update-library-lockfile, r=Mark-Si…
workingjubilee Jun 12, 2025
9bb512b
Rollup merge of #142337 - RalfJung:miri-float-nondet, r=oli-obk
workingjubilee Jun 12, 2025
dee5fb1
Rollup merge of #142340 - RalfJung:miri-apfloat-mul-add, r=oli-obk
workingjubilee Jun 12, 2025
6400925
Rollup merge of #142353 - workingjubilee:warn-less-about-cdecl-and-ot…
workingjubilee Jun 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add supported asm types for LoongArch32
  • Loading branch information
heiher committed Jun 10, 2025
commit de8a91b51c3fbc60e80a75e2859e371e7de7e1ec
10 changes: 6 additions & 4 deletions compiler/rustc_target/src/asm/loongarch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ impl LoongArchInlineAsmRegClass {

pub fn supported_types(
self,
_arch: InlineAsmArch,
arch: InlineAsmArch,
) -> &'static [(InlineAsmType, Option<Symbol>)] {
match self {
Self::reg => types! { _: I8, I16, I32, I64, F32, F64; },
Self::freg => types! { f: F32; d: F64; },
match (self, arch) {
(Self::reg, InlineAsmArch::LoongArch64) => types! { _: I8, I16, I32, I64, F32, F64; },
(Self::reg, InlineAsmArch::LoongArch32) => types! { _: I8, I16, I32, F32; },
(Self::freg, _) => types! { f: F32; d: F64; },
_ => unreachable!("unsupported register class"),
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This feature tracks `asm!` and `global_asm!` support for the following architect
- M68k
- CSKY
- SPARC
- LoongArch32

## Register classes

Expand Down Expand Up @@ -53,6 +54,8 @@ This feature tracks `asm!` and `global_asm!` support for the following architect
| CSKY | `freg` | `f[0-31]` | `f` |
| SPARC | `reg` | `r[2-29]` | `r` |
| SPARC | `yreg` | `y` | Only clobbers |
| LoongArch32 | `reg` | `$r1`, `$r[4-20]`, `$r[23,30]` | `r` |
| LoongArch32 | `freg` | `$f[0-31]` | `f` |

> **Notes**:
> - NVPTX doesn't have a fixed register set, so named registers are not supported.
Expand Down Expand Up @@ -91,6 +94,8 @@ This feature tracks `asm!` and `global_asm!` support for the following architect
| CSKY | `freg` | None | `f32`, |
| SPARC | `reg` | None | `i8`, `i16`, `i32`, `i64` (SPARC64 only) |
| SPARC | `yreg` | N/A | Only clobbers |
| LoongArch32 | `reg` | None | `i8`, `i16`, `i32`, `f32` |
| LoongArch32 | `freg` | None | `f32`, `f64` |

## Register aliases

Expand Down
Loading