Files
clang-p2996/llvm/test/CodeGen/AMDGPU/GlobalISel/combiner-crash.ll
Matt Arsenault da72822763 GlobalISel: Fix CSEMIRBuilder mishandling constant folds of vectors
This was ignoring the requested result register, resulting in a
missing def when this happened in the IRTranslator. Fixes some crashes
and verifier errors at -O0.

Alternatively we could pass DstOps to the constant fold functions.
2022-01-18 17:21:02 -05:00

9 lines
262 B
LLVM

; RUN: llc -O0 -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -o - %s
define amdgpu_kernel void @test_long_add4() {
entry:
%add = add <4 x i64> zeroinitializer, zeroinitializer
store <4 x i64> %add, <4 x i64> addrspace(1)* null, align 32
ret void
}