public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/105000] New: __attribute__((target("no-sse"))) doesn't disable AVX/SSE ISAs in ix86_isa_flags2
@ 2022-03-21 14:52 hjl.tools at gmail dot com
  2022-03-21 14:58 ` [Bug target/105000] " hjl.tools at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2022-03-21 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105000
           Summary: __attribute__((target("no-sse"))) doesn't disable
                    AVX/SSE ISAs in ix86_isa_flags2
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: crazylht at gmail dot com
  Target Milestone: ---
            Target: x86-64

[hjl@gnu-tgl-3 gcc]$ cat /tmp/x.c 
#include <x86gprintrin.h>

__attribute__((target("no-mmx,no-sse")))
int
foo ()
{
  return _get_ssp ();
}
[hjl@gnu-tgl-3 gcc]$ ./xgcc -B./ -S -O2  x.c -mshstk  -mavxvnni 
x.c: In function ‘foo’:
x.c:5:1: error: inlining failed in call to ‘always_inline’ ‘_get_ssp’: target
specific option mismatch
    5 | _get_ssp (void)
      | ^~~~~~~~
x.c:15:10: note: called from here
   15 |   return _get_ssp ();
      |          ^~~~~~~~~~~
[hjl@gnu-tgl-3 gcc]$ ./xgcc -B./ -S -O2  x.c -mshstk  -mkl
x.c: In function ‘foo’:
x.c:5:1: error: inlining failed in call to ‘always_inline’ ‘_get_ssp’: target
specific option mismatch
    5 | _get_ssp (void)
      | ^~~~~~~~
x.c:15:10: note: called from here
   15 |   return _get_ssp ();
      |          ^~~~~~~~~~~
[hjl@gnu-tgl-3 gcc]$ 

Is is because __attribute__((target("no-sse"))) doesn't disable AVX/SSE ISAs
in ix86_isa_flags2.

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

end of thread, other threads:[~2022-03-22 16:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 14:52 [Bug target/105000] New: __attribute__((target("no-sse"))) doesn't disable AVX/SSE ISAs in ix86_isa_flags2 hjl.tools at gmail dot com
2022-03-21 14:58 ` [Bug target/105000] " hjl.tools at gmail dot com
2022-03-21 22:35 ` cvs-commit at gcc dot gnu.org
2022-03-22  8:40 ` [Bug target/105000] __attribute__((target("general-regs-only"))) " marxin at gcc dot gnu.org
2022-03-22  9:37 ` crazylht at gmail dot com
2022-03-22  9:38 ` marxin at gcc dot gnu.org
2022-03-22 14:26 ` hjl.tools at gmail dot com
2022-03-22 16:31 ` cvs-commit at gcc dot gnu.org
2022-03-22 16:32 ` hjl.tools 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).