summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr42496.c
blob: c6d8a1f398085d6af4f07228694929e49fff07ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-options "-O2" }  */

void foo(int i)
{
    extern int j;

    if (i) {
         j = 10;
    }
    else {
          j = 20;
    }
}

/* { dg-final { scan-assembler-not "strne" } } */
/* { dg-final { scan-assembler-not "streq" } } */