aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
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
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')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/aarch64/pr68363_1.c19
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2a5d893..e14bebf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
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;
+}