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
45 lines
1.7 KiB
LLVM
45 lines
1.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc -mtriple=nvptx64-- -mcpu=sm_90 < %s | FileCheck %s
|
|
|
|
; fold (srl (bitcast (build_vector e0, ..., eN)), (N-1) * eltsize) -> (zext eN)
|
|
;
|
|
; On NVPTX, i8 is promoted to i16 during type legalization. This means
|
|
; BUILD_VECTOR v4i8 has i16 operands (wider than the i8 element type).
|
|
; The fold must truncate the promoted operand to the element size before
|
|
; zero-extending to the result type.
|
|
|
|
define i32 @srl_bv_v4i8_extract_last(i8 %a, i8 %b, i8 %c, i8 %d) {
|
|
; CHECK-LABEL: srl_bv_v4i8_extract_last(
|
|
; CHECK: {
|
|
; CHECK-NEXT: .reg .b32 %r<2>;
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ld.param.b8 %r1, [srl_bv_v4i8_extract_last_param_3];
|
|
; CHECK-NEXT: st.param.b32 [func_retval0], %r1;
|
|
; CHECK-NEXT: ret;
|
|
%bv0 = insertelement <4 x i8> poison, i8 %a, i32 0
|
|
%bv1 = insertelement <4 x i8> %bv0, i8 %b, i32 1
|
|
%bv2 = insertelement <4 x i8> %bv1, i8 %c, i32 2
|
|
%bv3 = insertelement <4 x i8> %bv2, i8 %d, i32 3
|
|
%bc = bitcast <4 x i8> %bv3 to i32
|
|
%srl = lshr i32 %bc, 24
|
|
ret i32 %srl
|
|
}
|
|
|
|
; v2i16 -> i32: i16 operands match element type (no promotion needed).
|
|
define i32 @srl_bv_v2i16_extract_last(i16 %a, i16 %b) {
|
|
; CHECK-LABEL: srl_bv_v2i16_extract_last(
|
|
; CHECK: {
|
|
; CHECK-NEXT: .reg .b32 %r<2>;
|
|
; CHECK-EMPTY:
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: ld.param.b16 %r1, [srl_bv_v2i16_extract_last_param_1];
|
|
; CHECK-NEXT: st.param.b32 [func_retval0], %r1;
|
|
; CHECK-NEXT: ret;
|
|
%bv0 = insertelement <2 x i16> poison, i16 %a, i32 0
|
|
%bv1 = insertelement <2 x i16> %bv0, i16 %b, i32 1
|
|
%bc = bitcast <2 x i16> %bv1 to i32
|
|
%srl = lshr i32 %bc, 16
|
|
ret i32 %srl
|
|
}
|