From: Trevor Smigiel Date: Thu, 7 Dec 2006 22:11:51 +0000 (+0000) Subject: spu.c (array_to_constant): Correct the order of arguments to the calls of hwint_to_co... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9dc5f9bad9be09c039a68047121d80a2d53caa63;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f09fcd74a80..fe15e311b53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-12-07 Trevor Smigiel + + * 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 * config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 4aa8e38be92..03843fd6b3d 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -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 = 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))