Re: [PATCH] nvptx: Add support for PTX's cnot instruction.

2022-01-07 Thread Tom de Vries via Gcc-patches
On 1/6/22 17:42, Roger Sayle wrote: Happy New Year for 2022. This is a simple patch, now that the nvptx backend has transitioned to STORE_FLAG_VALUE=1, that adds support for NVidia's cnot instruction, that implements C/C++ style logical negation. Happy newyear to you too :) LGTM, please app

[PATCH] nvptx: Add support for PTX's cnot instruction.

2022-01-06 Thread Roger Sayle
Happy New Year for 2022. This is a simple patch, now that the nvptx backend has transitioned to STORE_FLAG_VALUE=1, that adds support for NVidia's cnot instruction, that implements C/C++ style logical negation. Previously, the simple function: int foo(int x) { return !x; } on nvptx-none with -