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
[testsuite] require sqrt_insn effective target where needed
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
powerpc
/
prefix-large.h
blob
07b38ae08752d002ae8f2e538a42c5404e53a26a
1
/* Common tests for prefixed instructions testing whether we can generate a
2
34-bit offset using 1 instruction. */
3
4
#ifndef TYPE
5
#define TYPE unsigned int
6
#endif
7
8
#if !defined(DO_ADD) && !defined(DO_VALUE) && !defined(DO_SET)
9
#define DO_ADD 1
10
#define DO_VALUE 1
11
#define DO_SET 1
12
#endif
13
14
#ifndef CONSTANT
15
#define CONSTANT 0x12480UL
16
#endif
17
18
#if DO_ADD
19
void
20
add
(
TYPE
*
p
,
TYPE a
)
21
{
22
p
[
CONSTANT
] +=
a
;
23
}
24
#endif
25
26
#if DO_VALUE
27
TYPE
28
value
(
TYPE
*
p
)
29
{
30
return
p
[
CONSTANT
];
31
}
32
#endif
33
34
#if DO_SET
35
void
36
set
(
TYPE
*
p
,
TYPE a
)
37
{
38
p
[
CONSTANT
] =
a
;
39
}
40
#endif