Commit 6d31cc75 by Stefan Sørensen Committed by Jakub Jelinek

re PR target/69187 (ICE: Aborted when native compiling neon code with…

re PR target/69187 (ICE: Aborted when native compiling neon code with __builtin_neon_vmlals_lanev4hi)

	PR target/69187
	PR target/65624
	* config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
	args array size by one to avoid buffer overflow.

	* gcc.target/arm/pr69187.c: New test.

From-SVN: r232668
parent b929b470
2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
Jakub Jelinek <jakub@redhat.com>
PR target/69187
PR target/65624
* config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
args array size by one to avoid buffer overflow.
2016-01-21 Marcin Kościelnicki <koriakin@0x04.net> 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
* config/s390/s390.md (pool_section_start): Use switch_to_section * config/s390/s390.md (pool_section_start): Use switch_to_section
......
...@@ -2246,7 +2246,7 @@ arm_expand_neon_builtin (int fcode, tree exp, rtx target) ...@@ -2246,7 +2246,7 @@ arm_expand_neon_builtin (int fcode, tree exp, rtx target)
neon_builtin_datum *d = neon_builtin_datum *d =
&neon_builtin_data[fcode - ARM_BUILTIN_NEON_PATTERN_START]; &neon_builtin_data[fcode - ARM_BUILTIN_NEON_PATTERN_START];
enum insn_code icode = d->code; enum insn_code icode = d->code;
builtin_arg args[SIMD_MAX_BUILTIN_ARGS]; builtin_arg args[SIMD_MAX_BUILTIN_ARGS + 1];
int num_args = insn_data[d->code].n_operands; int num_args = insn_data[d->code].n_operands;
int is_void = 0; int is_void = 0;
int k; int k;
......
2016-01-21 Jakub Jelinek <jakub@redhat.com> 2016-01-21 Jakub Jelinek <jakub@redhat.com>
PR target/69187
PR target/65624
* gcc.target/arm/pr69187.c: New test.
PR c++/69355 PR c++/69355
* g++.dg/torture/pr69355.C: New test. * g++.dg/torture/pr69355.C: New test.
......
/* PR target/69187 */
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon } */
/* { dg-options "-O0" } */
/* { dg-add-options arm_neon } */
#include <arm_neon.h>
int32x4_t
foo (void)
{
int32x4_t vector_int32x4;
int16x4_t vector3_int16x4;
int16x4_t vector4_int16x4;
static int32_t buffer_int32x4[32];
vector_int32x4 = vld1q_s32(buffer_int32x4);
return vqdmlsl_lane_s16(vector_int32x4, vector3_int16x4, vector4_int16x4, 0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment