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-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
powerpc
/
bmi-check.h
blob
1a9ad13f38cde7dc0fd71a793b14fc8e5d16ec1c
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
static void
bmi_test
(
void
);
5
6
static void
7
__attribute__
((
noinline
))
8
do_test
(
void
)
9
{
10
bmi_test
();
11
}
12
13
int
14
main
()
15
{
16
#ifdef __BUILTIN_CPU_SUPPORTS__
17
/* Need 64-bit for 64-bit longs as single instruction. */
18
if
(
__builtin_cpu_supports
(
"ppc64"
) )
19
{
20
do_test
();
21
#ifdef DEBUG
22
printf
(
"PASSED
\n
"
);
23
#endif
24
}
25
#ifdef DEBUG
26
else
27
printf
(
"SKIPPED
\n
"
);
28
#endif
29
#endif
/* __BUILTIN_CPU_SUPPORTS__ */
30
return
0
;
31
}