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
arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr84436-2.c
blob
c34027a08b9245eeb58cfb25f66b48be566c5108
1
/* PR tree-optimization/84436 */
2
/* { dg-options "-O2 -fdump-tree-switchconv -fdump-tree-optimized" } */
3
4
char
5
lowerit
(
char
a
)
6
{
7
switch
(
a
)
8
{
9
default
:
10
return
a
;
11
case
'A'
:
12
return
'a'
;
13
case
'B'
:
14
return
'b'
;
15
case
'C'
:
16
return
'c'
;
17
case
'D'
:
18
return
'd'
;
19
case
'E'
:
20
return
'e'
;
21
case
'F'
:
22
return
'f'
;
23
case
'G'
:
24
return
'g'
;
25
case
'H'
:
26
return
'h'
;
27
case
'I'
:
28
return
'i'
;
29
case
'J'
:
30
return
'j'
;
31
case
'K'
:
32
return
'k'
;
33
case
'L'
:
34
return
'l'
;
35
case
'M'
:
36
return
'm'
;
37
case
'N'
:
38
return
'n'
;
39
case
'O'
:
40
return
'o'
;
41
case
'P'
:
42
return
'p'
;
43
case
'Q'
:
44
return
'q'
;
45
case
'R'
:
46
return
'r'
;
47
case
'S'
:
48
return
's'
;
49
case
'T'
:
50
return
't'
;
51
case
'U'
:
52
return
'u'
;
53
case
'V'
:
54
return
'v'
;
55
case
'W'
:
56
return
'w'
;
57
case
'X'
:
58
return
'x'
;
59
case
'Y'
:
60
return
'y'
;
61
case
'Z'
:
62
return
'z'
;
63
}
64
}
65
66
/* { dg-final { scan-tree-dump-times "a_.*\\+ 32" 1 "switchconv" } } */
67
/* { dg-final { scan-tree-dump-not "switch" "optimized" } } */