OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge from transactional-memory branch.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr36508.c
1
/* PR tree-optimization/36508 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -ftree-pre" } */
4
5
void
6
foo (short *sp)
7
{
8
int k;
9
k = 1;
10
#define SP0 *sp++ = 1;
11
while (1)
12
{
13
if (k > 6)
14
break;
15
SP0
16
k++;
17
}
18
k = 1;
19
while (1)
20
{
21
if (k > 6)
22
break;
23
SP0
24
k++;
25
}
26
#define SP1 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0
27
#define SP2 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1
28
SP2
29
}