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
46 lines
1.9 KiB
LLVM
46 lines
1.9 KiB
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
; Check if only one transfer immediate instruction is generated for init.end block.
|
|
; Since the transfer immediate of address operand is declared as not cheap, it
|
|
; should generate only one transfer immediate, rather than two of them.
|
|
|
|
; CHECK-LABEL: .LBB{{.*}}
|
|
; CHECK: r0 = ##_ZZ3foovE1x
|
|
; CHECK-NOT: r{{[1-9]*}} = ##_ZZ3foovE1x
|
|
; CHECK: memw(r0+#0) += #1
|
|
; CHECK: r{{.*}} = dealloc_return
|
|
|
|
%struct.FooBaz = type { i32 }
|
|
@_ZZ3foovE1x = internal global %struct.FooBaz zeroinitializer, align 4
|
|
@_ZGVZ3foovE1x = internal global i64 0, section ".bss._ZGVZ3foovE1x", align 8
|
|
@__dso_handle = external dso_local global i8
|
|
|
|
define dso_local ptr @_Z3foov() local_unnamed_addr optsize {
|
|
entry:
|
|
%0 = load atomic i8, ptr @_ZGVZ3foovE1x acquire, align 8
|
|
%guard.uninitialized = icmp eq i8 %0, 0
|
|
br i1 %guard.uninitialized, label %init.check, label %init.end
|
|
|
|
init.check: ; preds = %entry
|
|
%1 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ3foovE1x)
|
|
%tobool = icmp eq i32 %1, 0
|
|
br i1 %tobool, label %init.end, label %init
|
|
|
|
init: ; preds = %init.check
|
|
tail call void @_ZN6FooBazC1Ev(ptr nonnull @_ZZ3foovE1x)
|
|
%2 = tail call i32 @__cxa_atexit(ptr @_ZN6FooBazD1Ev, ptr @_ZZ3foovE1x, ptr nonnull @__dso_handle)
|
|
tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ3foovE1x)
|
|
br label %init.end
|
|
|
|
init.end: ; preds = %init, %init.check, %entry
|
|
%3 = load i32, ptr @_ZZ3foovE1x, align 4
|
|
%inc = add nsw i32 %3, 1
|
|
store i32 %inc, ptr @_ZZ3foovE1x, align 4
|
|
ret ptr @_ZZ3foovE1x
|
|
}
|
|
|
|
declare dso_local i32 @__cxa_guard_acquire(ptr) local_unnamed_addr
|
|
declare dso_local void @_ZN6FooBazC1Ev(ptr) unnamed_addr
|
|
declare dso_local void @_ZN6FooBazD1Ev(ptr) unnamed_addr
|
|
declare dso_local i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr
|
|
declare dso_local void @__cxa_guard_release(ptr) local_unnamed_addr
|