[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:
parent
4d77601199
commit
e322d6e350
4 changed files with 31 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
19
gcc/testsuite/gcc.target/aarch64/pr68363_1.c
Normal file
19
gcc/testsuite/gcc.target/aarch64/pr68363_1.c
Normal 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue