arm: Testcase for PR86640
authorSegher Boessenkool <segher@gcc.gnu.org>
Tue, 31 Jul 2018 14:01:29 +0000 (16:01 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 31 Jul 2018 14:01:29 +0000 (16:01 +0200)
gcc/testsuite/
PR target/86640
* gcc.target/arm/pr86640.c: New testcase.

From-SVN: r263114

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr86640.c [new file with mode: 0644]

index eaa6b19848743e7b3a4ba83aa93cbdee41ccb585..7aa44c20a6fa84895e65e998b9531ad2f1037346 100644 (file)
@@ -1,18 +1,23 @@
+2018-07-31  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       PR target/86640
+       * gcc.target/arm/pr86640.c: New testcase.
+
 2018-07-31  Martin Liska  <mliska@suse.cz>
 
-        PR gcov-profile/85338
-        PR gcov-profile/85350
-        PR gcov-profile/85372
+       PR gcov-profile/85338
+       PR gcov-profile/85350
+       PR gcov-profile/85372
        * gcc.misc-tests/gcov-pr85338.c: New test.
        * gcc.misc-tests/gcov-pr85350.c: New test.
        * gcc.misc-tests/gcov-pr85372.c: New test.
 
 2018-07-31  Martin Liska  <mliska@suse.cz>
 
-        PR gcov-profile/83813
-        PR gcov-profile/84758
-        PR gcov-profile/85217
-        PR gcov-profile/85332
+       PR gcov-profile/83813
+       PR gcov-profile/84758
+       PR gcov-profile/85217
+       PR gcov-profile/85332
        * gcc.misc-tests/gcov-pr83813.c: New test.
        * gcc.misc-tests/gcov-pr84758.c: New test.
        * gcc.misc-tests/gcov-pr85217.c: New test.
diff --git a/gcc/testsuite/gcc.target/arm/pr86640.c b/gcc/testsuite/gcc.target/arm/pr86640.c
new file mode 100644 (file)
index 0000000..e104602
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-options "-O3" } */
+
+/* This ICEd with  -O3 -mfpu=neon -mfloat-abi=hard -march=armv7-a  .  */
+
+char fn1() {
+  long long b[5];
+  for (int a = 0; a < 5; a++)
+    b[a] = ~0ULL;
+  return b[3];
+}