public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
@ 2022-07-26  6:49 sherry.zhang2 at arm dot com
  2022-07-26  6:54 ` [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: sherry.zhang2 at arm dot com @ 2022-07-26  6:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106442
           Summary: Build time error "vadd.i32 q3,q3,q0'" in case of
                    -mcpu=cortex-m55+nofp+nomve.fp
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sherry.zhang2 at arm dot com
  Target Milestone: ---

With -mcpu=cortex-m55+nofp+nomve.fp configuration,
arm-none-eabi-gcc 11.2.1 reports the following error for the source assembly
code " vadd.i32    q3, q3, q0 \n":
/tmp/ccKsPl0U.s: Assembler messages:
/tmp/ccKsPl0U.s:100: Error: selected FPU does not support instruction --
`vadd.i32 q3,q3,q0'.

vadd should be supported on cortex-m55 in the case of mve-I enabled according
to the Arm®v8-M Architecture Reference Manual.

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
@ 2022-07-26  6:54 ` pinskia at gcc dot gnu.org
  2022-07-26  6:56 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-07-26  6:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This might be a binutils bug.
Can you provide the exact command you are using to invoke gcc and provide the
source you are using? Also it would be helpful if you add -v to the gcc command
to see how as is being invoked.

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
  2022-07-26  6:54 ` [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" " pinskia at gcc dot gnu.org
@ 2022-07-26  6:56 ` pinskia at gcc dot gnu.org
  2022-07-26  7:19 ` sherry.zhang2 at arm dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-07-26  6:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2022-07-26
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note with nofp, you turned off the fp so it depends on if gcc is generating the
instruction or you are using inline asm or you wrote a .s file.

So we need to know the answers to the questions in comment #1.

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
  2022-07-26  6:54 ` [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" " pinskia at gcc dot gnu.org
  2022-07-26  6:56 ` pinskia at gcc dot gnu.org
@ 2022-07-26  7:19 ` sherry.zhang2 at arm dot com
  2022-07-26  7:25 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: sherry.zhang2 at arm dot com @ 2022-07-26  7:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from sherry.zhang2 at arm dot com ---
Created attachment 53355
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53355&action=edit
C Source code

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
                   ` (2 preceding siblings ...)
  2022-07-26  7:19 ` sherry.zhang2 at arm dot com
@ 2022-07-26  7:25 ` pinskia at gcc dot gnu.org
  2022-07-26  7:36 ` sherry.zhang2 at arm dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-07-26  7:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A picture is not the source.
But this looks more like a bug in either your inline-asm or how you invoke gcc.

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
                   ` (3 preceding siblings ...)
  2022-07-26  7:25 ` pinskia at gcc dot gnu.org
@ 2022-07-26  7:36 ` sherry.zhang2 at arm dot com
  2022-07-26  9:47 ` rearnsha at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: sherry.zhang2 at arm dot com @ 2022-07-26  7:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from sherry.zhang2 at arm dot com ---
(In reply to Andrew Pinski from comment #4)
> A picture is not the source.
> But this looks more like a bug in either your inline-asm or how you invoke
> GCC.

Logs after adding -v to GCC:
COLLECT_GCC_OPTIONS= '-mcpu=cortex-m55+nomve.fp' '-v' '-O3' '-D' 'NDEBUG'
'-specs=nano.specs' '-Wall' '-Wformat=0' '-Wno-return-type'
'-Wno-unused-but-set-variable' '-c' '-fdata-sections' '-ffunction-sections'
'-fno-builtin' '-fshort-enums' '-funsigned-char' '-mthumb' '-nostdlib'
'-std=c99' '-g' '-mfloat-abi=soft' '-mcmse' '-Wno-unused-value' '-o'
'CMakeFiles/tfm_spm.dir/cmsis_psa/arch/tfm_arch_v8m_main.o' '-c'
'-mlibarch=armv8.1-m.main+mve' '-march=armv8.1-m.main+mve' 

The same source code can build without error if I enable FP
with
COLLECT_GCC_OPTIONS='-mcpu=cortex-m55' '-v' '-O3' '-D' 'NDEBUG'
'-specs=nano.specs' '-Wall' '-Wformat=0' '-Wno-return-type'
'-Wno-unused-but-set-variable' '-c' '-fdata-sections' '-ffunction-sections'
'-fno-builtin' '-fshort-enums' '-funsigned-char' '-mthumb' '-nostdlib'
'-std=c99' '-g' '-mfloat-abi=hard' '-mfpu=fpv5-d16' '-mcmse'
'-Wno-unused-value' '-o'
'CMakeFiles/tfm_spm.dir/cmsis_psa/arch/tfm_arch_v8m_main.o' '-c'
'-mlibarch=armv8.1-m.main+fp.dp+mve' '-march=armv8.1-m.main+fp.dp+mve'

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
                   ` (4 preceding siblings ...)
  2022-07-26  7:36 ` sherry.zhang2 at arm dot com
@ 2022-07-26  9:47 ` rearnsha at gcc dot gnu.org
  2022-07-26  9:54 ` sherry.zhang2 at arm dot com
  2022-07-26 10:09 ` rearnsha at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2022-07-26  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
possibly a dup of pr101723.  Please try gcc-11.3

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
                   ` (5 preceding siblings ...)
  2022-07-26  9:47 ` rearnsha at gcc dot gnu.org
@ 2022-07-26  9:54 ` sherry.zhang2 at arm dot com
  2022-07-26 10:09 ` rearnsha at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: sherry.zhang2 at arm dot com @ 2022-07-26  9:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from sherry.zhang2 at arm dot com ---
(In reply to Richard Earnshaw from comment #6)
> possibly a dup of pr101723.  Please try gcc-11.3

The latest version I can get is 11.2
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads.
Has GCC 11.3 been published?

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

* [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp
  2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
                   ` (6 preceding siblings ...)
  2022-07-26  9:54 ` sherry.zhang2 at arm dot com
@ 2022-07-26 10:09 ` rearnsha at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2022-07-26 10:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to sherry.zhang2 from comment #7)
> (In reply to Richard Earnshaw from comment #6)
> > possibly a dup of pr101723.  Please try gcc-11.3
> 
> The latest version I can get is 11.2
> https://developer.arm.com/tools-and-software/open-source-software/developer-
> tools/gnu-toolchain/downloads. Has GCC 11.3 been published?

https://gcc.gnu.org/pipermail/gcc-announce/2022/000170.html

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

end of thread, other threads:[~2022-07-26 10:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26  6:49 [Bug libgcc/106442] New: Build time error "vadd.i32 q3,q3,q0'" in case of -mcpu=cortex-m55+nofp+nomve.fp sherry.zhang2 at arm dot com
2022-07-26  6:54 ` [Bug target/106442] Build time error "vadd.i32 q3, q3, q0'" " pinskia at gcc dot gnu.org
2022-07-26  6:56 ` pinskia at gcc dot gnu.org
2022-07-26  7:19 ` sherry.zhang2 at arm dot com
2022-07-26  7:25 ` pinskia at gcc dot gnu.org
2022-07-26  7:36 ` sherry.zhang2 at arm dot com
2022-07-26  9:47 ` rearnsha at gcc dot gnu.org
2022-07-26  9:54 ` sherry.zhang2 at arm dot com
2022-07-26 10:09 ` rearnsha 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).