[ was: Re: [committed][nvptx] Fix printing of 128-bit constant ]
On 9/10/20 10:26 PM, Jakub Jelinek wrote:
> On Thu, Sep 10, 2020 at 09:31:33PM +0200, Tom de Vries wrote:
>> Currently, for this code from c-c++-common/spec-barrier-1.c:
>> ...
>> __int128 g = 9;
On Thu, Sep 10, 2020 at 09:31:33PM +0200, Tom de Vries wrote:
> Currently, for this code from c-c++-common/spec-barrier-1.c:
> ...
> __int128 g = 9;
> ...
> we generate:
> ...
> // BEGIN GLOBAL VAR DEF: g
> .visible .global .align 8 .u64 g[2] = { 9, 9 };
> ...
> and consequently the test-case fails
Hi,
Currently, for this code from c-c++-common/spec-barrier-1.c:
...
__int128 g = 9;
...
we generate:
...
// BEGIN GLOBAL VAR DEF: g
.visible .global .align 8 .u64 g[2] = { 9, 9 };
...
and consequently the test-case fails in execution.
The problem is caused by a shift in nvptx_assemble_value:
...