progs/gallium: add unit test for u_half