[Bug target/115493] gcc.c-torture/execute/pr94734.c fails on MVE after r15-1054-g202a9c8fe7d

2024-06-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115493

Richard Biener  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2024-06-17
 Ever confirmed|0   |1

--- Comment #4 from Richard Biener  ---
I will have a look.  Working with the reduced.

__attribute__((noipa)) int
baz (int n, int x, unsigned long z)
{
  int arr[16], s = 0;
  arr[12] = 42;
  for (int i = 0; i < n; i++)
{
  if (x == (i & 0x25))
arr[7] = i;
}
  return arr[z];
}

int
main ()
{
  if (baz (25, 0x25, 12) != 42)
__builtin_abort ();
  return 0;
}

When trying to reproduce for me linking fails with

/usr/bin/arm-suse-linux-gnueabi-ld: error: /tmp/cc4cHDSc.o: conflicting
architecture profiles M/A
/usr/bin/arm-suse-linux-gnueabi-ld: failed to merge target specific data of
file /tmp/cc4cHDSc.o
/usr/bin/arm-suse-linux-gnueabi-ld: error:
/home/rguenther/obj-arm-g/gcc/crtend.o: conflicting CPU architectures 21/4
/usr/bin/arm-suse-linux-gnueabi-ld: failed to merge target specific data of
file /home/rguenther/obj-arm-g/gcc/crtend.o

I configure with --target=arm-suse-linux-gnueabi --with-float=hard and have a
armv7-linux sysroot.

I'm trying to work based on cc1 and your attachments.

[Bug target/115493] gcc.c-torture/execute/pr94734.c fails on MVE after r15-1054-g202a9c8fe7d

2024-06-14 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115493

--- Comment #2 from Christophe Lyon  ---
Created attachment 58431
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58431=edit
vect dump OK

[Bug target/115493] gcc.c-torture/execute/pr94734.c fails on MVE after r15-1054-g202a9c8fe7d

2024-06-14 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115493

--- Comment #3 from Christophe Lyon  ---
Created attachment 58432
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58432=edit
vect dump broken