xref: /llvm-project/llvm/test/CodeGen/SystemZ/ghc-cc-04.ll (revision a1710eb3cd5823c5d14899112ca3086acbdbe9cb)
1; Check that the GHC calling convention works (s390x)
2; Thread local storage is not supported in GHC calling convention
3;
4; RUN: not --crash llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s
5
6@x = thread_local global i32 0
7
8define ghccc void @foo() nounwind {
9entry:
10  call void @bar(ptr@x)
11  ret void
12}
13
14declare void @bar(ptr)
15
16; CHECK: LLVM ERROR: In GHC calling convention TLS is not supported
17