Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/pr59521-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-options "-O2" } */ | |
2 /* { dg-do compile } */ | |
3 | |
4 extern int puts (const char *); | |
5 | |
6 void | |
7 f(int ch) { | |
8 switch (__builtin_expect(ch, 333)) { | |
9 case 3: puts("a"); break; | |
10 case 42: puts("e"); break; | |
11 case 333: puts("i"); break; | |
12 } | |
13 } | |
14 | |
15 /* { dg-final { scan-assembler "cmp.*333,.*cmp.*3,.*cmp.*42," { target i?86-*-* x86_64-*-* } } } */ |