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
48 lines
1.8 KiB
LLVM
48 lines
1.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: llc < %s -mtriple=riscv64 -mattr=+v | FileCheck %s
|
|
|
|
; This showcases a miscompile that was fixed in #90573:
|
|
; - The memset will be type-legalized to a 512 bit store + 2 x 128 bit stores.
|
|
; - the load and store of q aliases the upper 128 bits store of p.
|
|
; - The aliasing 128 bit store will be between the chain of the scalar
|
|
; load/store:
|
|
;
|
|
; t54: ch = store<(store (s512) into %ir.p, align 1)> t0, ...
|
|
; t51: ch = store<(store (s128) into %ir.p + 64, align 1)> t0, ...
|
|
;
|
|
; t44: i64,ch = load<(load (s32) from %ir.q), sext from i32> t0, ...
|
|
; t50: ch = store<(store (s128) into %ir.p + 80, align 1)> t44:1, ...
|
|
; t46: ch = store<(store (s32) into %ir.q), trunc to i32> t50, ...
|
|
;
|
|
; Previously, the scalar load/store was incorrectly combined away:
|
|
;
|
|
; t54: ch = store<(store (s512) into %ir.p, align 1)> t0, ...
|
|
; t51: ch = store<(store (s128) into %ir.p + 64, align 1)> t0, ...
|
|
;
|
|
; // MISSING
|
|
; t50: ch = store<(store (s128) into %ir.p + 80, align 1)> t44:1, ...
|
|
; // MISSING
|
|
; See also pr83017.ll: This is the same code, but relies on vscale_range instead
|
|
; of -riscv-v-vector-bits-max=128.
|
|
define void @f(ptr %p) vscale_range(2,2) {
|
|
; CHECK-LABEL: f:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: lw a1, 84(a0)
|
|
; CHECK-NEXT: addi a2, a0, 80
|
|
; CHECK-NEXT: vsetivli zero, 16, e8, m1, ta, ma
|
|
; CHECK-NEXT: vmv.v.i v8, 0
|
|
; CHECK-NEXT: vs1r.v v8, (a2)
|
|
; CHECK-NEXT: addi a2, a0, 64
|
|
; CHECK-NEXT: vs1r.v v8, (a2)
|
|
; CHECK-NEXT: vsetvli a2, zero, e8, m4, ta, ma
|
|
; CHECK-NEXT: vmv.v.i v8, 0
|
|
; CHECK-NEXT: vs4r.v v8, (a0)
|
|
; CHECK-NEXT: sw a1, 84(a0)
|
|
; CHECK-NEXT: ret
|
|
%q = getelementptr inbounds i8, ptr %p, i64 84
|
|
%x = load i32, ptr %q
|
|
call void @llvm.memset.p0.i64(ptr %p, i8 0, i64 96, i1 false)
|
|
store i32 %x, ptr %q
|
|
ret void
|
|
}
|