public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66954] New: function multiversioning fails for target "aes"
@ 2015-07-20 21:25 jens.maurer at gmx dot net
  2015-07-21  8:05 ` [Bug target/66954] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jens.maurer at gmx dot net @ 2015-07-20 21:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66954

            Bug ID: 66954
           Summary: function multiversioning fails for target "aes"
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jens.maurer at gmx dot net
  Target Milestone: ---

I would like to switch implementations depending on whether the (Intel) CPU has
AES instructions or not.  Simplified testcase:


__attribute__((target("default")))
void foo()
{ }

__attribute__((target("aes")))
void foo()
{ }

int main()
{
  void (*f)() = &foo;
}


yields

> g++ target-aes.cc 
target-aes.cc: In function '<built-in>':
target-aes.cc:7:6: error: No dispatcher found for aes
 void foo()
      ^


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

end of thread, other threads:[~2015-08-11 17:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 21:25 [Bug c++/66954] New: function multiversioning fails for target "aes" jens.maurer at gmx dot net
2015-07-21  8:05 ` [Bug target/66954] " rguenth at gcc dot gnu.org
2015-07-22 18:06 ` ubizjak at gmail dot com
2015-08-11 17:54 ` uros 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).