27 lines · plain
1; RUN: llc < %s -mtriple=ve | FileCheck %s2 3; Function Attrs: noinline nounwind optnone4define ptr @stacksave() {5; CHECK-LABEL: stacksave:6; CHECK: .LBB{{[0-9]+}}_2:7; CHECK-NEXT: or %s0, 0, %s118; CHECK-NEXT: or %s11, 0, %s99 %ret = call ptr @llvm.stacksave()10 ret ptr %ret11}12 13; Function Attrs: noinline nounwind optnone14define void @stackrestore(ptr %ptr) {15; CHECK-LABEL: stackrestore:16; CHECK: .LBB{{[0-9]+}}_2:17; CHECK-NEXT: or %s11, 0, %s018; CHECK-NEXT: or %s11, 0, %s919 call void @llvm.stackrestore(ptr %ptr)20 ret void21}22 23; Function Attrs: nounwind24declare ptr @llvm.stacksave()25; Function Attrs: nounwind26declare void @llvm.stackrestore(ptr)27