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_ARM64_INSTRUCTION_CODES_ARM64_H_
6 #define V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_
12 // ARM64-specific opcodes that specify which assembly sequence to emit.
13 // Most opcodes specify a single instruction.
14 #define TARGET_ARCH_OPCODE_LIST(V) \
73 V(Arm64TestAndBranch32) \
74 V(Arm64TestAndBranch) \
75 V(Arm64CompareAndBranch32) \
78 V(Arm64PokePairZero) \
87 V(Arm64Float64Floor) \
89 V(Arm64Float64RoundTruncate) \
90 V(Arm64Float64RoundTiesAway) \
91 V(Arm64Float32ToFloat64) \
92 V(Arm64Float64ToFloat32) \
93 V(Arm64Float64ToInt32) \
94 V(Arm64Float64ToUint32) \
95 V(Arm64Int32ToFloat64) \
96 V(Arm64Uint32ToFloat64) \
111 V(Arm64StoreWriteBarrier)
114 // Addressing modes represent the "shape" of inputs to an instruction.
115 // Many instructions support multiple addressing modes. Addressing modes
116 // are encoded into the InstructionCode of the instruction and tell the
117 // code generator after register allocation which assembler method to call.
119 // We use the following local notation for addressing modes:
122 // O = register or stack slot
123 // D = double register
124 // I = immediate (handle, external, int32)
125 // MRI = [register + immediate]
126 // MRR = [register + register]
127 #define TARGET_ADDRESSING_MODE_LIST(V) \
128 V(MRI) /* [%r0 + K] */ \
129 V(MRR) /* [%r0 + %r1] */ \
130 V(Operand2_R_LSL_I) /* %r0 LSL K */ \
131 V(Operand2_R_LSR_I) /* %r0 LSR K */ \
132 V(Operand2_R_ASR_I) /* %r0 ASR K */ \
133 V(Operand2_R_ROR_I) /* %r0 ROR K */
135 } // namespace internal
136 } // namespace compiler
139 #endif // V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_