public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/46128] New: There is no mechanism for detecting VFP revisions in ARM GCC.
@ 2010-10-22  7:53 Jacob.Bramley at arm dot com
  2010-10-22 12:09 ` [Bug target/46128] " joseph at codesourcery dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jacob.Bramley at arm dot com @ 2010-10-22  7:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46128

           Summary: There is no mechanism for detecting VFP revisions in
                    ARM GCC.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Jacob.Bramley@arm.com
                CC: rearnsha@gcc.gnu.org
            Target: ARM


There is currently no mechanism for detecting different versions of VFP using
the pre-processor. In C code, this is not a problem, but it is necessary
information when writing in-line assembly code that needs to be portable across
ARM platforms.

As a real-world example, consider the following Mozilla bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=601914

In that example, Siahei wrote an in-line assembly block that constructs
scripted arguments according to EABI ('hard' variant), then calls the specified
function. However, in order to do this safely, we have to specify all the
scratch registers in the clobber list, including D16-D31. Luckily, it seems
that GCC accepts these in the clobber list even on VFPv3-D16, but will that
always be the case?

More generally, it would be beneficial to be able to optimize routines using
specific VFPv3 instructions (such as VMOV's immediate-operand form), or to make
use of VFPv4's fused-mulitply-accumulate instructions.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-12-05  0:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-22  7:53 [Bug target/46128] New: There is no mechanism for detecting VFP revisions in ARM GCC Jacob.Bramley at arm dot com
2010-10-22 12:09 ` [Bug target/46128] " joseph at codesourcery dot com
2010-10-25 14:44 ` siarhei.siamashka at gmail dot com
2010-10-27 12:59 ` ibolton at gcc dot gnu.org
2010-11-03  7:59 ` Jacob.Bramley at arm dot com
2010-11-03 10:26 ` rearnsha at gcc dot gnu.org
2012-12-05  0:07 ` siarhei.siamashka at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).