public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/41196]  New: The use of ARM NEON vshll_n_u8 intrinsic results in compile error on valid code
@ 2009-08-31 12:14 siarhei dot siamashka at gmail dot com
  2009-09-01 11:13 ` [Bug c/41196] " ramana at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: siarhei dot siamashka at gmail dot com @ 2009-08-31 12:14 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]

When using vshll_n_u8 intrinsic, gcc 4.4.1 incorrectly rejects shift operand
having value >= 8, claiming that it is out of range.

When using the following test code
/*************/
#include <arm_neon.h>
uint16x8_t test_vshll_n_u8 (uint8x8_t a)
{
    return vshll_n_u8(a, 8);
}
/*************/



Test with gcc 4.4.1:
# gcc -c -O2 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer
test.c
test.c: In function ‘test_vshll_n_u8’:
test.c:6: error: constant out of range



It used to work fine with cs2007q3:
# gcc -c -O2 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer
test.c
# objdump -d test.o

test.o:     file format elf32-littlearm

Disassembly of section .text:

00000000 <test_vshll_n_u8>:
   0:   ec410b17        vmov    d7, r0, r1
   4:   f3b26307        vshll.i8        q3, d7, #8
   8:   ec510b16        vmov    r0, r1, d6
   c:   ec532b17        vmov    r2, r3, d7
  10:   e12fff1e        bx      lr


-- 
           Summary: The use of ARM NEON vshll_n_u8 intrinsic results in
                    compile error on valid code
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: siarhei dot siamashka at gmail dot com
 GCC build triplet: armv4tl-softfloat-linux-gnueabi
  GCC host triplet: armv4tl-softfloat-linux-gnueabi
GCC target triplet: armv4tl-softfloat-linux-gnueabi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41196


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

end of thread, other threads:[~2009-12-21 11:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-31 12:14 [Bug c/41196] New: The use of ARM NEON vshll_n_u8 intrinsic results in compile error on valid code siarhei dot siamashka at gmail dot com
2009-09-01 11:13 ` [Bug c/41196] " ramana at gcc dot gnu dot org
2009-09-04  1:10 ` [Bug target/41196] " dgutson at codesourcery dot com
2009-09-04 19:41 ` dgutson at gcc dot gnu dot org
2009-09-25 21:29 ` dgutson at gcc dot gnu dot org
2009-09-25 21:35 ` dgutson at gcc dot gnu dot org
2009-10-14 19:20 ` dgutson at gcc dot gnu dot org
2009-10-15  8:19 ` [Bug target/41196] The use of ARM NEON vshll_n_u8 intrinsic results in compile error on valid code [4.4 only] ramana at gcc dot gnu dot org
2009-10-15 12:33 ` dgutson at codesourcery dot com
2009-10-15 12:58 ` ramana at gcc dot gnu dot org
2009-10-19 14:09 ` jakub at gcc dot gnu dot org
2009-12-11 11:54 ` ramana at gcc dot gnu dot org
2009-12-11 11:55 ` ramana at gcc dot gnu dot org
2009-12-21 11:55 ` mikpe at it dot uu dot se

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).