linux-snps-arc.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: {standard input}:1174: Error: inappropriate arguments for opcode 'mpydu' (fwd)
       [not found] <nycvar.YSQ.7.78.906.2009301714360.1581@knanqh.ubzr>
@ 2020-09-30 21:39 ` Vineet Gupta
  2020-09-30 21:56   ` Nicolas Pitre
  0 siblings, 1 reply; 2+ messages in thread
From: Vineet Gupta @ 2020-09-30 21:39 UTC (permalink / raw)
  To: Nicolas Pitre, Eugeniy Paltsev; +Cc: arcml, Claudiu Zissulescu

Hi Nicolas,

On 9/30/20 2:23 PM, Nicolas Pitre wrote:
> Hello,
>
> I just realized you might not be aware of the following issue.
>
> The kernel kbuild test robot project identified a build failure on ARC 
> that bisects down to a patch of mine. 

Your patch to Linux kernel ? Indeed the report we got for build failure didn't
provide that context and we will appreciate pointers to same just for curiosity.

> It turns out that my patch is 
> highlighting a bug in gcc for ARC.

In any case, we did reach the same conclusion it is indeed an ARC gcc bug (for Big
endian builds only) and have created a github ticket for our gcc maintainer to
resolve. Please note that we've not seen it internally as Big Endian is an
optional configuration option and not in wide spread use for us.

https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/300


And we can also confirm this is seen in gcc 9 and gcc 10 both.

Thx,
-Vineet

>
> ---------- Forwarded message ----------
> Date: Mon, 28 Sep 2020 17:43:20 -0400 (EDT)
> From: Nicolas Pitre <nico@fluxnic.net>
> To: Rong Chen <rong.a.chen@intel.com>
> Cc: kernel test robot <lkp@intel.com>, kbuild-all@lists.01.org,
>     linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, gcc@gcc.gnu.org
> Message-ID: <nycvar.YSQ.7.78.906.2009281705410.1581@knanqh.ubzr>
> Subject: Re: {standard input}:1174: Error: inappropriate arguments for opcode
>     'mpydu'
>
> On Sun, 27 Sep 2020, Rong Chen wrote:
>
>> Hi Nicolas,
>>
>> Thanks for the feedback, the error still remains with gcc 10.2.0:
> I've created the simplest test case that can be. You won't believe it.
>
> Test case:
>
> $ cat test.c
> unsigned int test(unsigned int x, unsigned long long y)
> {
> 	y /= 0x20000000;
> 	if (x > 1)
> 		y *= x;
> 	return y;
> }
> $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/0day/gcc-9.3.0-nolibc/arc-elf/libexec/gcc/arc-elf/9.3.0
> $ ~/0day/gcc-9.3.0-nolibc/arc-elf/bin/arc-elf-gcc -mcpu=hs38 -mbig-endian -O2 -c test.c
> /tmp/cc0GAomh.s: Assembler messages:
> /tmp/cc0GAomh.s:21: Error: inappropriate arguments for opcode 'mpydu'
>
> I know nothing about ARC. Please anyone take it over from here.
>
>
> Nicolas

_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

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

* Re: {standard input}:1174: Error: inappropriate arguments for opcode 'mpydu' (fwd)
  2020-09-30 21:39 ` {standard input}:1174: Error: inappropriate arguments for opcode 'mpydu' (fwd) Vineet Gupta
@ 2020-09-30 21:56   ` Nicolas Pitre
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pitre @ 2020-09-30 21:56 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: arcml, Eugeniy Paltsev, Claudiu Zissulescu

On Wed, 30 Sep 2020, Vineet Gupta wrote:

> Hi Nicolas,
> 
> On 9/30/20 2:23 PM, Nicolas Pitre wrote:
> > Hello,
> >
> > I just realized you might not be aware of the following issue.
> >
> > The kernel kbuild test robot project identified a build failure on ARC 
> > that bisects down to a patch of mine. 
> 
> Your patch to Linux kernel ? Indeed the report we got for build failure didn't
> provide that context and we will appreciate pointers to same just for curiosity.

Here is the original report:

https://www.spinics.net/lists/kernel/msg3596096.html

> > It turns out that my patch is 
> > highlighting a bug in gcc for ARC.
> 
> In any case, we did reach the same conclusion it is indeed an ARC gcc bug (for Big
> endian builds only) and have created a github ticket for our gcc maintainer to
> resolve. Please note that we've not seen it internally as Big Endian is an
> optional configuration option and not in wide spread use for us.
> 
> https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/300
> 
> 
> And we can also confirm this is seen in gcc 9 and gcc 10 both.
> 
> Thx,
> -Vineet
> 
> >
> > ---------- Forwarded message ----------
> > Date: Mon, 28 Sep 2020 17:43:20 -0400 (EDT)
> > From: Nicolas Pitre <nico@fluxnic.net>
> > To: Rong Chen <rong.a.chen@intel.com>
> > Cc: kernel test robot <lkp@intel.com>, kbuild-all@lists.01.org,
> >     linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, gcc@gcc.gnu.org
> > Message-ID: <nycvar.YSQ.7.78.906.2009281705410.1581@knanqh.ubzr>
> > Subject: Re: {standard input}:1174: Error: inappropriate arguments for opcode
> >     'mpydu'
> >
> > On Sun, 27 Sep 2020, Rong Chen wrote:
> >
> >> Hi Nicolas,
> >>
> >> Thanks for the feedback, the error still remains with gcc 10.2.0:
> > I've created the simplest test case that can be. You won't believe it.
> >
> > Test case:
> >
> > $ cat test.c
> > unsigned int test(unsigned int x, unsigned long long y)
> > {
> > 	y /= 0x20000000;
> > 	if (x > 1)
> > 		y *= x;
> > 	return y;
> > }
> > $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/0day/gcc-9.3.0-nolibc/arc-elf/libexec/gcc/arc-elf/9.3.0
> > $ ~/0day/gcc-9.3.0-nolibc/arc-elf/bin/arc-elf-gcc -mcpu=hs38 -mbig-endian -O2 -c test.c
> > /tmp/cc0GAomh.s: Assembler messages:
> > /tmp/cc0GAomh.s:21: Error: inappropriate arguments for opcode 'mpydu'
> >
> > I know nothing about ARC. Please anyone take it over from here.
> >
> >
> > Nicolas
> 
> 

_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

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

end of thread, other threads:[~2020-09-30 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <nycvar.YSQ.7.78.906.2009301714360.1581@knanqh.ubzr>
2020-09-30 21:39 ` {standard input}:1174: Error: inappropriate arguments for opcode 'mpydu' (fwd) Vineet Gupta
2020-09-30 21:56   ` Nicolas Pitre

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 NNTP newsgroup(s).