brintos

brintos / llvm-project-archived public Read only

0
0
Text · 473 B · 26c9996 Raw
20 lines · plain
1; RUN: llc < %s | FileCheck %s2; Don't try to emit a direct call through a TLS global.3; This fixes PR221034 5target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"6target triple = "x86_64-unknown-linux-gnu"7 8@a = external thread_local global i649 10; Function Attrs: nounwind11define void @_Z1fv() {12; CHECK-NOT: callq *$a13; CHECK: movq %fs:0, [[RAX:%r..]]14; CHECK-NEXT: addq    a@GOTTPOFF(%rip), [[RAX]]15; CHECK-NEXT: callq *[[RAX]]16entry:17  call void @a()18  ret void19}20