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
80 lines
2.0 KiB
LLVM
80 lines
2.0 KiB
LLVM
; RUN: llc < %s -mtriple=thumbv7-w64-mingw32 | FileCheck %s
|
|
|
|
@var = external local_unnamed_addr global i32, align 4
|
|
@dsolocalvar = external dso_local local_unnamed_addr global i32, align 4
|
|
@localvar = dso_local local_unnamed_addr global i32 0, align 4
|
|
@localcommon = common dso_local local_unnamed_addr global i32 0, align 4
|
|
@extvar = external dllimport local_unnamed_addr global i32, align 4
|
|
|
|
define dso_local i32 @getVar() {
|
|
; CHECK-LABEL: getVar:
|
|
; CHECK: movw r0, :lower16:.refptr.var
|
|
; CHECK: movt r0, :upper16:.refptr.var
|
|
; CHECK: ldr r0, [r0]
|
|
; CHECK: ldr r0, [r0]
|
|
; CHECK: bx lr
|
|
entry:
|
|
%0 = load i32, ptr @var, align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
define dso_local i32 @getDsoLocalVar() {
|
|
; CHECK-LABEL: getDsoLocalVar:
|
|
; CHECK: movw r0, :lower16:dsolocalvar
|
|
; CHECK: movt r0, :upper16:dsolocalvar
|
|
; CHECK: ldr r0, [r0]
|
|
; CHECK: bx lr
|
|
entry:
|
|
%0 = load i32, ptr @dsolocalvar, align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
define dso_local i32 @getLocalVar() {
|
|
; CHECK-LABEL: getLocalVar:
|
|
; CHECK: movw r0, :lower16:localvar
|
|
; CHECK: movt r0, :upper16:localvar
|
|
; CHECK: ldr r0, [r0]
|
|
; CHECK: bx lr
|
|
entry:
|
|
%0 = load i32, ptr @localvar, align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
define dso_local i32 @getLocalCommon() {
|
|
; CHECK-LABEL: getLocalCommon:
|
|
; CHECK: movw r0, :lower16:localcommon
|
|
; CHECK: movt r0, :upper16:localcommon
|
|
; CHECK: ldr r0, [r0]
|
|
; CHECK: bx lr
|
|
entry:
|
|
%0 = load i32, ptr @localcommon, align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
define dso_local i32 @getExtVar() {
|
|
; CHECK-LABEL: getExtVar:
|
|
; CHECK: movw r0, :lower16:__imp_extvar
|
|
; CHECK: movt r0, :upper16:__imp_extvar
|
|
; CHECK: ldr r0, [r0]
|
|
; CHECK: ldr r0, [r0]
|
|
; CHECK: bx lr
|
|
entry:
|
|
%0 = load i32, ptr @extvar, align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
define dso_local void @callFunc() {
|
|
; CHECK-LABEL: callFunc:
|
|
; CHECK: b.w otherFunc
|
|
entry:
|
|
tail call void @otherFunc()
|
|
ret void
|
|
}
|
|
|
|
declare dso_local void @otherFunc()
|
|
|
|
; CHECK: .section .rdata$.refptr.var,"dr",discard,.refptr.var
|
|
; CHECK: .globl .refptr.var
|
|
; CHECK: .refptr.var:
|
|
; CHECK: .long var
|