aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Mips/tls-alias.ll
blob: a2ba2250995f8cfd21088a94c7fc569dbc69ae6b (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc -mtriple=mipsel -relocation-model=pic -disable-mips-delay-filler < %s | FileCheck %s

@foo = thread_local global i32 42
@bar = hidden thread_local alias i32, ptr @foo

define ptr @zed() {
; CHECK-DAG: __tls_get_addr
; CHECK-DAG: %tlsldm(bar)
       ret ptr @bar
}