re PR target/47553 (ARM neon vld1q_lane_u8 & co. don't accept lanes >= 8)

gcc/
	PR target/47553
	* config/arm/predicates.md (neon_lane_number): Accept 0..15.

gcc/testsuite/
	PR target/47553
	* gcc.target/arm/neon-vld-1.c: New test.

From-SVN: r171344
This commit is contained in:
Richard Sandiford 2011-03-23 09:57:26 +00:00 committed by Richard Sandiford
parent 0d85315624
commit 3460fdf328
4 changed files with 24 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
PR target/47553
* config/arm/predicates.md (neon_lane_number): Accept 0..15.
2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
* optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code

View file

@ -610,7 +610,7 @@
;; TODO: We could check lane numbers more precisely based on the mode.
(define_predicate "neon_lane_number"
(and (match_code "const_int")
(match_test "INTVAL (op) >= 0 && INTVAL (op) <= 7")))
(match_test "INTVAL (op) >= 0 && INTVAL (op) <= 15")))
;; Predicates for named expanders that overlap multiple ISAs.
(define_predicate "cmpdi_operand"

View file

@ -1,3 +1,8 @@
2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
PR target/47553
* gcc.target/arm/neon-vld-1.c: New test.
2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/array14.ad[sb]: New test.

View file

@ -0,0 +1,13 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-O1" } */
/* { dg-add-options arm_neon } */
#include <arm_neon.h>
uint8x16_t
foo (uint8_t *a, uint8x16_t b)
{
vst1q_lane_u8 (a, b, 14);
return vld1q_lane_u8 (a + 0x100, b, 15);
}