From db6c736da3df6ab7be13c90ac0c13c21b2ba6920 Mon Sep 17 00:00:00 2001 From: Julian Frimmel Date: Tue, 15 Oct 2024 12:30:55 +0200 Subject: [PATCH] Allow the compiler to select any register --- tests/assembly/avr-rjmp-offsets.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/assembly/avr-rjmp-offsets.rs b/tests/assembly/avr-rjmp-offsets.rs index bf43e016f92b7..0acf54fada46a 100644 --- a/tests/assembly/avr-rjmp-offsets.rs +++ b/tests/assembly/avr-rjmp-offsets.rs @@ -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]