[Bug target/107432] __builtin_convertvector generates inefficient code

2024-07-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #15 from GCC Commits --- The master branch has been updated by Hu : https://gcc.gnu.org/g:a902e35396d68f10bd27477153fafa4f5ac9c319 commit r15-2052-ga902e35396d68f10bd27477153fafa4f5ac9c319 Author: Hu, Lin1 Date: Thu Jul 11 15:03

[Bug target/107432] __builtin_convertvector generates inefficient code

2024-07-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #14 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:a7ad9cb813063ddf51269910f33b56116c10462c commit r15-1800-ga7ad9cb813063ddf51269910f33b56116c10462c Author: Andrew Pinski Date: T

[Bug target/107432] __builtin_convertvector generates inefficient code

2024-07-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0

[Bug target/107432] __builtin_convertvector generates inefficient code

2024-07-02 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 Hongtao Liu changed: What|Removed |Added Resolution|--- |FIXED CC|

[Bug target/107432] __builtin_convertvector generates inefficient code

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #10 from GCC Commits --- The master branch has been updated by Hu : https://gcc.gnu.org/g:c320a7efcd35ba6c6be70dc9b2fe562a9673e363 commit r15-1677-gc320a7efcd35ba6c6be70dc9b2fe562a9673e363 Author: Hu, Lin1 Date: Thu Feb 1 15:15:

[Bug target/107432] __builtin_convertvector generates inefficient code

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #12 from GCC Commits --- The master branch has been updated by Hu : https://gcc.gnu.org/g:4385dc97b0d28e54541eb2418d6e68fc672441d7 commit r15-1679-g4385dc97b0d28e54541eb2418d6e68fc672441d7 Author: Hu, Lin1 Date: Wed Mar 6 19:58:

[Bug target/107432] __builtin_convertvector generates inefficient code

2024-06-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #10 from GCC Commits --- The master branch has been updated by Hu : https://gcc.gnu.org/g:c320a7efcd35ba6c6be70dc9b2fe562a9673e363 commit r15-1677-gc320a7efcd35ba6c6be70dc9b2fe562a9673e363 Author: Hu, Lin1 Date: Thu Feb 1 15:15:

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-31 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #9 from rsandifo at gcc dot gnu.org --- (In reply to Richard Biener from comment #8) > I think we do support FIX_TRUNC_EXPR or FLOAT_EXPR for float <-> int > conversion of vectors like we now support {CONVERT,NOP}_EXPR for > just wi

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org,

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #7 from Hongtao.liu --- (In reply to Hongtao.liu from comment #6) > > Guess expand_vector_conversion can be optimized. > > if (INTEGRAL_TYPE_P (TREE_TYPE (ret_type)) > && SCALAR_FLOAT_TYPE_P (TREE_TYPE (arg_type))) > cod

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #6 from Hongtao.liu --- > Guess expand_vector_conversion can be optimized. if (INTEGRAL_TYPE_P (TREE_TYPE (ret_type)) && SCALAR_FLOAT_TYPE_P (TREE_TYPE (arg_type))) code = FIX_TRUNC_EXPR; else if (INTEGRAL_TYPE_P (TRE

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #5 from Hongtao.liu --- > It's lowered by pass_lower_vector, ideally, can we use truncmn2 in > expand_VEC_CONVERT if src is bigger integer mode than dest. Currently, expand_vector_conversion uses VEC_PACK_TRUNC_EXPR --

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #4 from Hongtao.liu --- (In reply to Hongtao.liu from comment #3) > typedef int v4si __attribute__((vector_size(16))); > typedef long long v4di __attribute__((vector_size(32))); > > v4si > foo (v4di a) > { > return __builtin_con

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #3 from Hongtao.liu --- typedef int v4si __attribute__((vector_size(16))); typedef long long v4di __attribute__((vector_size(32))); v4si foo (v4di a) { return __builtin_convertvector (a, v4si); } hmm, we actually support truncv

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-27 Thread g.peterhoff--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #2 from g.peterh...@t-online.de --- Another example. I want to convert an array to array. There are basically 3 options: - Copy - Test (b2f64_default) - optimized version (b2f64_manually) gcc12.2 + gcctrunc convertSIZE_copy only gene

[Bug target/107432] __builtin_convertvector generates inefficient code

2022-10-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432 --- Comment #1 from Andrew Pinski --- Created attachment 53781 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53781&action=edit testcase