public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/116358] New: undefined reference to `__umindi3' at -O3 when compiling with SVE
@ 2024-08-13  8:21 ktkachov at gcc dot gnu.org
  2024-08-13  8:33 ` [Bug middle-end/116358] [15 Regression] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2024-08-13  8:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 116358
           Summary: undefined reference to `__umindi3' at -O3 when
                    compiling with SVE
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: aarch64-sve, link-failure
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

The following code:
#include <algorithm>
char a;
int b;
int var_20;
char var_43;
void c(int d, int e, short f, long long g[][5], int h[][5]) {
  long long i;
  for (bool m; m < a; m = b)
    if ((0100 ? ~e : 0) ? 0 : std::min((long long)f, i))
      for (bool j = 0; d ?: m ?: 0;)
        for (int k; k < 80485270; k += 4) {
          for (char l; l < 4; l += 3)
            var_20 = 0;
          for (long n(std::min((unsigned long long)(h[k][m] ? d : 0),
                               e ? 3 ? (unsigned long long)16 : 0 : 0) -
                      16);
               n < 4; n++)
            var_43 = d ? std::min(g[m][j], (long long)d) : 0;
        }
}

int main() {return 0;}

Compiled and linked with -O3 -march=armv9-a breaks at link-time:
(.text+0x15c): undefined reference to `__umindi3'
Interestingly, the presence of SVE seems to be the triggering factor.
-O3 -march=armv9-a+nosve links successfully

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

end of thread, other threads:[~2024-09-04  0:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-13  8:21 [Bug target/116358] New: undefined reference to `__umindi3' at -O3 when compiling with SVE ktkachov at gcc dot gnu.org
2024-08-13  8:33 ` [Bug middle-end/116358] [15 Regression] " pinskia at gcc dot gnu.org
2024-08-13 14:52 ` tsamismanolis at gmail dot com
2024-08-13 15:41 ` pinskia at gcc dot gnu.org
2024-08-13 15:45 ` pinskia at gcc dot gnu.org
2024-08-13 19:54 ` ptomsich at gcc dot gnu.org
2024-08-22 11:05 ` [Bug middle-end/116358] [15 Regression] undefined reference to `__umindi3' at -O3 when compiling with SVE since r15-2890-g72c9b5f438f22c tsamismanolis at gmail dot com
2024-08-23 18:09 ` cvs-commit at gcc dot gnu.org
2024-09-04  0: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).