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
38 lines
1.6 KiB
LLVM
38 lines
1.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: %if x86-registered-target %{ opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=X86 %}
|
|
; RUN: %if aarch64-registered-target %{ opt -S --passes=slp-vectorizer -mtriple=aarch64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=AARCH64 %}
|
|
|
|
define <2 x i32> @test(i32 %arg) {
|
|
; X86-LABEL: define <2 x i32> @test(
|
|
; X86-SAME: i32 [[ARG:%.*]]) {
|
|
; X86-NEXT: bb:
|
|
; X86-NEXT: [[OR:%.*]] = or i32 [[ARG]], 0
|
|
; X86-NEXT: [[MUL:%.*]] = mul i32 0, 1
|
|
; X86-NEXT: [[MUL1:%.*]] = mul i32 [[OR]], [[MUL]]
|
|
; X86-NEXT: [[CMP:%.*]] = icmp ugt i32 0, [[MUL1]]
|
|
; X86-NEXT: [[TMP0:%.*]] = insertelement <2 x i32> poison, i32 [[OR]], i32 0
|
|
; X86-NEXT: [[TMP1:%.*]] = insertelement <2 x i32> [[TMP0]], i32 [[MUL]], i32 1
|
|
; X86-NEXT: ret <2 x i32> [[TMP1]]
|
|
;
|
|
; AARCH64-LABEL: define <2 x i32> @test(
|
|
; AARCH64-SAME: i32 [[ARG:%.*]]) {
|
|
; AARCH64-NEXT: bb:
|
|
; AARCH64-NEXT: [[TMP2:%.*]] = or i32 [[ARG]], 0
|
|
; AARCH64-NEXT: [[TMP3:%.*]] = mul i32 0, 1
|
|
; AARCH64-NEXT: [[MUL1:%.*]] = mul i32 [[TMP2]], [[TMP3]]
|
|
; AARCH64-NEXT: [[CMP:%.*]] = icmp ugt i32 0, [[MUL1]]
|
|
; AARCH64-NEXT: [[TMP0:%.*]] = insertelement <2 x i32> poison, i32 [[TMP2]], i32 0
|
|
; AARCH64-NEXT: [[TMP1:%.*]] = insertelement <2 x i32> [[TMP0]], i32 [[TMP3]], i32 1
|
|
; AARCH64-NEXT: ret <2 x i32> [[TMP1]]
|
|
;
|
|
bb:
|
|
%or = or i32 %arg, 0
|
|
%mul = mul i32 0, 1
|
|
%mul1 = mul i32 %or, %mul
|
|
%cmp = icmp ugt i32 0, %mul1
|
|
%0 = insertelement <2 x i32> poison, i32 %or, i32 0
|
|
%1 = insertelement <2 x i32> %0, i32 %mul, i32 1
|
|
ret <2 x i32> %1
|
|
}
|
|
|