tcg: Fix out of range shift in deposit optimizations
authorRichard Henderson <rth@twiddle.net>
Tue, 18 Mar 2014 21:23:52 +0000 (14:23 -0700)
committerRichard Henderson <rth@twiddle.net>
Fri, 18 Apr 2014 23:57:36 +0000 (16:57 -0700)
commitd998e555d2a504d719b773b3164101aa36284a20
tree81bf604585594ca612b4ee129c146902e315bc3d
parent1976cccec8a9965ff3fd6f026783a04f6b4959fd
tcg: Fix out of range shift in deposit optimizations

By inspection, for a deposit(x, y, 0, 64), we'd have a shift of (1<<64)
and everything else falls apart.  But we can reuse the existing deposit
logic to get this right.

Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/optimize.c