This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51381] Internal compiler error for arm target
- From: "ramana at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Dec 2011 17:23:36 +0000
- Subject: [Bug target/51381] Internal compiler error for arm target
- Auto-submitted: auto-generated
- References: <bug-51381-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51381
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ramana at gcc dot gnu.org
--- Comment #11 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-12-05 17:23:36 UTC ---
I don't think this is ICE on valid code. The compiler at the minute doesn't
generate unified syntax for VFP instructions - therefore expecting the
instructions of that form to work correctly is wrong.
I think the correct way of writing this is
void round_int(void)
{
__asm__ __volatile__("fconstd d1,%G0" : : "Dv"(0.5f) : "d1");
}
And then it would work.
We really do need to transition to unified syntax for VFP instructions.
cheers
Ramana