blob: 3c48825b347b27fb977006c0dbf8204afd26500e [file] [log] [blame]
/* { dg-options "-O2" } */
/* { dg-do compile } */
extern int puts (const char *);
void
f(int ch) {
switch (__builtin_expect(ch, 333)) {
case 3: puts("a"); break;
case 42: puts("e"); break;
case 333: puts("i"); break;
}
}
/* { dg-final { scan-assembler "cmp.*333,.*cmp.*3,.*cmp.*42," { target i?86-*-* x86_64-*-* } } } */