public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/54344] New: Issue with multiple "arch=" function attributes.
@ 2012-08-21 12:21 einar.sjurso+gnu at gmail dot com
  2014-01-13  9:44 ` [Bug target/54344] illegal instructions generated with multiple "arch" " jtaylor.debian at googlemail dot com
  2021-08-28 18:57 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: einar.sjurso+gnu at gmail dot com @ 2012-08-21 12:21 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54344
           Summary: Issue with multiple "arch=" function attributes.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: einar.sjurso+gnu@gmail.com


#include <stdio.h>
#include <stdarg.h>

int __attribute__ ((__target__ ("arch=corei7-avx", "tune=corei7-avx")))
printf_avx(const char *restrict format, ...)
{
        va_list ap;
        va_start(ap, format);
        const int ret = vfprintf(stdout, format, ap);
        va_end(ap);
        return ret;
}

int __attribute__ ((__target__ ("arch=atom", "tune=atom"))) printf_noavx(const
char *restrict format, ...)
{
        va_list ap;
        va_start(ap, format);
        const int ret = vfprintf(stdout, format, ap);
        va_end(ap);
        return ret;
}

Given this silly example, vmovaps will ge generated in printf_noavx.


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

end of thread, other threads:[~2021-08-28 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-21 12:21 [Bug target/54344] New: Issue with multiple "arch=" function attributes einar.sjurso+gnu at gmail dot com
2014-01-13  9:44 ` [Bug target/54344] illegal instructions generated with multiple "arch" " jtaylor.debian at googlemail dot com
2021-08-28 18:57 ` pinskia at gcc dot gnu.org

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).