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) \
77 V(Arm64TestAndBranch32) \
78 V(Arm64TestAndBranch) \
79 V(Arm64CompareAndBranch32) \
102 V(Arm64Float64Sqrt) \
103 V(Arm64Float64RoundDown) \
104 V(Arm64Float64RoundTiesAway) \
105 V(Arm64Float64RoundTruncate) \
106 V(Arm64Float64RoundUp) \
107 V(Arm64Float32ToFloat64) \
108 V(Arm64Float64ToFloat32) \
109 V(Arm64Float64ToInt32) \
110 V(Arm64Float64ToUint32) \
111 V(Arm64Int32ToFloat64) \
112 V(Arm64Uint32ToFloat64) \
113 V(Arm64Float64ExtractLowWord32) \
114 V(Arm64Float64ExtractHighWord32) \
115 V(Arm64Float64InsertLowWord32) \
116 V(Arm64Float64InsertHighWord32) \
117 V(Arm64Float64MoveU64) \
118 V(Arm64U64MoveFloat64) \
133 V(Arm64StoreWriteBarrier)
136 // Addressing modes represent the "shape" of inputs to an instruction.
137 // Many instructions support multiple addressing modes. Addressing modes
138 // are encoded into the InstructionCode of the instruction and tell the
139 // code generator after register allocation which assembler method to call.
141 // We use the following local notation for addressing modes:
144 // O = register or stack slot
145 // D = double register
146 // I = immediate (handle, external, int32)
147 // MRI = [register + immediate]
148 // MRR = [register + register]
149 #define TARGET_ADDRESSING_MODE_LIST(V) \
150 V(MRI) /* [%r0 + K] */ \
151 V(MRR) /* [%r0 + %r1] */ \
152 V(Operand2_R_LSL_I) /* %r0 LSL K */ \
153 V(Operand2_R_LSR_I) /* %r0 LSR K */ \
154 V(Operand2_R_ASR_I) /* %r0 ASR K */ \
155 V(Operand2_R_ROR_I) /* %r0 ROR K */ \
156 V(Operand2_R_UXTB) /* %r0 UXTB (unsigned extend byte) */ \
157 V(Operand2_R_UXTH) /* %r0 UXTH (unsigned extend halfword) */ \
158 V(Operand2_R_SXTB) /* %r0 SXTB (signed extend byte) */ \
159 V(Operand2_R_SXTH) /* %r0 SXTH (signed extend halfword) */
161 } // namespace compiler
162 } // namespace internal
165 #endif // V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_