1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_
6 #define V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_
12 // PPC-specific opcodes that specify which assembly sequence to emit.
13 // Most opcodes specify a single instruction.
14 #define TARGET_ARCH_OPCODE_LIST(V) \
17 V(PPC_AndComplement32) \
18 V(PPC_AndComplement64) \
21 V(PPC_OrComplement32) \
22 V(PPC_OrComplement64) \
29 V(PPC_ShiftRightAlg32) \
30 V(PPC_ShiftRightAlg64) \
35 V(PPC_RotLeftAndMask32) \
36 V(PPC_RotLeftAndClear64) \
37 V(PPC_RotLeftAndClearLeft64) \
38 V(PPC_RotLeftAndClearRight64) \
40 V(PPC_AddWithOverflow32) \
44 V(PPC_SubWithOverflow32) \
68 V(PPC_TruncateFloat64) \
79 V(PPC_ExtendSignWord8) \
80 V(PPC_ExtendSignWord16) \
81 V(PPC_ExtendSignWord32) \
82 V(PPC_Uint32ToUint64) \
84 V(PPC_Int32ToFloat64) \
85 V(PPC_Uint32ToFloat64) \
86 V(PPC_Float32ToFloat64) \
87 V(PPC_Float64ToInt32) \
88 V(PPC_Float64ToUint32) \
89 V(PPC_Float64ToFloat32) \
90 V(PPC_Float64ExtractLowWord32) \
91 V(PPC_Float64ExtractHighWord32) \
92 V(PPC_Float64InsertLowWord32) \
93 V(PPC_Float64InsertHighWord32) \
94 V(PPC_Float64Construct) \
107 V(PPC_StoreFloat32) \
108 V(PPC_StoreFloat64) \
109 V(PPC_StoreWriteBarrier)
112 // Addressing modes represent the "shape" of inputs to an instruction.
113 // Many instructions support multiple addressing modes. Addressing modes
114 // are encoded into the InstructionCode of the instruction and tell the
115 // code generator after register allocation which assembler method to call.
117 // We use the following local notation for addressing modes:
120 // O = register or stack slot
121 // D = double register
122 // I = immediate (handle, external, int32)
123 // MRI = [register + immediate]
124 // MRR = [register + register]
125 #define TARGET_ADDRESSING_MODE_LIST(V) \
126 V(MRI) /* [%r0 + K] */ \
127 V(MRR) /* [%r0 + %r1] */
129 } // namespace compiler
130 } // namespace internal
133 #endif // V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_