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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vmx
/
harness.h
blob
faea3e97dba9d3fcadd4efc0e1fc208f84c572ac
1
/* Common code for most VMX test cases. To use, include this file,
2
then write a routine named test() that performs a series of calls
3
to check(). */
4
5
#include <stdlib.h>
6
#include <stdio.h>
7
#include <altivec.h>
8
9
static int
failed
;
10
static void
test
(
void
);
11
12
static void
13
check
(
int
result
,
const char
*
name
)
14
{
15
if
(!
result
)
16
{
17
failed
++;
18
printf
(
"fail %s
\n
"
,
name
);
19
}
20
}
21
22
int
23
main
(
void
)
24
{
25
test
();
26
if
(
failed
)
27
abort
();
28
29
return
0
;
30
}