public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111609] New: Zero shift in ARM NEON vshll_n_s8 intrinsic produces an error
@ 2023-09-27  8:27 power at pobox dot sk
  2023-09-27 17:46 ` [Bug target/111609] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: power at pobox dot sk @ 2023-09-27  8:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111609
           Summary: Zero shift in ARM NEON vshll_n_s8 intrinsic produces
                    an error
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: power at pobox dot sk
  Target Milestone: ---

Using this test program:
#include <stdint.h>
#include <arm_neon.h>

void test(int8_t *src, int16_t *dst)
{
int8x8_t nvalue1;
int16x8_t nvalue2;

nvalue1 = vld1_s8(src);
nvalue2 = vshll_n_s8(nvalue1, 0);
vst1q_s16(dst, nvalue2);
}

The compiler produces this error:
test.s:26: Error: immediate value out of range -- `vshll.s8 q8,d16,#0'

Tested on multiple gcc versions.

According to official ARM documentation, zero shift is valid in vshll_n_s8
intrinsic. The same goes for other vshll_n_XXX intrinsics.

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

* [Bug target/111609] Zero shift in ARM NEON vshll_n_s8 intrinsic produces an error
  2023-09-27  8:27 [Bug target/111609] New: Zero shift in ARM NEON vshll_n_s8 intrinsic produces an error power at pobox dot sk
@ 2023-09-27 17:46 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-27 17:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |12.1.0, 4.5.4
   Last reconfirmed|                            |2023-09-27
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

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

end of thread, other threads:[~2023-09-27 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  8:27 [Bug target/111609] New: Zero shift in ARM NEON vshll_n_s8 intrinsic produces an error power at pobox dot sk
2023-09-27 17:46 ` [Bug target/111609] " 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).