Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / arm / pr40956.c
blob5719b726a60c9591e330d5b63ba1e07df981da10
1 /* { dg-options "-mthumb -Os -fpic -march=armv5te" } */
2 /* { dg-require-effective-target arm_thumb1_ok } */
3 /* { dg-require-effective-target fpic } */
4 /* Make sure the constant "0" is loaded into register only once. */
5 /* { dg-final { scan-assembler-times "mov\[\\t \]*r., #0" 1 } } */
7 int foo(int p, int* q)
9 if (p!=9)
10 *q = 0;
11 else
12 *(q+1) = 0;
13 return 3;