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, s312, s31111 and s31111, s3110 benchmark of TSVC is vectorized by clang better than by gcc Date: Fri, 05 Mar 2021 14:49:33 +0000 [thread overview] Message-ID: <bug-99411-4-rD5RKm0aBj@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, s312, s31111 and |s311, s312, s31111 and |s31111 benchmark of TSVC is |s31111, s3110 benchmark of |vectorized by clang better |TSVC is vectorized by clang |than by gcc |better than by gcc --- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> --- typedef float real_t; #define iterations 100000 #define LEN_1D 32000 #define LEN_2D 256 real_t a[LEN_1D]; real_t aa[LEN_2D][LEN_2D]; int main() { // reductions // if to max with index reductio 2 dimensions // similar to S315 int xindex, yindex; real_t max, chksum; for (int nl = 0; nl < 100*(iterations/(LEN_2D)); nl++) { max = aa[(0)][0]; xindex = 0; yindex = 0; for (int i = 0; i < LEN_2D; i++) { for (int j = 0; j < LEN_2D; j++) { if (aa[i][j] > max) { max = aa[i][j]; xindex = i; yindex = j; } } } chksum = max + (real_t) xindex + (real_t) yindex; } return max + xindex+1 + yindex+1; }
next prev parent reply other threads:[~2021-03-05 14:49 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 ` [Bug middle-end/99411] s311 and s31111 " hubicka at gcc dot gnu.org 2021-03-05 14:43 ` [Bug middle-end/99411] s311, s312 " 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 ` hubicka at gcc dot gnu.org [this message] 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-rD5RKm0aBj@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).