Fix Issue 10682 - [ICE](cgcod.c line 1561) with ^^ operator

The backend can't handle a shift expression with a ulong rhs, so simulate the cast that is usually added by semantic.

http://d.puremagic.com/issues/show_bug.cgi?id=10682