2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / stack-red-zone.c
blob8db2e2c092a70b4595b591c0aa87ffc0257d9e67
1 /* No stack red zone. PR38644. */
2 /* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } { "*" } { "" } } */
3 /* { dg-options "-mthumb -O2" } */
4 /* { dg-final { scan-assembler "ldrb\[^\n\]*\\n\[\t \]*add\[\t \]*sp" } } */
6 extern int doStreamReadBlock (int *, char *, int size, int);
8 char readStream (int *s)
10 char c = 0;
11 doStreamReadBlock (s, &c, 1, *s);
12 return c;