On 7/1/20 3:06 PM, Roger Sayle wrote: > > The following patch adds support for the popc and mul.wide instructions to > the nvptx backend. > I've a follow-up patch for supporting mul.hi instructions, but those changes > require some minor > tweaks to GCC's middle-end, so I'll submit those pieces separately. > > Tested by "make" and "make -k check" on --build=nvptx-none hosted on > x86_64-pc-linux-gnu with > no new regressions. > > 2020-07-01 Roger Sayle <ro...@nextmovesoftware.com> > > gcc/ChangeLog: > * config/nvptx/nvptx.md (popcount<mode>2): New instructions. > (mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions. > > gcc/testsuite/ChangeLog: > * gcc.target/nvptx/popc-1.c: New test. > * gcc.target/nvptx/popc-2.c: New test. > * gcc.target/nvptx/popc-3.c: New test. > * gcc.target/nvptx/mul-wide.c: New test. > * gcc.target/nvptx/umul-wide.c: New test. > > > Ok for mainline? >
Hi Roger, LGTM, please apply. [ Btw, can you next time add the new files to the patch. That's somewhat more convenient to apply. ] Thanks - Tom