public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/99773] New: ARM v8.1-m MVE interaction with -mfloat-abi not clear
@ 2021-03-25 16:26 clyon at gcc dot gnu.org
  2021-03-25 16:49 ` [Bug target/99773] " rearnsha at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: clyon at gcc dot gnu.org @ 2021-03-25 16:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99773
           Summary: ARM v8.1-m MVE interaction with -mfloat-abi not clear
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

I noticed an unexpected linker error when compiling with
-march=armv8.1-m.main+mve -mfloat-abi=hard -mcpu=cortex-m55 -mthumb
error: /tmp/ccQvvmcJ.o uses VFP register arguments, ./XXX.exe does not

Using mve.fp instead of mve fixes that.

However, I'm used to -mfloat-abi=hard defining the eabi attribute:
Tag_ABI_VFP_args: VFP registers

Compiling
===================================
typedef int __attribute((vector_size(16))) v4si;

float g(float x, float y)
{
    x += y;
    return x;
}

v4si f(v4si x, v4si y)
{
    return x + y;
}
===================================
with -O2 -march=armv8.1-m.main+mve -mfloat-abi=hard
generates for f:
        vadd.i32  q0, q0, q1
        bx      lr
which uses the MVE registers for the parameters, but the object files does not
have the Tag_ABI_VFP_args: VFP registers attribute I would expect.

It does have
Tag_MVE_arch: MVE Integer only
is that enough?

Is the current behavior expected or is there a bug?

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

end of thread, other threads:[~2021-03-30 13:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 16:26 [Bug target/99773] New: ARM v8.1-m MVE interaction with -mfloat-abi not clear clyon at gcc dot gnu.org
2021-03-25 16:49 ` [Bug target/99773] " rearnsha at gcc dot gnu.org
2021-03-25 16:58 ` acoplan at gcc dot gnu.org
2021-03-25 17:57 ` clyon at gcc dot gnu.org
2021-03-26 11:23 ` rearnsha at gcc dot gnu.org
2021-03-26 14:27 ` clyon at gcc dot gnu.org
2021-03-30 13:11 ` cvs-commit at gcc dot gnu.org
2021-03-30 13:12 ` clyon 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).