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
62 lines
2.4 KiB
LLVM
62 lines
2.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -passes=slp-vectorizer -S -slp-max-reg-size=1024 %s | FileCheck %s
|
|
|
|
define void @test1(ptr %a, ptr %b) {
|
|
; CHECK-LABEL: @test1(
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: [[GEP0:%.*]] = getelementptr inbounds i32, ptr [[A:%.*]], i64 0
|
|
; CHECK-NEXT: [[GEP4:%.*]] = getelementptr inbounds i32, ptr [[B:%.*]], i64 0
|
|
; CHECK-NEXT: [[TMP0:%.*]] = load <4 x i32>, ptr [[GEP0]], align 4
|
|
; CHECK-NEXT: [[TMP1:%.*]] = shl <4 x i32> [[TMP0]], <i32 1, i32 0, i32 1, i32 0>
|
|
; CHECK-NEXT: store <4 x i32> [[TMP1]], ptr [[GEP4]], align 4
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%gep0 = getelementptr inbounds i32, ptr %a, i64 0
|
|
%gep1 = getelementptr inbounds i32, ptr %a, i64 1
|
|
%gep2 = getelementptr inbounds i32, ptr %a, i64 2
|
|
%gep3 = getelementptr inbounds i32, ptr %a, i64 3
|
|
%0 = load i32, ptr %gep0, align 4
|
|
%1 = load i32, ptr %gep1, align 4
|
|
%2 = load i32, ptr %gep2, align 4
|
|
%3 = load i32, ptr %gep3, align 4
|
|
%op0 = shl i32 %0, 1
|
|
%op1 = add i32 %1, zeroinitializer
|
|
%op2 = mul i32 %2, 2
|
|
%op3 = shl i32 %3, zeroinitializer
|
|
%gep4 = getelementptr inbounds i32, ptr %b, i64 0
|
|
%gep5 = getelementptr inbounds i32, ptr %b, i64 1
|
|
%gep6 = getelementptr inbounds i32, ptr %b, i64 2
|
|
%gep7 = getelementptr inbounds i32, ptr %b, i64 3
|
|
store i32 %op0, ptr %gep4, align 4
|
|
store i32 %op1, ptr %gep5, align 4
|
|
store i32 %op2, ptr %gep6, align 4
|
|
store i32 %op3, ptr %gep7, align 4
|
|
ret void
|
|
}
|
|
|
|
define void @test2(i64 %_xstride) {
|
|
; CHECK-LABEL: @test2(
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: [[MUL3:%.*]] = mul i64 [[_XSTRIDE:%.*]], 1
|
|
; CHECK-NEXT: [[MUL5:%.*]] = mul i64 0, 0
|
|
; CHECK-NEXT: [[MUL9:%.*]] = sub i64 0, [[_XSTRIDE]]
|
|
; CHECK-NEXT: [[MUL12:%.*]] = shl i64 [[_XSTRIDE]], 1
|
|
; CHECK-NEXT: [[ARRAYIDX:%.*]] = getelementptr i8, ptr null, i64 [[MUL3]]
|
|
; CHECK-NEXT: [[ARRAYIDX6:%.*]] = getelementptr i8, ptr null, i64 [[MUL5]]
|
|
; CHECK-NEXT: [[ARRAYIDX10:%.*]] = getelementptr i8, ptr null, i64 [[MUL9]]
|
|
; CHECK-NEXT: [[ARRAYIDX13:%.*]] = getelementptr i8, ptr null, i64 [[MUL12]]
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
entry:
|
|
%mul3 = mul i64 %_xstride, 1
|
|
%mul5 = mul i64 0, 0
|
|
%mul9 = sub i64 0, %_xstride
|
|
%mul12 = shl i64 %_xstride, 1
|
|
%arrayidx = getelementptr i8, ptr null, i64 %mul3
|
|
%arrayidx6 = getelementptr i8, ptr null, i64 %mul5
|
|
%arrayidx10 = getelementptr i8, ptr null, i64 %mul9
|
|
%arrayidx13 = getelementptr i8, ptr null, i64 %mul12
|
|
ret void
|
|
}
|