blob: a5e6642e09c1361010f776f1a49143912812ff01 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | grep __tls_get_addr
Dan Gohmane9865942009-02-23 22:03:08 +00002; PR3654
3
4@v = thread_local global i32 0
5define i32 @f() nounwind {
6entry:
7 %t = load i32* @v
8 %s = add i32 %t, 1
9 ret i32 %s
10}