1 ; RUN: llc < %s -march=xcore | FileCheck %s
4 declare ptr @llvm.stacksave() nounwind
5 declare void @llvm.stackrestore(ptr) nounwind
7 define void @f(ptr %p, i32 %size) {
9 %0 = call ptr @llvm.stacksave()
10 %a = alloca i32, i32 %size
13 call void @llvm.stackrestore(ptr %0)
17 ; CHECK: ldaw [[REGISTER:r[0-9]+]], {{r[0-9]+}}[-r1]
18 ; CHECK: set sp, [[REGISTER]]