1 ; RUN: llc -O0 < %s -march=avr | FileCheck %s
9 ; CHECK: in [[SREG1:r[0-9]+]], 61
10 ; CHECK-NEXT: in [[SREG2:r[0-9]+]], 62
12 %saved = call ptr @llvm.stacksave()
15 ; CHECK-LABEL: restore
18 ; CHECK-NEXT: out 62, [[SREG2]]
19 ; CHECK-NEXT: out 63, r0
20 ; CHECK-NEXT: out 61, [[SREG1]]
22 call void @llvm.stackrestore(ptr %saved)
26 declare ptr @llvm.stacksave()
27 declare void @llvm.stackrestore(ptr %ptr)