public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/24659] Conversions are not vectorized Date: Sun, 22 Apr 2007 19:08:00 -0000 [thread overview] Message-ID: <20070422190816.31785.qmail@sourceware.org> (raw) In-Reply-To: <bug-24659-1649@http.gcc.gnu.org/bugzilla/> ------- Comment #10 from ubizjak at gmail dot com 2007-04-22 20:08 ------- float->double and double->float conversions are new vectorized. For a slightly different test: --cut here-- void test_fp (float *a, double *b) { int i; for (i = 0; i < 4; i++) b[i] = (double) a[i]; } void test_int (int *a, double *b) { int i; for (i = 0; i < 4; i++) b[i] = (double) a[i]; } --cut here-- we generate following loops: test_fd: .L2: movaps a(%rax), %xmm0 movhlps %xmm0, %xmm2 cvtps2pd %xmm0, %xmm1 movapd %xmm1, c(%rax,%rax) cvtps2pd %xmm2, %xmm0 movapd %xmm0, c+16(%rax,%rax) addq $16, %rax cmpq $64, %rax jne .L2 test_df: .L8: cvtpd2ps c(%rax,%rax), %xmm0 cvtpd2ps c+16(%rax,%rax), %xmm1 movlhps %xmm1, %xmm0 movaps %xmm0, a(%rax) addq $16, %rax cmpq $64, %rax jne .L8 test_int (no vectorization): .L13: cvtsi2sd b(,%rax,4), %xmm0 movsd %xmm0, c(,%rax,8) addq $1, %rax cmpq $16, %rax jne .L13 Note, that we still don't vectorize double->int and int->double conversions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24659
next prev parent reply other threads:[~2007-04-22 19:08 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-11-03 16:21 [Bug tree-optimization/24659] New: " uros at kss-loka dot si 2005-11-03 16:25 ` [Bug tree-optimization/24659] " pinskia at gcc dot gnu dot org 2005-11-03 17:11 ` dorit at il dot ibm dot com 2007-01-05 18:27 ` stuart at apple dot com 2007-01-05 18:30 ` stuart at apple dot com 2007-01-05 18:39 ` pinskia at gcc dot gnu dot org 2007-01-06 17:47 ` ubizjak at gmail dot com 2007-01-07 8:03 ` tehila at il dot ibm dot com 2007-04-21 18:43 ` ubizjak at gmail dot com 2007-04-22 18:45 ` uros at gcc dot gnu dot org 2007-04-22 19:08 ` ubizjak at gmail dot com [this message] 2007-04-22 19:10 ` ubizjak at gmail dot com 2007-05-15 14:07 ` ubizjak at gmail dot com 2007-05-17 6:31 ` uros at gcc dot gnu dot org 2007-05-17 6:46 ` ubizjak at gmail dot com 2007-05-17 7:29 ` ubizjak at gmail dot com 2007-06-29 8:53 ` ubizjak at gmail dot com 2007-06-29 10:30 ` uros at gcc dot gnu dot org 2007-06-29 10:38 ` ubizjak at gmail dot com 2007-06-29 16:46 ` dorit at il dot ibm 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=20070422190816.31785.qmail@sourceware.org \ --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).