summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/thumb-cbranchqi.c
blob: ad28e7f54b8ff03c0a3aa66cd8490e43aa426aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-mthumb -Os" }  */
/* { dg-require-effective-target arm_thumb1_ok } */

int ldrb(unsigned char* p)
{
  if (p[8] <= 0x7F)
    return 2;
  else
    return 5;
}


/* { dg-final { scan-assembler "127" } } */
/* { dg-final { scan-assembler "bhi" } } */