Re: [PATCH] nvptx: do not use alternative spelling of unsigned comparisons

2016-02-01 Thread Nathan Sidwell
On 02/01/16 11:55, Alexander Monakov wrote: Hello! The following patch fixes subtle breakage on NVPTX when unsigned comparisons would be sometimes mistranslated by PTX JIT. The new test demonstrates that by using the %nctaid.x (number of blocks) register, but a comparison against a value in con

[PATCH] nvptx: do not use alternative spelling of unsigned comparisons

2016-02-01 Thread Alexander Monakov
Hello! The following patch fixes subtle breakage on NVPTX when unsigned comparisons would be sometimes mistranslated by PTX JIT. The new test demonstrates that by using the %nctaid.x (number of blocks) register, but a comparison against a value in constant memory can also trigger that (I could ea