public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/109133] New: Error: operands mismatch -- statement `movec %d0,%cacr' ignored
@ 2023-03-14 21:08 angelo@kernel-space.org
  2024-01-01 18:01 ` [Bug target/109133] " mikpelinux at gmail dot com
  2024-01-01 18:44 ` schwab@linux-m68k.org
  0 siblings, 2 replies; 3+ messages in thread
From: angelo@kernel-space.org @ 2023-03-14 21:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109133
           Summary: Error: operands mismatch -- statement `movec
                    %d0,%cacr' ignored
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: angelo@kernel-space.org
  Target Milestone: ---

Hi,

not clear if this may be related to binutils, i using gcc btw.
I am just using for test

-march=isac

on mcf54415, that should work. But i am observing this error:


  /opt/toolchains/m68k/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-linux-gcc
-Wp,-MD,arch/m68k/lib/.interrupts.o.d -nostdinc -isystem
/opt/toolchains/m68k/gcc-12.2.0-nolibc/m68k-linux/bin/../lib/gcc/m68k-linux/12.2.0/include
-Iinclude   -I./arch/m68k/include -include ./include/linux/kconfig.h
-D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security
-fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing
-fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks
-Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds
-Wno-array-bounds -Wno-stringop-overflow -Wno-maybe-uninitialized
-fmacro-prefix-map=./= -gdwarf-4 -fstack-usage -Wno-format-nonliteral
-Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=date-time
-Wno-packed-not-aligned -D__M68K__ -ffunction-sections -fdata-sections
-ffixed-d7 -msep-data -pipe -march=isac -fPIC   
-DKBUILD_BASENAME='"interrupts"'  -DKBUILD_MODNAME='"interrupts"' -c -o
arch/m68k/lib/interrupts.o arch/m68k/lib/interrupts.c
{standard input}: Assembler messages:
{standard input}:103: Error: operands mismatch -- statement `movec %d0,%cacr'
ignored
{standard input}:136: Error: operands mismatch -- statement `movec %d0,%acr2'
ignored
{standard input}:139: Error: operands mismatch -- statement `movec %d0,%acr3'
ignored
{standard input}:139: Error: operands mismatch -- statement `movec %d0,%acr6'
ignored
{standard input}:139: Error: operands mismatch -- statement `movec %d0,%acr7'
ignored
{standard input}:142: Error: operands mismatch -- statement `movec %d0,%cacr'
ignored
{standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr2'
ignored
{standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr3'
ignored
{standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr6'
ignored
{standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr7'
ignored

movec is isac, so it should be legal.

If i use -mcpu=54418 in place of -march=isac, i can compile.

Regards,
angelo

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

* [Bug target/109133] Error: operands mismatch -- statement `movec %d0,%cacr' ignored
  2023-03-14 21:08 [Bug libgcc/109133] New: Error: operands mismatch -- statement `movec %d0,%cacr' ignored angelo@kernel-space.org
@ 2024-01-01 18:01 ` mikpelinux at gmail dot com
  2024-01-01 18:44 ` schwab@linux-m68k.org
  1 sibling, 0 replies; 3+ messages in thread
From: mikpelinux at gmail dot com @ 2024-01-01 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Looks like either a problem in gas, or the gcc driver not passing appropriate
options to gas. We need a standalone test case, and please indicate exactly
what versions of gcc and binutils you're using and how they were configured and
built.

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

* [Bug target/109133] Error: operands mismatch -- statement `movec %d0,%cacr' ignored
  2023-03-14 21:08 [Bug libgcc/109133] New: Error: operands mismatch -- statement `movec %d0,%cacr' ignored angelo@kernel-space.org
  2024-01-01 18:01 ` [Bug target/109133] " mikpelinux at gmail dot com
@ 2024-01-01 18:44 ` schwab@linux-m68k.org
  1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2024-01-01 18:44 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
The available control registers are dependent on the particular device, a
generic setting like isac does not include any.

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

end of thread, other threads:[~2024-01-01 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 21:08 [Bug libgcc/109133] New: Error: operands mismatch -- statement `movec %d0,%cacr' ignored angelo@kernel-space.org
2024-01-01 18:01 ` [Bug target/109133] " mikpelinux at gmail dot com
2024-01-01 18:44 ` schwab@linux-m68k.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).