Dan Gohman | e986594 | 2009-02-23 22:03:08 +0000 | [diff] [blame] | 1 | ; 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 | ||||
5 | define i32 @f() nounwind { | ||||
6 | entry: | ||||
7 | %t = load i32* @v | ||||
8 | %s = add i32 %t, 1 | ||||
9 | ret i32 %s | ||||
10 | } |