1; RUN: llc -march=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, i32* @foo
5
6define i32* @zed() {
7; CHECK-DAG: __tls_get_addr
8; CHECK-DAG: %tlsldm(bar)
9       ret i32* @bar
10}
11