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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |15.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432
Hongtao Liu changed:
What|Removed |Added
Resolution|--- |FIXED
CC|
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:
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:
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:
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107432
Richard Biener changed:
What|Removed |Added
CC||rguenth at gcc dot gnu.org,
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
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
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
--
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
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
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
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
16 matches
Mail list logo