Issue 75557
Summary another OOB InsertElement -> OOB store
Labels llvm:codegen, miscompilation
Assignees
Reporter regehr
    this is like https://github.com/llvm/llvm-project/issues/74248 and again affects all backends that I tried

```llvm
define void @insertelt_v8i64_store(ptr %0, i32 %1) {
  %3 = load <8 x i64>, ptr %0, align 64
  %4 = insertelement <8 x i64> %3, i64 -1, i32 %1
  store <8 x i64> %4, ptr %0, align 64
  ret void
}
```
becomes:
```
insertelt_v8i64_store: 
	mov	x8, #-1                         // =0xffffffffffffffff
	str	x8, [x0, w1, uxtw #3]
	ret
```

cc @nunoplopes @tanmaytirpankar
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to