[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-06 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #18 from Li Pan --- Thanks for the confirmation. Yes, it was before expand. I will prepare one PATCH for this, and it should target for gcc-15 I bet.

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-06 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #17 from Tamar Christina --- (In reply to Li Pan from comment #16) > I have a try like below and finally have the Standard Name "SAT_ADD". Could > you please help to double-check if my understanding is correct? > > Given below

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-05 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #16 from Li Pan --- I have a try like below and finally have the Standard Name "SAT_ADD". Could you please help to double-check if my understanding is correct? Given below example code below: typedef unsigned int uint32_t;

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-02 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #15 from Li Pan --- (In reply to Tamar Christina from comment #14) > Awesome! Feel free to reach out if you need any help. > > It’s likely easier to start with add and sub and get things pipe cleaned and > expand incrementally than

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-02 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #14 from Tamar Christina --- Awesome! Feel free to reach out if you need any help. It’s likely easier to start with add and sub and get things pipe cleaned and expand incrementally than to try and do it all at once.

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-01 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #13 from Li Pan --- I'll try to understand it and make it happen recently.

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-01 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #12 from Tamar Christina --- (In reply to JuzheZhong from comment #11) > Hi, Tamar. > > We are interested in supporting saturating and rounding. Awesome! > > We may need to support scalar first. > > Do you have any suggestions ?

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-01 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #11 from JuzheZhong --- Hi, Tamar. We are interested in supporting saturating and rounding. We may need to support scalar first. Do you have any suggestions ? Or you are already working on it? Thanks.

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-01 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #10 from JuzheZhong --- Hi, Tamar. We are interested in supporting saturating and rounding. We may need to support scalar first. Do you have any suggestions ? Or you are already working on it? Thanks.

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-01 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #9 from JuzheZhong --- Ok. After investigation of LLVM: Before loop vectorizer: %cond12 = tail call i32 @llvm.usub.sat.i32(i32 %conv5, i32 %wsize) %conv13 = trunc i32 %cond12 to i16 After loop vectorizer: %10 = call <16 x

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-01 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #8 from JuzheZhong --- Missing saturate vectorization causes RVV Clang 20% performance better than RVV GCC during recent benchmark evaluation. In coremark pro zip-test, I believe other targets should be the same. I wonder how we

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2024-02-01 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #7 from Li Pan --- RISC-V backend reproduce code, build with "-march=rv64gcv_zba_zbb_zbc_zbs --param=riscv-autovec-preference=fixed-vlmax -Ofast -ffast-math" typedef unsigned short uint16_t; void AAA (uint16_t *x, uint16_t *y,

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2021-08-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #6 from Andrew Pinski --- https://gcc.gnu.org/pipermail/gcc/2021-May/236015.html

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2021-08-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2016-01-04 00:00:00 |2021-8-24 --- Comment #5 from Andrew

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2016-01-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Last

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2012-07-13 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Blocks||53947 ---

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2012-01-08 Thread drepper.fsp at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 --- Comment #2 from Ulrich Drepper drepper.fsp at gmail dot com 2012-01-08 18:56:48 UTC --- Note, this code appears in gzip and therefore IIRC in specCPU (in deflate.c:fill_window). Although when compiling gzip myself with that code embedded in

[Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns

2011-12-12 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51492 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last