From 171b6d2283aec4cc4c7b1e346ca79ab4a1914013 Mon Sep 17 00:00:00 2001 From: tsmigiel <tsmigiel@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Thu, 7 Dec 2006 22:11:51 +0000 Subject: [PATCH] * config/spu/spu.c (array_to_constant): Correct the order of arguments to the calls of hwint_to_const_double. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119635 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/spu/spu.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f09fcd74a80d..fe15e311b536 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 4aa8e38be929..03843fd6b3dc 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)) -- GitLab