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) \
75 V(Arm64TestAndBranch32) \
76 V(Arm64TestAndBranch) \
77 V(Arm64CompareAndBranch32) \
88 V(Arm64Float64RoundDown) \
89 V(Arm64Float64RoundTiesAway) \
90 V(Arm64Float64RoundTruncate) \
91 V(Arm64Float64RoundUp) \
92 V(Arm64Float32ToFloat64) \
93 V(Arm64Float64ToFloat32) \
94 V(Arm64Float64ToInt32) \
95 V(Arm64Float64ToUint32) \
96 V(Arm64Int32ToFloat64) \
97 V(Arm64Uint32ToFloat64) \
98 V(Arm64Float64ExtractLowWord32) \
99 V(Arm64Float64ExtractHighWord32) \
100 V(Arm64Float64InsertLowWord32) \
101 V(Arm64Float64InsertHighWord32) \
102 V(Arm64Float64MoveU64) \
119 V(Arm64StoreWriteBarrier)
122 // Addressing modes represent the "shape" of inputs to an instruction.
123 // Many instructions support multiple addressing modes. Addressing modes
124 // are encoded into the InstructionCode of the instruction and tell the
125 // code generator after register allocation which assembler method to call.
127 // We use the following local notation for addressing modes:
130 // O = register or stack slot
131 // D = double register
132 // I = immediate (handle, external, int32)
133 // MRI = [register + immediate]
134 // MRR = [register + register]
135 #define TARGET_ADDRESSING_MODE_LIST(V) \
136 V(MRI) /* [%r0 + K] */ \
137 V(MRR) /* [%r0 + %r1] */ \
138 V(Operand2_R_LSL_I) /* %r0 LSL K */ \
139 V(Operand2_R_LSR_I) /* %r0 LSR K */ \
140 V(Operand2_R_ASR_I) /* %r0 ASR K */ \
141 V(Operand2_R_ROR_I) /* %r0 ROR K */ \
142 V(Operand2_R_UXTB) /* %r0 UXTB (unsigned extend byte) */ \
143 V(Operand2_R_UXTH) /* %r0 UXTH (unsigned extend halfword) */
145 } // namespace internal
146 } // namespace compiler
149 #endif // V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_