This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp-nvptx 8/9] libgomp: update gomp_nvptx_main for -mgomp
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Alexander Monakov <amonakov at ispras dot ru>
- Cc: gcc-patches at gcc dot gnu dot org, Bernd Schmidt <bschmidt at redhat dot com>, Dmitry Melnik <dm at ispras dot ru>
- Date: Wed, 2 Dec 2015 12:02:51 +0100
- Subject: Re: [gomp-nvptx 8/9] libgomp: update gomp_nvptx_main for -mgomp
- Authentication-results: sourceware.org; auth=none
- References: <1448983707-18854-1-git-send-email-amonakov at ispras dot ru> <1448983707-18854-9-git-send-email-amonakov at ispras dot ru>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Dec 01, 2015 at 06:28:26PM +0300, Alexander Monakov wrote:
> +void
> +gomp_nvptx_main (void (*fn) (void *), void *fn_data)
> +{
> + int tid, ntids;
> + asm ("mov.u32 %0, %%tid.y;" : "=r" (tid));
> + asm ("mov.u32 %0, %%ntid.y;" : "=r"(ntids));
Formatting (missing space before ( ).
Jakub