1; RUN: llc < %s -mtriple=ve | FileCheck %s
2
3; Function Attrs: noinline nounwind optnone
4define i8* @stacksave() {
5; CHECK-LABEL: stacksave:
6; CHECK:       .LBB{{[0-9]+}}_2:
7; CHECK-NEXT:    or %s0, 0, %s11
8; CHECK-NEXT:    or %s11, 0, %s9
9  %ret = call i8* @llvm.stacksave()
10  ret i8* %ret
11}
12
13; Function Attrs: noinline nounwind optnone
14define void @stackrestore(i8* %ptr) {
15; CHECK-LABEL: stackrestore:
16; CHECK:       .LBB{{[0-9]+}}_2:
17; CHECK-NEXT:    or %s11, 0, %s0
18; CHECK-NEXT:    or %s11, 0, %s9
19  call void @llvm.stackrestore(i8* %ptr)
20  ret void
21}
22
23; Function Attrs: nounwind
24declare i8* @llvm.stacksave()
25; Function Attrs: nounwind
26declare void @llvm.stackrestore(i8*)
27