From: Wilco Dijkstra Date: Fri, 21 Oct 2016 17:27:15 +0000 (+0000) Subject: Really add the test this time... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c82bc7eddab18bdbcaccc4e23f70792e0a75490e;p=gcc.git Really add the test this time... testsuite/ * gcc.target/aarch64/test_frame_17.c: New test. From-SVN: r241421 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e3726c772ac..2a67241d4b0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,10 @@ * gcc.target/aarch64/test_frame_17.c: New test. +2016-10-21 Wilco Dijkstra + + * gcc.target/aarch64/test_frame_17.c: New test. + 2016-10-21 Andris Pavenis PR preprocessor/71681 diff --git a/gcc/testsuite/gcc.target/aarch64/test_frame_17.c b/gcc/testsuite/gcc.target/aarch64/test_frame_17.c new file mode 100644 index 00000000000..c214431999b --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/test_frame_17.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 --save-temps" } */ + +/* Test reuse of stack adjustment temporaries. */ + +void foo (); + +int reuse_mov (int i) +{ + int arr[1025]; + return arr[i]; +} + +int no_reuse_mov (int i) +{ + int arr[1025]; + foo (); + return arr[i]; +} + +/* { dg-final { scan-assembler-times "mov\tx16, \[0-9\]+" 3 } } */