linux/arch/powerpc
Shan Hai afc0a07d4a powerpc/85xx: Fix SPE float to integer conversion failure
Conversion from float to integer should based on both the instruction
encoding and the sign of the operand.

A simple testcase to show the issue:

static float fm;
static signed int si_min = (-2147483647 - 1);
static unsigned int ui;
int main()
{
       fm = (float) si_min; ;
       ui = (unsigned int)fm;
       printf("ui=%d, should be %d\n", ui, si_min);

       return 0;
}
Result: ui=-1, should be -2147483648

Signed-off-by: Shan Hai <shan.hai@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-03-15 13:48:15 -05:00
..
boot powerpc/85xx: Update sata controller compatible for p1022ds board 2011-03-15 10:39:29 -05:00
configs powerpc/8xx: remove obsolete mgsuvd board 2011-03-15 10:11:27 -05:00
include/asm powerpc/85xx: Workaroudn e500 CPU erratum A005 2011-03-15 10:05:06 -05:00
kernel powerpc: core irq_data conversion. 2011-03-10 11:04:04 +11:00
kvm KVM: Clean up vm creation and release 2011-01-12 11:29:09 +02:00
lib powerpc: Ensure the else case of feature sections will fit 2011-01-21 14:08:33 +11:00
math-emu powerpc/85xx: Fix SPE float to integer conversion failure 2011-03-15 13:48:15 -05:00
mm powerpc: Fix memory limits when starting at a non-zero address 2011-03-02 16:56:15 +11:00
oprofile tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
platforms powerpc/8xx: remove obsolete mgsuvd board 2011-03-15 10:11:27 -05:00
sysdev powerpc/mpc8xxx_gpio: simplify searching for 'fsl, qoriq-gpio' compatiable 2011-03-15 10:31:47 -05:00
xmon powerpc/Makefiles: Change to new flag variables 2010-10-13 16:19:22 +11:00
Kconfig powerpc: Enable GENERIC_HARDIRQS_NO_DEPRECATED. 2011-03-10 11:04:04 +11:00
Kconfig.debug powerpc: Unconditionally enabled irq stacks 2010-06-15 15:02:37 +10:00
Makefile powerpc: Fix typo in uImage target 2010-08-24 15:26:32 +10:00
relocs_check.pl