brintos

brintos / llvm-project-archived public Read only

0
0
Text · 370 B · 0cee4af Raw
14 lines · plain
1; RUN: opt -passes=verify -S < %s | FileCheck %s2 3@var = thread_local global i32 04@alias = thread_local alias i32, ptr @var5 6; CHECK-LABEL: @should_pass7define void @should_pass() {8  %p0 = call ptr @llvm.threadlocal.address(ptr @var)9  store i32 42, ptr %p0, align 410  %p1 = call ptr @llvm.threadlocal.address(ptr @alias)11  store i32 13, ptr %p1, align 412  ret void13}14