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
Handle peeling for alignment with masking
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr39867.c
blob
fbe09241cbdc37f0ee9ecd4035215f824e95aabe
1
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
4
extern
void
link_error
(
void
);
5
6
int
main
(
void
)
7
{
8
int
exp
= -
1
;
9
/* Wrong folding of the LHS to an unsigned MAX leads to 4294967295 != 2. */
10
if
((
exp
<
2
?
2U
: (
unsigned int
)
exp
) !=
2
)
11
link_error
();
12
return
0
;
13
}
14