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

            Bug ID: 120405
           Summary: bfloat16-complex.c fails with -mcpu=neoverse-v2 but
                    works with -mcpu=cortex-a57
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ramana at gcc dot gnu.org
  Target Milestone: ---

Strangely the testcase gcc.dg/bfloat16-complex.c passes with base v8 but fails
with v8.2 and above with the link time error as below at all optimization
levels. 

 /local/home/ramanara/build/gcc/xgcc -O2 -B/local/home/ramanara/build/gcc/ 
/local/home/ramanara/gcc-14.3.0-RC-20250515/gcc/testsuite/gcc.dg/torture/bfloat16-complex.c
   -fdiagnostics-plain-output    -O0    -lm  -o ./bfloat16-complex.exe
--save-temps -mcpu=neoverse-n1
/usr/bin/ld: ./bfloat16-complex.o: in function `main':
bfloat16-complex.c:(.text+0x6d4): undefined reference to `__mulbc3'
/usr/bin/ld: bfloat16-complex.c:(.text+0x76c): undefined reference to
`__divbc3'


Hit while testing the RC for 14.3 with a compiler that defaults to neoverse-v2
. Will try trunk next.

Reply via email to