xref: /llvm-project/llvm/test/CodeGen/Mips/tls-alias.ll (revision ae26f50aea4ef1a6c7058019f0db11a91bbcdade)
1; RUN: llc -mtriple=mipsel -relocation-model=pic -disable-mips-delay-filler < %s | FileCheck %s
2
3@foo = thread_local global i32 42
4@bar = hidden thread_local alias i32, ptr @foo
5
6define ptr @zed() {
7; CHECK-DAG: __tls_get_addr
8; CHECK-DAG: %tlsldm(bar)
9       ret ptr @bar
10}
11