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