repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr45830.c
blob
dfe1b0d1a019b6e3d91b6c8469a071802e8fae81
1
/* PR target/45830 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-switchconv-all -mtune=generic" } */
4
5
int
6
foo
(
int
*
a
)
7
{
8
switch
(*
a
)
9
{
10
case
0
:
11
case
3
:
12
case
1
:
13
case
2
:
14
case
4
:
15
case
23
:
16
case
26
:
17
case
19
:
18
case
5
:
19
case
21
:
20
case
20
:
21
case
22
:
22
case
27
:
23
return
1
;
24
default
:
25
return
0
;
26
}
27
}
28
29
/* { dg-final { scan-tree-dump "expanding as bit test is preferable" "switchconv" } } */
30
/* { dg-final { scan-assembler-not "CSWTCH" } } */