1 /* { dg-require-effective-target arm_hard_vfp_ok } */
2 /* { dg-require-effective-target arm_arch_v7a_ok } */
3 /* { dg-do compile } */
4 /* { dg-options "-march=armv7-a -mfpu=vfp -fstack-protector-all -Os -mstack-protector-guard=tls -mstack-protector-guard-offset=1296 -mtp=cp15" } */
5
6 #include "stack-protector-5.c"
7
8 /* See the comment in stack-protector-5.c. */
9 /* { dg-final { scan-assembler-times {\tstr\t} 1 } } */
10 /* Expect two TLS register accesses and two occurrences of the offset */
11 /* { dg-final { scan-assembler-times {\tmrc\t} 2 } } */
12 /* { dg-final { scan-assembler-times {1296} 2 } } */