[AArch64] Fix longbranch test
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 14 Aug 2017 16:18:37 +0000 (16:18 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Mon, 14 Aug 2017 16:18:37 +0000 (16:18 +0000)
Fix longbranch test so it still generates long tbz branches.

    gcc/testsuite/
PR target/81643
* gcc.target/aarch64/long_branch_1.c: Improve testcase.

From-SVN: r251094

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/long_branch_1.c

index 9e32c8dcad1856bb682d7a6952b2929a4b178890..bfe2f7826ed3a41ebfb0948522c51718c61600d2 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       PR target/81643
+       * gcc.target/aarch64/long_branch_1.c: Improve testcase.
+
 2017-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        PR target/79845
index 46f500d36a2d9ff04f71ae0bcc7c47e3d0b92c1b..49d8b6a2278ad3d5b21d0ac1f523492c03982176 100644 (file)
@@ -54,10 +54,6 @@ test_and_branch (int selector, int addend, int cond)
     {
 start0:
       return sum - 1;
-start1:
-      return sum + 1;
-start2:
-      return sum;
 start3:
       return sum - 2;
     }
@@ -65,6 +61,8 @@ start3:
     {
       switch (selector)
        {
+start1:
+start2:
          CASE_ENTRY128 (1)
          CASE_ENTRY64 (129)
          CASE_ENTRY16 (193)