Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/Hexagon/addr-mode-opt.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

56 lines
1.7 KiB
LLVM

; Broken by r326208
; XFAIL: *
; RUN: llc -mtriple=hexagon -O3 < %s | FileCheck %s
; CHECK-NOT: add(r{{[0-9]+}},#2)
; CHECK-NOT: add(r{{[0-9]+}},#3)
; CHECK: memub(r{{[0-9]+}}+#2)
; CHECK: memub(r{{[0-9]+}}+#3)
@g0 = external global i32, align 4
define i32 @f0(ptr nocapture readonly %a0, ptr nocapture readonly %a1) {
b0:
%v0 = getelementptr inbounds i8, ptr %a0, i32 2
%v1 = getelementptr inbounds i8, ptr %a1, i32 3
br label %b2
b1: ; preds = %b3
%v2 = getelementptr inbounds i8, ptr %a0, i32 %v7
%v3 = add nuw nsw i32 %v7, 1
%v4 = getelementptr inbounds i8, ptr %a1, i32 %v3
%v5 = icmp eq i32 %v7, 3
br i1 %v5, label %b4, label %b2
b2: ; preds = %b1, %b0
%v6 = phi ptr [ %v1, %b0 ], [ %v4, %b1 ]
%v7 = phi i32 [ 3, %b0 ], [ %v3, %b1 ]
%v8 = phi ptr [ %v0, %b0 ], [ %v2, %b1 ]
br label %b3
b3: ; preds = %b3, %b2
%v9 = load i8, ptr %v8, align 1
%v10 = zext i8 %v9 to i32
%v11 = load i8, ptr %v6, align 1
%v12 = zext i8 %v11 to i32
%v13 = tail call i32 @f1(i32 %v10, i32 %v12)
%v14 = icmp eq i32 %v13, 0
br i1 %v14, label %b1, label %b3
b4: ; preds = %b1
%v15 = tail call i32 @f2(ptr %a0, ptr %a1)
%v16 = icmp sgt i32 %v15, 0
br i1 %v16, label %b5, label %b6
b5: ; preds = %b4
store i32 10, ptr @g0, align 4
br label %b6
b6: ; preds = %b5, %b4
%v17 = phi i32 [ 1, %b5 ], [ 0, %b4 ]
ret i32 %v17
}
declare i32 @f1(...)
declare i32 @f2(ptr nocapture, ptr nocapture)