[AArch64] PR target/68363 Check that argument is real INSN in aarch64_madd_needs_nop

PR target/68363
	* config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
	that are not INSN_P.

	* gcc.target/aarch64/pr68363_1.c: New test.

From-SVN: r230760
This commit is contained in:
Kyrylo Tkachov 2015-11-23 14:56:03 +00:00 committed by Kyrylo Tkachov
parent 4d77601199
commit e322d6e350
4 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/68363
* config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
that are not INSN_P.
2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
* config/aarch64/aarch64-builtins.c

View File

@ -10108,7 +10108,7 @@ aarch64_madd_needs_nop (rtx_insn* insn)
if (!TARGET_FIX_ERR_A53_835769)
return false;
if (recog_memoized (insn) < 0)
if (!INSN_P (insn) || recog_memoized (insn) < 0)
return false;
attr_type = get_attr_type (insn);

View File

@ -1,3 +1,8 @@
2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/68363
* gcc.target/aarch64/pr68363_1.c: New test.
2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
* gcc.target/aarch64/simd/vmulx.x: New.

View File

@ -0,0 +1,19 @@
/* { dg-do compile } */
/* { dg-options "-mfix-cortex-a53-835769" } */
int
foo (int i)
{
switch (i)
{
case 0:
case 2:
case 5:
return 0;
case 7:
case 11:
case 13:
return 1;
}
return -1;
}