blob: 4dd14e6b2163140ab0203157906fb7ea6003c345 [file] [log] [blame]
Dan Gohmane9865942009-02-23 22:03:08 +00001; RUN: llvm-as < %s | llc -march=x86 -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | grep __tls_get_addr
2; 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}