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
48 lines
1.7 KiB
LLVM
48 lines
1.7 KiB
LLVM
; RUN: llc -relocation-model=pic -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 <%s | FileCheck %s
|
|
|
|
%struct.Record = type { ptr, i32 }
|
|
|
|
@n = local_unnamed_addr global i32 500000000, align 4
|
|
@m = common global %struct.Record zeroinitializer, align 8
|
|
@a = hidden local_unnamed_addr global ptr @m, align 8
|
|
@o = common global %struct.Record zeroinitializer, align 8
|
|
@b = hidden local_unnamed_addr global ptr @o, align 8
|
|
|
|
define signext i32 @foo() local_unnamed_addr {
|
|
entry:
|
|
%0 = load i64, ptr @b, align 8
|
|
%1 = load ptr, ptr @a, align 8
|
|
store i64 %0, ptr %1, align 8
|
|
%2 = load i32, ptr @n, align 4
|
|
%cmp9 = icmp eq i32 %2, 0
|
|
br i1 %cmp9, label %for.end, label %for.body
|
|
|
|
for.body: ; preds = %entry, %for.body
|
|
%i.010 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
|
|
%3 = load ptr, ptr @a, align 8
|
|
%IntComp = getelementptr inbounds %struct.Record, ptr %3, i64 0, i32 1
|
|
store i32 5, ptr %IntComp, align 8
|
|
%4 = load ptr, ptr %3, align 8
|
|
%IntComp3 = getelementptr inbounds %struct.Record, ptr %4, i64 0, i32 1
|
|
store i32 5, ptr %IntComp3, align 8
|
|
store ptr %4, ptr %4, align 8
|
|
%inc = add nuw i32 %i.010, 1
|
|
%cmp = icmp ult i32 %inc, %2
|
|
br i1 %cmp, label %for.body, label %for.end
|
|
|
|
for.end: ; preds = %for.body, %entry
|
|
ret i32 0
|
|
|
|
; CHECK-LABEL: foo
|
|
; CHECK: addis [[REG1:[0-9]+]], 2, a@toc@ha
|
|
; CHECK: li [[REG4:[0-9]+]], 5
|
|
; CHECK: [[LAB:[a-z0-9A-Z_.]+]]:
|
|
; CHECK: ld [[REG2:[0-9]+]], a@toc@l([[REG1]])
|
|
; CHECK: stw [[REG4]], 8([[REG2]])
|
|
; CHECK: ld [[REG3:[0-9]+]], 0([[REG2]])
|
|
; CHECK: stw [[REG4]], 8([[REG3]])
|
|
; CHECK: std [[REG3]], 0([[REG3]])
|
|
; CHECK: bdnz [[LAB]]
|
|
}
|
|
|