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

Reply via email to