From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 68E933858D39; Tue, 14 Mar 2023 21:08:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68E933858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678828120; bh=ZJ5vlccOUQOj4Fh+jkceO/RUJEOWwgmEl/FJOVK5Ic0=; h=From:To:Subject:Date:From; b=DFtBajWWGxwdxA5Vz9sSpUYSzsE3k7duwEJ6ZMIQOfrm8wZ/RZdiT0iGhBo4YMul0 HH/bJPljXpXV0DAYQWx9/OafafA6xFSLZ0Wbu3mqWiSTBjFuHJaKsp6b7teBWc3m4Q D58duYTriJa0NcMbmOngEhFIihu3HS16ltO4E90Y= From: "angelo@kernel-space.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/109133] New: Error: operands mismatch -- statement `movec %d0,%cacr' ignored Date: Tue, 14 Mar 2023 21:08:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: angelo@kernel-space.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109133 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=3Disac 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=3Dgnu11 -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=3D./=3D -gdwarf-4 -fstack-usage -Wno-format-nonliteral -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=3Ddate-t= ime -Wno-packed-not-aligned -D__M68K__ -ffunction-sections -fdata-sections -ffixed-d7 -msep-data -pipe -march=3Disac -fPIC=20=20=20 -DKBUILD_BASENAME=3D'"interrupts"' -DKBUILD_MODNAME=3D'"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,%cac= r' ignored {standard input}:136: Error: operands mismatch -- statement `movec %d0,%acr= 2' ignored {standard input}:139: Error: operands mismatch -- statement `movec %d0,%acr= 3' ignored {standard input}:139: Error: operands mismatch -- statement `movec %d0,%acr= 6' ignored {standard input}:139: Error: operands mismatch -- statement `movec %d0,%acr= 7' ignored {standard input}:142: Error: operands mismatch -- statement `movec %d0,%cac= r' ignored {standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr= 2' ignored {standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr= 3' ignored {standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr= 6' ignored {standard input}:174: Error: operands mismatch -- statement `movec %d0,%acr= 7' ignored movec is isac, so it should be legal. If i use -mcpu=3D54418 in place of -march=3Disac, i can compile. Regards, angelo=