GlobalISel generates incorrect code because the legalizer artifact
combiner assumes G_[SZ]EXT (G_IMPLICIT_DEF) is equivalent to
G_IMPLICIT_DEF .
Replace G_[SZ]EXT (G_IMPLICIT_DEF) with 0 because the top bits
will be 0 for G_ZEXT and 0/1 for the G_SEXT.