computeKnownBitsImpl(Src0, Known2, DemandedElts, Depth);
// Only known if known in both the LHS and RHS.
- Known.Zero &= Known.Zero;
- Known.One &= Known.One;
+ Known.Zero &= Known2.Zero;
+ Known.One &= Known2.One;
}
void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known,
; CHECK: %load0:_(s32) = G_LOAD %ptr0(p1) :: (load 4, addrspace 1)
; CHECK: %load1:_(s32) = G_ZEXTLOAD %ptr1(p1) :: (load 1, addrspace 1)
; CHECK: %smin:_(s32) = G_SMIN %load0, %load1
- ; CHECK: $vgpr0 = COPY %smin(s32)
+ ; CHECK: %mask:_(s32) = G_CONSTANT i32 255
+ ; CHECK: %and:_(s32) = G_AND %smin, %mask
+ ; CHECK: $vgpr0 = COPY %and(s32)
%ptr0:_(p1) = COPY $vgpr0_vgpr1
%ptr1:_(p1) = COPY $vgpr2_vgpr3
%load0:_(s32) = G_LOAD %ptr0 :: (load 4, addrspace 1, align 4)