public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105000] New: __attribute__((target("no-sse"))) doesn't disable AVX/SSE ISAs in ix86_isa_flags2 Date: Mon, 21 Mar 2022 14:52:16 +0000 [thread overview] Message-ID: <bug-105000-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2022-03-21 14:52 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-21 14:52 hjl.tools at gmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-105000-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).