\x1a2014-11-22 Andrew Pinski <apinski@cavium.com>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / test_frame_2.c
blob59a089cf3e75f386d32171edea6be4ebe0f08a5b
1 /* Verify:
2 * -fomit-frame-pointer.
3 * without outgoing.
4 * total frame size <= 256.
5 * number of callee-save regs >= 2.
6 * optimized code should use "stp !" for stack adjustment. */
8 /* { dg-do run } */
9 /* { dg-options "-O2 -fomit-frame-pointer --save-temps" } */
11 #include "test_frame_common.h"
13 t_frame_pattern (test2, 200, "x19")
14 t_frame_run (test2)
17 /* { dg-final { scan-assembler-times "stp\tx19, x30, \\\[sp, -\[0-9\]+\\\]!" 1 } } */
18 /* { dg-final { scan-assembler-times "ldp\tx19, x30, \\\[sp\\\], \[0-9\]+" 1 } } */
20 /* { dg-final { cleanup-saved-temps } } */