brintos

brintos / llvm-project-archived public Read only

0
0
Text · 552 B · ccd7856 Raw
27 lines · plain
1; RUN: llc < %s -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | FileCheck %s2; PR36543 4@v = thread_local global i32 05define i32 @f() nounwind {6entry:7          %t = load i32, ptr @v8          %s = add i32 %t, 19          ret i32 %s10}11 12; CHECK-LABEL: f:13; CHECK: leal	v@TLSGD14; CHECK: __tls_get_addr15 16@alias = internal alias i32, ptr @v17define i32 @f_alias() nounwind {18entry:19          %t = load i32, ptr @v20          %s = add i32 %t, 121          ret i32 %s22}23 24; CHECK-LABEL: f_alias:25; CHECK: leal	v@TLSGD26; CHECK: __tls_get_addr27