CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
88 lines
1.7 KiB
LLVM
88 lines
1.7 KiB
LLVM
; RUN: llc < %s -mtriple=i386-linux-gnu -relocation-model=pic | FileCheck %s --check-prefix=X86
|
|
; RUN: llc < %s -mtriple=x86_64-linux-gnu -relocation-model=pic | FileCheck %s --check-prefix=X64
|
|
|
|
@i = thread_local global i32 15
|
|
@j = internal thread_local global i32 42
|
|
@k = internal thread_local global i32 42
|
|
|
|
define i32 @f1() {
|
|
entry:
|
|
%tmp1 = load i32, ptr @i
|
|
ret i32 %tmp1
|
|
}
|
|
|
|
; X86-LABEL: f1:
|
|
; X86: leal i@TLSGD(,%ebx), %eax
|
|
; X86: calll ___tls_get_addr@PLT
|
|
|
|
; X64-LABEL: f1:
|
|
; X64: leaq i@TLSGD(%rip), %rdi
|
|
; X64: callq __tls_get_addr@PLT
|
|
|
|
|
|
@i2 = external thread_local global i32
|
|
|
|
define ptr @f2() {
|
|
entry:
|
|
ret ptr @i
|
|
}
|
|
|
|
; X86-LABEL: f2:
|
|
; X86: leal i@TLSGD(,%ebx), %eax
|
|
; X86: calll ___tls_get_addr@PLT
|
|
|
|
; X64-LABEL: f2:
|
|
; X64: leaq i@TLSGD(%rip), %rdi
|
|
; X64: callq __tls_get_addr@PLT
|
|
|
|
|
|
|
|
define i32 @f3() {
|
|
entry:
|
|
%tmp1 = load i32, ptr @i ; <i32> [#uses=1]
|
|
ret i32 %tmp1
|
|
}
|
|
|
|
; X86-LABEL: f3:
|
|
; X86: leal i@TLSGD(,%ebx), %eax
|
|
; X86: calll ___tls_get_addr@PLT
|
|
|
|
; X64-LABEL: f3:
|
|
; X64: leaq i@TLSGD(%rip), %rdi
|
|
; X64: callq __tls_get_addr@PLT
|
|
|
|
|
|
define ptr @f4() nounwind {
|
|
entry:
|
|
ret ptr @i
|
|
}
|
|
|
|
; X86-LABEL: f4:
|
|
; X86: leal i@TLSGD(,%ebx), %eax
|
|
; X86: calll ___tls_get_addr@PLT
|
|
|
|
; X64-LABEL: f4:
|
|
; X64: leaq i@TLSGD(%rip), %rdi
|
|
; X64: callq __tls_get_addr@PLT
|
|
|
|
|
|
define i32 @f5() nounwind {
|
|
entry:
|
|
%0 = load i32, ptr @j, align 4
|
|
%1 = load i32, ptr @k, align 4
|
|
%add = add nsw i32 %0, %1
|
|
ret i32 %add
|
|
}
|
|
|
|
; X86-LABEL: f5:
|
|
; X86: leal {{[jk]}}@TLSLDM(%ebx)
|
|
; X86: calll ___tls_get_addr@PLT
|
|
; X86: movl {{[jk]}}@DTPOFF(%e
|
|
; X86: addl {{[jk]}}@DTPOFF(%e
|
|
|
|
; X64-LABEL: f5:
|
|
; X64: leaq {{[jk]}}@TLSLD(%rip), %rdi
|
|
; X64: callq __tls_get_addr@PLT
|
|
; X64: movl {{[jk]}}@DTPOFF(%r
|
|
; X64: addl {{[jk]}}@DTPOFF(%r
|