C/C++ extension for SIMD proposal

2023-06-10 Thread Jakub Juszczakiewicz via Gcc

Hi all,

    I don't know is here right place for sharing ideas, but I don't 
have idea, where I can send it.
I have simple idea. When I turned on OpenMP, for parallelly execute 
simple for it's enough when I add line like this before loop:


#pragma omp parallel for
for (size_t i = 0; i < 100; i++)
   vec_c[i] = vec_a[i] * vec_b[i];

Why don't use similar idea for show compiler that, it can by done by 
SIMD CPU extension? e.g.


#pragma simd for

Maybe I'm wrong and there is better way for do it, and I don't know how. 
If I'm right, maybe it could be idea for extend C/C++ in this way.


Best regards,
Jakub



Re: C/C++ extension for SIMD proposal

2023-06-10 Thread Jakub Jelinek via Gcc
On Sat, Jun 10, 2023 at 07:51:10PM +0200, Jakub Juszczakiewicz via Gcc wrote:
> Hi all,
> 
>     I don't know is here right place for sharing ideas, but I don't have
> idea, where I can send it.
> I have simple idea. When I turned on OpenMP, for parallelly execute simple
> for it's enough when I add line like this before loop:
> 
> #pragma omp parallel for
> for (size_t i = 0; i < 100; i++)
>    vec_c[i] = vec_a[i] * vec_b[i];
> 
> Why don't use similar idea for show compiler that, it can by done by SIMD
> CPU extension? e.g.
> 
> #pragma simd for

Use
#pragma omp simd
for that.
That is part of OpenMP for years.

Jakub



Re: C/C++ extension for SIMD proposal

2023-06-10 Thread Jakub Juszczakiewicz via Gcc

Hi.

    Thanks for fast reply. I will check this, because I didn't know that.
BR,
Jakub

On 10.06.2023 20:12, Jakub Jelinek wrote:

On Sat, Jun 10, 2023 at 07:51:10PM +0200, Jakub Juszczakiewicz via Gcc wrote:

Hi all,

     I don't know is here right place for sharing ideas, but I don't have
idea, where I can send it.
I have simple idea. When I turned on OpenMP, for parallelly execute simple
for it's enough when I add line like this before loop:

#pragma omp parallel for
for (size_t i = 0; i < 100; i++)
    vec_c[i] = vec_a[i] * vec_b[i];

Why don't use similar idea for show compiler that, it can by done by SIMD
CPU extension? e.g.

#pragma simd for

Use
#pragma omp simd
for that.
That is part of OpenMP for years.

Jakub



gcc/config.in was not regenerated

2023-06-10 Thread FX Coudert via Gcc
Hi,

Building GCC in maintainer mode leads to changes in gcc/config.in 
:

> diff --git a/gcc/config.in b/gcc/config.in
> index 4cad077bfbe..25442c59aec 100644
> --- a/gcc/config.in
> +++ b/gcc/config.in
> @@ -67,6 +67,12 @@
>  #endif
> +/* Define to larger than one set the number of match.pd partitions to 
> make. */
> +#ifndef USED_FOR_TARGET
> +#undef DEFAULT_MATCHPD_PARTITIONS
> +#endif
> +
> +
>  /* Define to larger than zero set the default stack clash protector size. */
>  #ifndef USED_FOR_TARGET
>  #undef DEFAULT_STK_CLASH_GUARD_SIZE

which I think are because this commit 
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=0a85544e1aaeca41133ecfc438cda913dbc0f122
should have regenerated and committed config.in 

Christina, can you please have a look?

FX

gcc-13-20230610 is now available

2023-06-10 Thread GCC Administrator via Gcc
Snapshot gcc-13-20230610 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/13-20230610/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 13 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch 
releases/gcc-13 revision 6165b233ecc637efb5edcad8a34aae74b165a711

You'll find:

 gcc-13-20230610.tar.xz   Complete GCC

  SHA256=fb3831f3ee2281819f8d422a53fb11c204abdb6c2349d5f0a8b031d49bd90e2c
  SHA1=bf353d343fdc21e033410dbd4af640d3779f0963

Diffs from 13-20230603 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-13
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.


inverse of compiling

2023-06-10 Thread André Coelho via Gcc

hello


can we compile asm source code to c source code?

It is the inverse, so possiliby is that it is already coded?


thanks in advance


andre



Re: inverse of compiling

2023-06-10 Thread Gabriel Ravier via Gcc

On 6/11/23 02:30, André Coelho via Gcc wrote:

hello


can we compile asm source code to c source code?

It is the inverse, so possiliby is that it is already coded?


thanks in advance


andre


https://en.wikipedia.org/wiki/Decompiler