xref: /llvm-project/llvm/test/CodeGen/LoongArch/emutls.ll (revision 7a4fab410124144f0196bdee6645b649799dec15)
1; RUN: not llc --mtriple=loongarch64 -emulated-tls -mattr=+d \
2; RUN:     -relocation-model=pic < %s 2>&1 | FileCheck %s
3
4; CHECK: LLVM ERROR: the emulated TLS is prohibited
5
6@x = thread_local global i8 7, align 2
7
8define ptr @get_x() nounwind {
9entry:
10  ret ptr @x
11}
12