| Issue |
179626
|
| Summary |
[InstCombine] Assertion failed in visitBitCastBitwiseLogic due to type mismatch during constant folding
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
varev-dev
|
https://godbolt.org/z/q6TEvboYM
opt crashes with an assertion failure in InstCombine when processing a bitwise operation involving a bitcast of "exotic" vector type (e.g., casting <3 x i32> to <4 x i24>).
```c++
opt -passes=instcombine repro.ll
```
```llvm
define void @crash() {
%LGV = load <3 x i32>, ptr addrspace(1) null, align 16
%B1 = xor <3 x i32> %LGV, splat (i32 1)
%1 = bitcast <3 x i32> %B1 to i96
%2 = trunc i96 %1 to i24
%3 = bitcast i24 %2 to <3 x i8>
%B4 = lshr <3 x i8> zeroinitializer, %3
store <3 x i8> %B4, ptr addrspace(1) null, align 4
ret void
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs