[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] uint64_t/int64_t => double broken on ARM
From: |
Daniel Glöckner |
Subject: |
Re: [Tinycc-devel] uint64_t/int64_t => double broken on ARM |
Date: |
Sat, 1 Feb 2014 14:41:48 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hello Thomas,
On Sat, Feb 01, 2014 at 07:04:24PM +0800, Thomas Preud'homme wrote:
> Got a bit of time (and more importantly internet access) so it's now
> fixed in mob. Thanks for reporting.
your patch makes
float f(unsigned long long x)
{
return x;
}
compile to
...
bl __aeabi_ul2f
vmov s0, r0
vmov.32 d0[0], r0
vmov.32 d0[1], r1
...
with softfp ABI and it generates the superfluous move from r1 with hard
float ABI. Maybe the cleanest solution is to temporarily change the ABI
when calling these functions.
Best regards,
Daniel