public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109481] New: Bug in openEuler/gcc (13.0.1) support for ARM SVE openmp
@ 2023-04-12  8:04 wumingchuan1992 at foxmail dot com
  2023-04-12 10:51 ` [Bug target/109481] " xry111 at gcc dot gnu.org
  2023-04-12 18:46 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: wumingchuan1992 at foxmail dot com @ 2023-04-12  8:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109481

            Bug ID: 109481
           Summary: Bug in openEuler/gcc (13.0.1) support for ARM SVE
                    openmp
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wumingchuan1992 at foxmail dot com
  Target Milestone: ---

demo.c
#include <stdio.h>
#include <stdlib.h>
#include "arm_sve.h"

void test(const int len, const float *src, float *dst)
{
int loop = svcntw();
svbool_t pg = svptrue_b32();
#pragma omp parallel for
for (int i = 0; i <= len - loop; i += loop) {
svfloat32_t x = svld1_f32(pg, src + i);
svfloat32_t y = svadd_f32_x(pg, x, x);
svst1_f32(pg, dst + i, y);
}
}

int main()
{
float src[512] = {0};
float dst[512] = {0};
test(512, src, dst);
return 0;
}

Run gcc(10.3.0 and 13.0.1 20230412) with the following command:
$ gcc -std=c99 -O2 -fopenmp -march=armv8.3-a+fp+sve -o demo.exe demo.c

After the command is executed, the following information is displayed:

demo.c: In function ‘test’:
demo.c:11:25: internal compiler error: Segmentation fault
11 | svfloat32_t x = svld1_f32(pg, src + i);
   |                 ^~~~~~~~~~~~~~~~~~~~~~
0xbecb8f crash_signal
        ../../gcc/toplev.cc:314
0x966054 omp_add_variable
        ../../gcc/gimplify.cc:7384
0x967097 omp_add_variable
        ../../gcc/gimplify.cc:7331
0x967097 omp_add_variable
        ../../gcc/gimplify.cc:7994
0x9667cf omp_add_variable
        ../../gcc/gimplify.cc:8063

Any suggestions to proceed?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/109481] Bug in openEuler/gcc (13.0.1) support for ARM SVE openmp
  2023-04-12  8:04 [Bug target/109481] New: Bug in openEuler/gcc (13.0.1) support for ARM SVE openmp wumingchuan1992 at foxmail dot com
@ 2023-04-12 10:51 ` xry111 at gcc dot gnu.org
  2023-04-12 18:46 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-04-12 10:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109481

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xry111 at gcc dot gnu.org

--- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Looks like a dup of PR101018.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/109481] Bug in openEuler/gcc (13.0.1) support for ARM SVE openmp
  2023-04-12  8:04 [Bug target/109481] New: Bug in openEuler/gcc (13.0.1) support for ARM SVE openmp wumingchuan1992 at foxmail dot com
  2023-04-12 10:51 ` [Bug target/109481] " xry111 at gcc dot gnu.org
@ 2023-04-12 18:46 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-12 18:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109481

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes it is a dup.

*** This bug has been marked as a duplicate of bug 101018 ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-12 18:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12  8:04 [Bug target/109481] New: Bug in openEuler/gcc (13.0.1) support for ARM SVE openmp wumingchuan1992 at foxmail dot com
2023-04-12 10:51 ` [Bug target/109481] " xry111 at gcc dot gnu.org
2023-04-12 18:46 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).