diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-10 08:00:24 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-10 08:00:24 +0000 |
commit | 6f6c767ccfbaff75eb44beb7771df877dcd855bb (patch) | |
tree | 767977ecd796812aa67661af18ea9f29fcf760ee /gcc/config/spu | |
parent | d011df4af27ce866ffa9e531d6d208c1482b2afc (diff) | |
download | gcc-6f6c767ccfbaff75eb44beb7771df877dcd855bb.tar.gz |
2009-02-10 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r144050
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@144052 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/spu')
-rw-r--r-- | gcc/config/spu/spu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index cd7f6edacb2..75f785393f9 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -4722,9 +4722,8 @@ array_to_constant (enum machine_mode mode, unsigned char arr[16]) } 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]; + for (i = 0, val = 0; i < 8; i++) + val = (val << 8) | arr[i]; return hwint_to_const_double (DFmode, val); } |