[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / prefix-pcrel.h
blob26175dc7d1eb7fe17f8625eae8652dae42dda9ef
1 /* Common tests for prefixed instructions testing whether pc-relative prefixed
2 instructions are generated for each type. */
4 #ifndef TYPE
5 #define TYPE unsigned int
6 #endif
8 static TYPE a;
10 /* Make sure a is not optimized away. */
11 TYPE *p = &a;
13 #if !defined(DO_ADD) && !defined(DO_VALUE) && !defined(DO_SET)
14 #define DO_ADD 1
15 #define DO_VALUE 1
16 #define DO_SET 1
17 #endif
19 #if DO_ADD
20 void
21 add (TYPE b)
23 a += b;
25 #endif
27 #if DO_VALUE
28 TYPE
29 value (void)
31 return a;
33 #endif
35 #if DO_SET
36 void
37 set (TYPE b)
39 a = b;
41 #endif