Commit 9dc5f9ba by Trevor Smigiel Committed by Trevor Smigiel

spu.c (array_to_constant): Correct the order of arguments to the calls of hwint_to_const_double.

	* config/spu/spu.c (array_to_constant): Correct the order of arguments
	to the calls of hwint_to_const_double.

From-SVN: r119635
parent baa5bf11
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> 2006-12-07 Nick Clifton <nickc@redhat.com>
* config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to * config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to
......
...@@ -3603,14 +3603,14 @@ array_to_constant (enum machine_mode mode, unsigned char arr[16]) ...@@ -3603,14 +3603,14 @@ array_to_constant (enum machine_mode mode, unsigned char arr[16])
{ {
val = (arr[0] << 24) | (arr[1] << 16) | (arr[2] << 8) | arr[3]; val = (arr[0] << 24) | (arr[1] << 16) | (arr[2] << 8) | arr[3];
val = trunc_int_for_mode (val, SImode); val = trunc_int_for_mode (val, SImode);
return hwint_to_const_double (val, SFmode); return hwint_to_const_double (SFmode, val);
} }
if (mode == DFmode) if (mode == DFmode)
{ {
val = (arr[0] << 24) | (arr[1] << 16) | (arr[2] << 8) | arr[3]; val = (arr[0] << 24) | (arr[1] << 16) | (arr[2] << 8) | arr[3];
val <<= 32; val <<= 32;
val |= (arr[4] << 24) | (arr[5] << 16) | (arr[6] << 8) | arr[7]; 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)) if (!VECTOR_MODE_P (mode))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment