Re: [PATCH] Fix fixuns_trunc2 and vec_pack_ufix_trunc_

2011-11-03 Thread Richard Henderson
On 11/03/2011 02:17 PM, Jakub Jelinek wrote: > * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add > XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal > signalling comparison instead of non-signalling. Store into > *XORP pseudo holding 0x8000 int

[PATCH] Fix fixuns_trunc2 and vec_pack_ufix_trunc_

2011-11-03 Thread Jakub Jelinek
Hi! This patch fixes the other bug I've mentioned. Subtracting 0x1p32 doesn't work in all cases correctly, so this patch changes it to do what we do for scalar -O2 -m32 -msse2 -mfpmath=sse double -> uint and float -> uint conversions, in particular subtract just 0x1p31 instead of 0x1p32, doing th