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" } } */