aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2015-11-23 14:56:03 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2015-11-23 14:56:03 +0000
commite322d6e350ed9061e4bf3ebb0f67bc88ebb3ae9b (patch)
tree16fd8e22b2a3430b3b495995603e3ecadce9a94b /gcc/testsuite/gcc.target
parent4d776011993936d5e17421abe228b856f8e5e748 (diff)
downloadgcc-e322d6e350ed9061e4bf3ebb0f67bc88ebb3ae9b.zip
gcc-e322d6e350ed9061e4bf3ebb0f67bc88ebb3ae9b.tar.gz
gcc-e322d6e350ed9061e4bf3ebb0f67bc88ebb3ae9b.tar.bz2
[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
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r--gcc/testsuite/gcc.target/aarch64/pr68363_1.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/pr68363_1.c b/gcc/testsuite/gcc.target/aarch64/pr68363_1.c
new file mode 100644
index 0000000..bb294b5
--- /dev/null
+++ b/gcc/testsuite/gcc.target/aarch64/pr68363_1.c
@@ -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;
+}