repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
switch-conversion-2.c
blob
97601dc9cbb0c8ae805d8be876d503ca01955af5
1
/* PR tree-optimization/85063 */
2
/* { dg-additional-options "-ftree-switch-conversion" } */
3
4
#include <stdlib.h>
5
6
int
7
main
(
void
)
8
{
9
int
n
[
1
];
10
11
n
[
0
] =
3
;
12
13
#pragma omp target
14
{
15
int
m
=
n
[
0
];
16
switch
(
m
&
3
)
17
{
18
case
0
:
m
=
4
;
break
;
19
case
1
:
m
=
3
;
break
;
20
case
2
:
m
=
2
;
break
;
21
default
:
22
m
=
1
;
break
;
23
}
24
n
[
0
] =
m
;
25
}
26
27
if
(
n
[
0
] !=
1
)
28
abort
();
29
30
return
0
;
31
}