public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/99411] s311 and s31111 benchmark of TSVC is vectorized by clang better than by gcc Date: Fri, 05 Mar 2021 14:41:04 +0000 [thread overview] Message-ID: <bug-99411-4-wvkX6bGBiE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99411-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99411 Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|s311 benchmark of TSVC is |s311 and s31111 benchmark |vectorized by clang better |of TSVC is vectorized by |than by gcc |clang better than by gcc --- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I think this is same case typedef float real_t; #define iterations 1000000 #define LEN_1D 32000 #define LEN_2D 256 real_t a[LEN_1D]; real_t test(real_t* A){ real_t s = (real_t)0.0; for (int i = 0; i < 4; i++) s += A[i]; return s; } int main() { // reductions // sum reduction real_t sum; for (int nl = 0; nl < 2000*iterations; nl++) { sum = (real_t)0.; sum += test(a); sum += test(&a[4]); sum += test(&a[8]); sum += test(&a[12]); sum += test(&a[16]); sum += test(&a[20]); sum += test(&a[24]); sum += test(&a[28]); } return sum>4; }
next prev parent reply other threads:[~2021-03-05 14:41 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-05 14:30 [Bug middle-end/99411] New: s311 " hubicka at gcc dot gnu.org 2021-03-05 14:41 ` hubicka at gcc dot gnu.org [this message] 2021-03-05 14:43 ` [Bug middle-end/99411] s311, s312 and s31111 " hubicka at gcc dot gnu.org 2021-03-05 14:46 ` [Bug middle-end/99411] s311, s312, s31111 " hubicka at gcc dot gnu.org 2021-03-05 14:49 ` [Bug middle-end/99411] s311, s312, s31111 and s31111, s3110 " hubicka at gcc dot gnu.org 2021-03-05 15:03 ` [Bug middle-end/99411] s311, s312, s31111, s31111, s3110, vsumr " hubicka at gcc dot gnu.org 2021-03-08 8:24 ` [Bug tree-optimization/99411] " rguenth at gcc dot gnu.org 2022-11-16 17:16 ` hubicka at gcc dot gnu.org 2023-01-11 22:36 ` hubicka 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-99411-4-wvkX6bGBiE@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).