since i1 is legal in AVX512, i1 values weren't promoted to i8, instead K registers were allocated.
this causes an issue when they are passed to a TEST instruction, which is illegal.
Solves Bug 28661
while this patch solves this specific issue, what I would really want to do is make the isel choose GPRs for these i1 values.
It may give incorrect result. If the OpReg is k-reg you can use k-shitft-left 15 with ktestw.