This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/63870] [Aarch64] [ARM] Errors in use of NEON intrinsics are reported incorrectly


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

--- Comment #1 from Alan Lawrence <alan.lawrence at arm dot com> ---
Same problem on AArch64, although the error messages are a little different
(and varied) - this is following r217440 which provides some improvement in
some cases:

$ /work/alalaw01/sbuild/install/bin/aarch64-none-elf-gcc -c -O2
neon_const_range_tests/*       
In file included from neon_const_range_tests/vld1.c:2:0:
/work/alalaw01/sbuild/install/lib/gcc/aarch64-none-elf/5.0.0/include/arm_neon.h:
In function 'f_vld1_lane':
/work/alalaw01/sbuild/install/lib/gcc/aarch64-none-elf/5.0.0/include/arm_neon.h:658:10:
error: lane -1 out of range 0 - 7
   return __aarch64_vset_lane_any (__vec, __index, __elem, 8);
          ^
In file included from neon_const_range_tests/vld4.c:2:0:
/work/alalaw01/sbuild/install/lib/gcc/aarch64-none-elf/5.0.0/include/arm_neon.h:
In function 'f_vld4_lane':
/work/alalaw01/sbuild/install/lib/gcc/aarch64-none-elf/5.0.0/include/arm_neon.h:18111:1:
error: lane -1 out of range 0 - 15
 __LD4_LANE_FUNC (int8x8x4_t, int8x8_t, int8x16x4_t, int8_t, v16qi, qi, s8,
 ^
/tmp/ccKedD22.s: Assembler messages:
/tmp/ccKedD22.s:9: Error: register element index out of range 0 to 7 at operand
3 -- `mul v0.8h,v0.8h,v1.h[-1]'
/tmp/ccKedD22.s: Assembler messages:
/tmp/ccKedD22.s:10: Error: immediate value out of range 1 to 8 at operand 3 --
`shrn v0.8b,v0.8h,9'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]