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
PR target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr78037.c
blob
d2e66ced7bcab454f923cc74d980679047fff85d
1
/* { dg-do run } */
2
/* { dg-require-effective-target bmi } */
3
/* { dg-options "-O2 -mbmi" } */
4
5
#include <x86intrin.h>
6
7
#include
"bmi-check.h"
8
9
int
10
__attribute__
((
noinline
,
noclone
))
11
foo
(
int
x
)
12
{
13
return
__tzcnt_u32
(
x
) &
0x1f
;
14
}
15
16
static void
17
bmi_test
()
18
{
19
if
(
foo
(
0
) !=
0
)
20
abort
();
21
}