4 #include "expression.h"
7 static void predefine_ppc(const struct target
*self
)
9 predefine("__powerpc__", 1, "1");
10 predefine("__powerpc", 1, "1");
11 predefine("__ppc__", 1, "1");
12 predefine("__PPC__", 1, "1");
13 predefine("__PPC", 1, "1");
14 predefine("_ARCH_PPC", 1, "1");
16 predefine("_BIG_ENDIAN", 1, "1");
19 static const char *asm_constraint_ppc(struct asm_operand
*op
, int c
, const char *str
)
30 static void predefine_ppc32(const struct target
*self
)
35 const struct target target_ppc32
= {
43 .target_64bit
= &target_ppc64
,
45 .predefine
= predefine_ppc32
,
46 .asm_constraint
= asm_constraint_ppc
,
50 static void predefine_ppc64(const struct target
*self
)
52 predefine("__powerpc64__", 1, "1");
53 predefine("__ppc64__", 1, "1");
54 predefine("__PPC64__", 1, "1");
55 predefine("_ARCH_PPC64", 1, "1");
60 const struct target target_ppc64
= {
67 .target_32bit
= &target_ppc32
,
69 .predefine
= predefine_ppc64
,
70 .asm_constraint
= asm_constraint_ppc
,