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
69 lines
2.1 KiB
LLVM
69 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -passes=instsimplify -S | FileCheck %s
|
|
|
|
define i32 @test1() {
|
|
; CHECK-LABEL: @test1(
|
|
; CHECK-NEXT: ret i32 2139171423
|
|
;
|
|
%A = bitcast i32 2139171423 to float
|
|
%B = insertelement <1 x float> undef, float %A, i32 0
|
|
%C = extractelement <1 x float> %B, i32 0
|
|
%D = bitcast float %C to i32
|
|
ret i32 %D
|
|
}
|
|
|
|
define <4 x i64> @insertelement() {
|
|
; CHECK-LABEL: @insertelement(
|
|
; CHECK-NEXT: ret <4 x i64> <i64 -1, i64 -2, i64 -3, i64 -4>
|
|
;
|
|
%vec1 = insertelement <4 x i64> undef, i64 -1, i32 0
|
|
%vec2 = insertelement <4 x i64> %vec1, i64 -2, i32 1
|
|
%vec3 = insertelement <4 x i64> %vec2, i64 -3, i32 2
|
|
%vec4 = insertelement <4 x i64> %vec3, i64 -4, i32 3
|
|
ret <4 x i64> %vec4
|
|
}
|
|
|
|
define <4 x i64> @insertelement_undef() {
|
|
; CHECK-LABEL: @insertelement_undef(
|
|
; CHECK-NEXT: ret <4 x i64> poison
|
|
;
|
|
%vec1 = insertelement <4 x i64> undef, i64 -1, i32 0
|
|
%vec2 = insertelement <4 x i64> %vec1, i64 -2, i32 1
|
|
%vec3 = insertelement <4 x i64> %vec2, i64 -3, i32 2
|
|
%vec4 = insertelement <4 x i64> %vec3, i64 -4, i32 3
|
|
%vec5 = insertelement <4 x i64> %vec3, i64 -5, i32 4
|
|
ret <4 x i64> %vec5
|
|
}
|
|
|
|
define i64 @extract_undef_index_from_zero_vec() {
|
|
; CHECK-LABEL: @extract_undef_index_from_zero_vec(
|
|
; CHECK-NEXT: ret i64 poison
|
|
;
|
|
%E = extractelement <2 x i64> zeroinitializer, i64 undef
|
|
ret i64 %E
|
|
}
|
|
|
|
define i64 @extract_undef_index_from_nonzero_vec() {
|
|
; CHECK-LABEL: @extract_undef_index_from_nonzero_vec(
|
|
; CHECK-NEXT: ret i64 poison
|
|
;
|
|
%E = extractelement <2 x i64> <i64 -1, i64 -1>, i64 undef
|
|
ret i64 %E
|
|
}
|
|
|
|
define <vscale x 2 x i32> @insertelement_scalable_null() {
|
|
; CHECK-LABEL: @insertelement_scalable_null(
|
|
; CHECK-NEXT: ret <vscale x 2 x i32> zeroinitializer
|
|
;
|
|
%vec = insertelement <vscale x 2 x i32> zeroinitializer, i32 0, i32 0
|
|
ret <vscale x 2 x i32> %vec
|
|
}
|
|
|
|
define <vscale x 2 x float> @insertelement_scalable_null_fp() {
|
|
; CHECK-LABEL: @insertelement_scalable_null_fp(
|
|
; CHECK-NEXT: ret <vscale x 2 x float> zeroinitializer
|
|
;
|
|
%vec = insertelement <vscale x 2 x float> zeroinitializer, float 0.0, i32 1
|
|
ret <vscale x 2 x float> %vec
|
|
}
|