[Bug target/105075] [nvptx] Generate sad insn (sum of absolute differences)

2022-03-28 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 --- Comment #7 from rguenther at suse dot de --- On Mon, 28 Mar 2022, vries at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 > > --- Comment #6 from Tom de Vries --- > Created attachment 52698 > -->

[Bug target/105075] [nvptx] Generate sad insn (sum of absolute differences)

2022-03-28 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 --- Comment #6 from Tom de Vries --- Created attachment 52698 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52698=edit Demonstrator patch with stepping stone patterns for combine (In reply to Tom de Vries from comment #2) > Also, I

[Bug target/105075] [nvptx] Generate sad insn (sum of absolute differences)

2022-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 --- Comment #5 from Richard Biener --- @cindex @code{ssad@var{m}} instruction pattern @item @samp{ssad@var{m}} @cindex @code{usad@var{m}} instruction pattern @item @samp{usad@var{m}} Compute the sum of absolute differences of two

[Bug target/105075] [nvptx] Generate sad insn (sum of absolute differences)

2022-03-28 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 Thomas Schwinge changed: What|Removed |Added CC||rguenth at gcc dot gnu.org,

[Bug target/105075] [nvptx] Generate sad insn (sum of absolute differences)

2022-03-28 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 Tom de Vries changed: What|Removed |Added Attachment #52693|0 |1 is obsolete|

[Bug target/105075] [nvptx] Generate sad insn (sum of absolute differences)

2022-03-28 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 --- Comment #2 from Tom de Vries --- AFAIU, at gimple level support is limited to vectors, so that doesn't help to generate the insn for the simple, scalar case. It would be nice if combine could generate it and we wouldn't have to use a

[Bug target/105075] [nvptx] Generate sad insn (sum of absolute differences)

2022-03-28 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105075 --- Comment #1 from Tom de Vries --- Created attachment 52693 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52693=edit Demonstrator patch This patch adds: - modeling of insn sad.u32 in the .md file - peephole2 to generate it (which is