1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
4 ; This used to crash, depending on the particular worklist iteration order.
5 define void @pr59613(<6 x i16> %0) {
6 ; CHECK-LABEL: @pr59613(
7 ; CHECK-NEXT: store <6 x i16> poison, ptr null, align 16
10 %cmp1 = icmp ne <6 x i16> %0, zeroinitializer
11 %or = or <6 x i1> <i1 true, i1 false, i1 false, i1 false, i1 undef, i1 undef>, %cmp1
12 %sext = sext <6 x i1> %or to <6 x i16>
13 %not = xor <6 x i16> %sext, <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1>
14 store <6 x i16> %not, ptr null, align 16