Skip to content
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

Rollup of 9 pull requests #131887

Merged
merged 23 commits into from
Oct 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
da44e3f
Start test case for `rjmp` regression test
jfrimmel Oct 14, 2024
652ba66
Add check-annotations ensuring correct label
jfrimmel Oct 15, 2024
db6c736
Allow the compiler to select any register
jfrimmel Oct 15, 2024
ab00841
Convert to a `rmake`-test
jfrimmel Oct 15, 2024
bb8db13
Simplify test and make it more reliable
jfrimmel Oct 15, 2024
24810b0
Partially stabilize const_pin
GKFX Sep 9, 2024
3ed5d55
Fix predicate signatures in retain_mut docs
collinoc Oct 17, 2024
a35ed2f
Use `rust-lld` instead of `avr-gcc` as the linker
jfrimmel Oct 15, 2024
cdacdae
remove outdated documentation for `repeat_n`
AnthonyMikh Oct 17, 2024
7b2320c
Avoid shadowing user provided types or type aliases in `thread_local!`
jieyouxu Oct 18, 2024
275ec06
Default to the medium code model on OpenHarmony LoongArch target
heiher Oct 18, 2024
e20636a
Add entropy source for RTEMS
thesummer Oct 16, 2024
4277160
checktools.sh: add link to issue for more context about disabled Miri…
RalfJung Oct 18, 2024
cdbf28a
Dont ICE when computing coverage of synthetic async closure body
compiler-errors Oct 16, 2024
dae3076
Rollup merge of #130136 - GKFX:stabilize-const-pin, r=dtolnay
jieyouxu Oct 18, 2024
ebff167
Rollup merge of #131755 - jfrimmel:avr-rjmp-offset-regression-test, r…
jieyouxu Oct 18, 2024
951c0cd
Rollup merge of #131774 - thesummer:rtems-add-getentropy, r=joboet
jieyouxu Oct 18, 2024
aae4730
Rollup merge of #131802 - compiler-errors:fnonce-coverage, r=Zalathar
jieyouxu Oct 18, 2024
759820e
Rollup merge of #131809 - collinoc:fix-retain-mut-docs, r=jhpratt
jieyouxu Oct 18, 2024
64bf99b
Rollup merge of #131858 - AnthonyMikh:AnthonyMikh/repeat_n-is-not-tha…
jieyouxu Oct 18, 2024
af85d52
Rollup merge of #131866 - jieyouxu:thread_local, r=jhpratt
jieyouxu Oct 18, 2024
9a664a0
Rollup merge of #131874 - heiher:loong-ohos-medium, r=jieyouxu
jieyouxu Oct 18, 2024
80a8f7b
Rollup merge of #131877 - RalfJung:checktools-comment, r=ChrisDenton
jieyouxu Oct 18, 2024
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 check-annotations ensuring correct label
The issue was, that the disassembled label was placed one instruction
further down than expected. Therefore the test annotations check, that
the label is placed above the loop-contents (writing the one value, then
writing the other one).
  • Loading branch information
jfrimmel committed Oct 15, 2024
commit 652ba6699c30f036be07fead0df63a1e5f5ddbf8
7 changes: 7 additions & 0 deletions tests/assembly/avr-rjmp-offsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ macro_rules! asm {
use minicore::ptr;

// CHECK-LABEL: pin_toggling
// CHECK: .LBB0_1:
// CHECK-NEXT: out 5, r17
// CHECK-NEXT: call delay
// CHECK-NEXT: out 5, r16
// CHECK-NEXT: call delay
// CHECK-NEXT: rjmp .LBB0_1
#[no_mangle]
pub fn pin_toggling() {
let port_b = 0x25 as *mut u8; // the I/O-address of PORTB
Expand All @@ -33,6 +39,7 @@ pub fn pin_toggling() {
}

#[inline(never)]
#[no_mangle]
fn delay(_: u32) {
unsafe { asm!("nop") };
}
Expand Down