1 ; RUN: llc < %s -mtriple=ve | FileCheck %s
3 ; Function Attrs: noinline nounwind optnone
4 define ptr @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 ptr @llvm.stacksave()
13 ; Function Attrs: noinline nounwind optnone
14 define void @stackrestore(ptr %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(ptr %ptr)
23 ; Function Attrs: nounwind
24 declare ptr @llvm.stacksave()
25 ; Function Attrs: nounwind
26 declare void @llvm.stackrestore(ptr)