Skip to content

Commit

Permalink
Allow the compiler to select any register
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrimmel committed Oct 15, 2024
1 parent 652ba66 commit db6c736
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/assembly/avr-rjmp-offsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ macro_rules! asm {
use minicore::ptr;

// CHECK-LABEL: pin_toggling
// CHECK: ldi [[REG_1:r[0-9]+]], 1
// CHECK: ldi [[REG_2:r[0-9]+]], 2
// CHECK: .LBB0_1:
// CHECK-NEXT: out 5, r17
// CHECK-NEXT: out 5, [[REG_1]]
// CHECK-NEXT: call delay
// CHECK-NEXT: out 5, r16
// CHECK-NEXT: out 5, [[REG_2]]
// CHECK-NEXT: call delay
// CHECK-NEXT: rjmp .LBB0_1
#[no_mangle]
Expand Down

0 comments on commit db6c736

Please sign in to comment.