1 ; RUN: llc < %s -march=x86 -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | FileCheck %s 2 ; PR3654 3 4 @v = thread_local global i32 0 5 define i32 @f() nounwind { 6 entry: 7 %t = load i32, i32* @v 8 %s = add i32 %t, 1 9 ret i32 %s 10 } 11 12 ; CHECK-LABEL: f: 13 ; CHECK: leal v@TLSGD 14 ; CHECK: __tls_get_addr 15 16 @alias = internal alias i32, i32* @v 17 define i32 @f_alias() nounwind { 18 entry: 19 %t = load i32, i32* @v 20 %s = add i32 %t, 1 21 ret i32 %s 22 } 23 24 ; CHECK-LABEL: f_alias: 25 ; CHECK: leal v@TLSGD 26 ; CHECK: __tls_get_addr 27