Revision 51789c41 target-ppc/cpu.h
b/target-ppc/cpu.h | ||
---|---|---|
23 | 23 |
#include "config.h" |
24 | 24 |
#include <stdint.h> |
25 | 25 |
|
26 |
#if defined(TARGET_PPC64) || (HOST_LONG_BITS >= 64) |
|
27 |
/* When using 64 bits temporary registers, |
|
28 |
* we can use 64 bits GPR with no extra cost |
|
29 |
*/ |
|
30 |
#define TARGET_PPCSPE |
|
31 |
#endif |
|
32 |
|
|
26 | 33 |
#if defined (TARGET_PPC64) |
27 | 34 |
typedef uint64_t ppc_gpr_t; |
28 | 35 |
#define TARGET_LONG_BITS 64 |
29 | 36 |
#define TARGET_GPR_BITS 64 |
30 | 37 |
#define REGX "%016" PRIx64 |
31 |
/* We can safely use PowerPC SPE extension when compiling PowerPC 64 */ |
|
32 |
#define TARGET_PPCSPE |
|
33 | 38 |
#elif defined(TARGET_PPCSPE) |
34 | 39 |
/* GPR are 64 bits: used by vector extension */ |
35 | 40 |
typedef uint64_t ppc_gpr_t; |
Also available in: Unified diff