blob: 349e381af2b7370e029ca48e5e26fbfc4b608f22 [file] [log] [blame]
Daniel Sanders8008de52015-10-15 14:34:23 +00001; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=PIC16
Reed Kotlerb650f6b2012-10-26 22:57:32 +00002
3@a = thread_local global i32 4, align 4
4
5define i32 @foo() nounwind readonly {
6entry:
David Blaikiea79ac142015-02-27 21:17:42 +00007 %0 = load i32, i32* @a, align 4
Reed Kotlerb650f6b2012-10-26 22:57:32 +00008; PIC16: lw ${{[0-9]+}}, %call16(__tls_get_addr)(${{[0-9]+}})
9; PIC16: addiu ${{[0-9]+}}, %tlsgd(a)
10 ret i32 %0
11}
12
13