public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/100347] [11/12 Regression] GCC 11 does not recognize skylake; translates "march=native" to "x86_64"
Date: Thu, 06 May 2021 11:20:04 +0000	[thread overview]
Message-ID: <bug-100347-4-gzffalU35j@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100347-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> ---

build of 11.1 on macOS11 with no patches and default options

$ ./gcc/xgcc -Bgcc /source/test/general/empty-main.c -S -fverbose-asm 
 head -5 empty-main.s 
# GNU C17 (GCC) version 11.1.0 (x86_64-apple-darwin20)
#       compiled by GNU C version 11.1.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -fPIC -mmacosx-version-min=11.2.0 -mtune=core2



$ ./gcc/xgcc -Bgcc /source/test/general/empty-main.c -S -fverbose-asm
-march=native

 head -5 empty-main.s 
# GNU C17 (GCC) version 11.1.0 (x86_64-apple-darwin20)
#       compiled by GNU C version 11.1.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed: -march=skylake -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3
-msse4.1 -msse4.2 -mavx -mavx2 -mno-sse4a -mno-fma4 -mno-xop -mfma -mno-avx512f
-mbmi -mbmi2 -maes -mpclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq
-mno-avx512cd -mno-avx512er -mno-avx512pf -mno-avx512vbmi -mno-avx512ifma
-mno-avx5124vnniw -mno-avx5124fmaps -mno-avx512vpopcntdq -mno-avx512vbmi2
-mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16
-mno-avx512vp2intersect -mno-3dnow -madx -mabm -mno-cldemote -mclflushopt
-mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mhle -msahf
-mno-lwp -mlzcnt -mmovbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig
-mno-pku -mno-prefetchwt1 -mprfchw -mno-ptwrite -mno-rdpid -mrdrnd -mrdseed
-mrtm -mno-serialize -msgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes
-mno-waitpkg -mno-wbnoinvd -mxsave -mxsavec -mxsaveopt -mxsaves -mno-amx-tile
-mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl
-mno-avxvnni --param=l1-cache-size=32 --param=l1-cache-line-size=64
--param=l2-cache-size=9216 -mtune=skylake -fPIC -mmacosx-version-min=11.2.0

This seems to DTRT - I will try on some more machines as time permits.

  parent reply	other threads:[~2021-05-06 11:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 23:34 [Bug driver/100347] New: " schnetter at gmail dot com
2021-04-29 23:35 ` [Bug driver/100347] " schnetter at gmail dot com
2021-04-30  6:59 ` [Bug target/100347] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-04-30  8:38 ` jakub at gcc dot gnu.org
2021-04-30  8:39 ` jakub at gcc dot gnu.org
2021-04-30 13:24 ` schnetter at gmail dot com
2021-05-06  7:46 ` mytbk920423 at gmail dot com
2021-05-06  8:00 ` rguenth at gcc dot gnu.org
2021-05-06  8:09 ` iains at gcc dot gnu.org
2021-05-06  8:30 ` jakub at gcc dot gnu.org
2021-05-06 11:20 ` iains at gcc dot gnu.org [this message]
2021-05-06 12:29 ` iains at gcc dot gnu.org
2021-05-06 12:32 ` schnetter at gmail dot com
2021-05-06 12:54 ` schnetter at gmail dot com
2021-05-06 13:34 ` iains at gcc dot gnu.org
2021-05-07 12:27 ` schnetter at gmail dot com
2021-05-07 13:28 ` iains at gcc dot gnu.org
2021-05-09  9:26 ` iains at gcc dot gnu.org
2021-07-28  7:06 ` rguenth at gcc dot gnu.org
2022-01-05 14:43 ` rguenth at gcc dot gnu.org
2022-04-21  7:49 ` rguenth at gcc dot gnu.org
2022-07-26 13:38 ` [Bug target/100347] [11/12/13 " rguenth at gcc dot gnu.org

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-100347-4-gzffalU35j@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: link
Be 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).