brintos

brintos / llvm-project-archived public Read only

0
0
Text · 505 B · 21f95ed Raw
17 lines · plain
1; Check that the GHC calling convention works (s390x)2; Variable-sized stack allocations are not supported in GHC calling convention3;4; RUN: not --crash llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s5 6define ghccc void @foo() nounwind {7entry:8  %0 = call ptr @llvm.stacksave()9  call void @llvm.stackrestore(ptr %0)10  ret void11}12 13declare ptr @llvm.stacksave()14declare void @llvm.stackrestore(ptr)15 16; CHECK: LLVM ERROR: Variable-sized stack allocations are not supported in GHC calling convention17