fix folding of unsigned operations
commit660a8d9dfa44050897b2f5ead823554893d79f24
authorQuentin Carbonneaux <quentin@c9x.me>
Mon, 29 Apr 2019 09:29:22 +0000 (29 11:29 +0200)
committerQuentin Carbonneaux <quentin@c9x.me>
Mon, 29 Apr 2019 10:01:54 +0000 (29 12:01 +0200)
treed24f77c684f7439c193bb6a7898fafad50eb48f3
parent0384d73e8daa5c948fb08c7301144c0d7e740ef9
fix folding of unsigned operations

This fixes similar bugs than the ones fixed
in the previous commit.

In the folding code the invariant is that
when a result is 32 bits wide, the low 32
bits of 'x' are correct.  The high bits
can be anything.
fold.c
test/fold1.ssa