public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95943] New: arc -mbig-endian "inappropriate arguments" error from assembler
@ 2020-06-27 21:10 arnd at linaro dot org
2024-03-15 0:04 ` [Bug target/95943] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: arnd at linaro dot org @ 2020-06-27 21:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95943
Bug ID: 95943
Summary: arc -mbig-endian "inappropriate arguments" error from
assembler
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: arnd at linaro dot org
Target Milestone: ---
Building an 'allmodconfig' linux kernel for ARC results in a failure to
assemble one file:
{standard input}: Assembler messages:
{standard input}:12347: Error: inappropriate arguments for opcode 'mpyd'
make[3]: *** [/tmp/mainline/scripts/Makefile.build:281: kernel/sched/core.o]
Error 1
With creduce, I reduced the problem to
void a(int b, int c, long long d) {
long e = d;
long long f = 0;
if (e / 1000)
f = (long long)e * 1000;
g(a, f);
}
$ arc-linux-gcc-O2 -mbig-endian -mcpu=hs38 -c test.c
/tmp/ccfzWfgR.s: Assembler messages:
/tmp/ccfzWfgR.s:21: Error: inappropriate arguments for opcode 'mpyd'
$ arc-linux-gcc-O2 -mbig-endian -mcpu=hs38 -S test.c -o-
.section .text
.align 4
.global a
.type a, @function
a:
mov_s r2,r3 ;4
add r2,r2,999
cmp r2,1998
mov.ls r2,0
mov.ls r3,0
mpyd.hi r2,r3,1000
mov_s r1,r2 ;4
mov_s r0,@a ;13
b.d @g
mov_s r2,r3 ;4
.size a, .-a
.ident "GCC: (GNU) 10.1.0"
This happens with at least gcc-8 through gcc-10, but not with gcc-7.5.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/95943] arc -mbig-endian "inappropriate arguments" error from assembler
2020-06-27 21:10 [Bug target/95943] New: arc -mbig-endian "inappropriate arguments" error from assembler arnd at linaro dot org
@ 2024-03-15 0:04 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-15 0:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95943
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |11.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 11 by r11-5940-gf7ad4446274831 .
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-15 0:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-27 21:10 [Bug target/95943] New: arc -mbig-endian "inappropriate arguments" error from assembler arnd at linaro dot org
2024-03-15 0:04 ` [Bug target/95943] " pinskia 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).