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
49 lines
2.1 KiB
LLVM
49 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs < %s | FileCheck %s
|
|
; RUN: llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; These tests check that the scalable-vector version of this series of
|
|
; instructions does not get into an infinite DAGCombine loop. This was
|
|
; originally exposing an infinite loop between an 'and' of two truncates being promoted
|
|
; to the larger value type, then that 'truncate' being split back up into an
|
|
; 'and' of two truncates.
|
|
; This didn't happen in the fixed-length test because a truncate of the
|
|
; constant BUILD_VECTOR is folded into the BUILD_VECTOR itself. The truncate of
|
|
; a constant SPLAT_VECTOR didn't follow suit.
|
|
|
|
define <2 x i16> @fixedlen(<2 x i32> %x) {
|
|
; CHECK-LABEL: fixedlen:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: vsetivli zero, 2, e32, mf2, ta, ma
|
|
; CHECK-NEXT: vsrl.vi v8, v8, 16
|
|
; CHECK-NEXT: lui a0, 1048568
|
|
; CHECK-NEXT: vand.vx v8, v8, a0
|
|
; CHECK-NEXT: vsetvli zero, zero, e16, mf4, ta, ma
|
|
; CHECK-NEXT: vnsrl.wi v8, v8, 0
|
|
; CHECK-NEXT: ret
|
|
%v43 = lshr <2 x i32> %x, splat (i32 16)
|
|
%v44 = trunc <2 x i32> %v43 to <2 x i16>
|
|
%v45 = insertelement <2 x i32> poison, i32 -32768, i32 0
|
|
%v46 = shufflevector <2 x i32> %v45, <2 x i32> poison, <2 x i32> zeroinitializer
|
|
%v47 = trunc <2 x i32> %v46 to <2 x i16>
|
|
%v48 = and <2 x i16> %v44, %v47
|
|
ret <2 x i16> %v48
|
|
}
|
|
|
|
define <vscale x 2 x i16> @scalable(<vscale x 2 x i32> %x) {
|
|
; CHECK-LABEL: scalable:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: vsetvli a0, zero, e16, mf2, ta, ma
|
|
; CHECK-NEXT: vnsrl.wi v8, v8, 16
|
|
; CHECK-NEXT: lui a0, 1048568
|
|
; CHECK-NEXT: vand.vx v8, v8, a0
|
|
; CHECK-NEXT: ret
|
|
%v43 = lshr <vscale x 2 x i32> %x, splat (i32 16)
|
|
%v44 = trunc <vscale x 2 x i32> %v43 to <vscale x 2 x i16>
|
|
%v45 = insertelement <vscale x 2 x i32> poison, i32 -32768, i32 0
|
|
%v46 = shufflevector <vscale x 2 x i32> %v45, <vscale x 2 x i32> poison, <vscale x 2 x i32> zeroinitializer
|
|
%v47 = trunc <vscale x 2 x i32> %v46 to <vscale x 2 x i16>
|
|
%v48 = and <vscale x 2 x i16> %v44, %v47
|
|
ret <vscale x 2 x i16> %v48
|
|
}
|