[committed][nvptx] Fix printing of 128-bit constant (negative case)

2020-09-10 Thread Tom de Vries
[ 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;

Re: [committed][nvptx] Fix printing of 128-bit constant

2020-09-10 Thread Jakub Jelinek via Gcc-patches
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

[committed][nvptx] Fix printing of 128-bit constant

2020-09-10 Thread Tom de Vries
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: ...