Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/X86/pr63645.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

63 lines
2.6 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
@p = dso_local local_unnamed_addr global i64 0, align 8
@l = dso_local local_unnamed_addr global ptr null, align 8
@c = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture)
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture)
; Function Attrs: nofree nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define i32 @main() #1 {
; CHECK-LABEL: main:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: movl $0, c(%rip)
; CHECK-NEXT: movq $64, p(%rip)
; CHECK-NEXT: movabsq $214787019555673, %rax # imm = 0xC3590000C359
; CHECK-NEXT: movq %rax, -{{[0-9]+}}(%rsp)
; CHECK-NEXT: cmpl $42828, -{{[0-9]+}}(%rsp) # imm = 0xA74C
; CHECK-NEXT: jg .LBB0_2
; CHECK-NEXT: # %bb.1: # %if.then.1.i
; CHECK-NEXT: movq l(%rip), %rax
; CHECK-NEXT: movb $0, (%rax)
; CHECK-NEXT: .LBB0_2: # %t.exit
; CHECK-NEXT: xorl %eax, %eax
; CHECK-NEXT: retq
entry:
%a.i = alloca [2 x i32], align 4
store i32 0, ptr @c, align 4
%arrayidx15.i = getelementptr inbounds [2 x i32], ptr %a.i, i64 0, i64 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %a.i)
store i32 50009, ptr %a.i, align 4
%arrayidx.i.1 = getelementptr inbounds [2 x i32], ptr %a.i, i64 0, i64 1
store i32 50009, ptr %arrayidx.i.1, align 4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %a.i)
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %a.i)
store i64 64, ptr @p, align 8
%0 = load i32, ptr @c, align 4
%idxprom.1.i = zext i32 %0 to i64
%arrayidx.1.i = getelementptr inbounds [2 x i32], ptr %a.i, i64 0, i64 %idxprom.1.i
store i32 50009, ptr %arrayidx.1.i, align 4
%add14.1.i.1 = add i32 %0, 1
%idxprom.1.i.1 = zext i32 %add14.1.i.1 to i64
%arrayidx.1.i.1 = getelementptr inbounds [2 x i32], ptr %a.i, i64 0, i64 %idxprom.1.i.1
store i32 50009, ptr %arrayidx.1.i.1, align 4
%1 = load i32, ptr %arrayidx15.i, align 4
%cmp16.1.i = icmp slt i32 %1, 42829
br i1 %cmp16.1.i, label %if.then.1.i, label %t.exit
if.then.1.i: ; preds = %entry
%2 = load ptr, ptr @l, align 8
store i8 0, ptr %2, align 1
br label %t.exit
t.exit: ; preds = %entry, %if.then.1.i
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %a.i)
ret i32 0
}