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
2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr59874-2.c
blob
3b7679ff9f536850718f14c0196f2c87fc98eba5
1
/* PR target/59874 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -mlzcnt -masm=att" } */
4
/* { dg-final { scan-assembler "lzcntw" } } */
5
6
unsigned int
7
foo
(
unsigned short
x
)
8
{
9
return
x
?
__builtin_clzs
(
x
) :
16U
;
10
}