[Committed,SPU] Correct arguments to hwint_to_const_double
trevor_smigiel@playstation.sony.com
trevor_smigiel@playstation.sony.com
Thu Dec 7 22:14:00 GMT 2006
The arguments to hwint_to_const_double were reversed.
Trevor
2006-12-07 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
* config/spu/spu.c (array_to_constant): Correct the order of arguments
to the calls of hwint_to_const_double.
-------------- next part --------------
Index: ChangeLog
===================================================================
--- ChangeLog (revision 119634)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2006-12-07 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
+
+ * config/spu/spu.c (array_to_constant): Correct the order of arguments
+ to the calls of hwint_to_const_double.
+
2006-12-07 Nick Clifton <nickc@redhat.com>
* config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to
Index: config/spu/spu.c
===================================================================
--- config/spu/spu.c (revision 119634)
+++ config/spu/spu.c (working copy)
@@ -3603,14 +3603,14 @@ array_to_constant (enum machine_mode mod
{
val = (arr[0] << 24) | (arr[1] << 16) | (arr[2] << 8) | arr[3];
val = trunc_int_for_mode (val, SImode);
- return hwint_to_const_double (val, SFmode);
+ return hwint_to_const_double (SFmode, val);
}
if (mode == DFmode)
{
val = (arr[0] << 24) | (arr[1] << 16) | (arr[2] << 8) | arr[3];
val <<= 32;
val |= (arr[4] << 24) | (arr[5] << 16) | (arr[6] << 8) | arr[7];
- return hwint_to_const_double (val, DFmode);
+ return hwint_to_const_double (DFmode, val);
}
if (!VECTOR_MODE_P (mode))
More information about the Gcc-patches
mailing list