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_IA32_INSTRUCTION_CODES_IA32_H_
6 #define V8_COMPILER_IA32_INSTRUCTION_CODES_IA32_H_
12 // IA32-specific opcodes that specify which assembly sequence to emit.
13 // Most opcodes specify a single instruction.
14 #define TARGET_ARCH_OPCODE_LIST(V) \
46 V(SSEFloat64ToInt32) \
47 V(SSEFloat64ToUint32) \
48 V(SSEInt32ToFloat64) \
49 V(SSEUint32ToFloat64) \
50 V(SSEFloat64ExtractLowWord32) \
51 V(SSEFloat64ExtractHighWord32) \
52 V(SSEFloat64InsertLowWord32) \
53 V(SSEFloat64InsertHighWord32) \
54 V(SSEFloat64LoadLowWord32) \
72 V(IA32StoreWriteBarrier) \
76 // Addressing modes represent the "shape" of inputs to an instruction.
77 // Many instructions support multiple addressing modes. Addressing modes
78 // are encoded into the InstructionCode of the instruction and tell the
79 // code generator after register allocation which assembler method to call.
81 // We use the following local notation for addressing modes:
85 // N = index register * N for N in {1, 2, 4, 8}
86 // I = immediate displacement (int32_t)
88 #define TARGET_ADDRESSING_MODE_LIST(V) \
90 V(MRI) /* [%r1 + K] */ \
91 V(MR1) /* [%r1 + %r2*1 ] */ \
92 V(MR2) /* [%r1 + %r2*2 ] */ \
93 V(MR4) /* [%r1 + %r2*4 ] */ \
94 V(MR8) /* [%r1 + %r2*8 ] */ \
95 V(MR1I) /* [%r1 + %r2*1 + K] */ \
96 V(MR2I) /* [%r1 + %r2*2 + K] */ \
97 V(MR4I) /* [%r1 + %r2*3 + K] */ \
98 V(MR8I) /* [%r1 + %r2*4 + K] */ \
99 V(M1) /* [ %r2*1 ] */ \
100 V(M2) /* [ %r2*2 ] */ \
101 V(M4) /* [ %r2*4 ] */ \
102 V(M8) /* [ %r2*8 ] */ \
103 V(M1I) /* [ %r2*1 + K] */ \
104 V(M2I) /* [ %r2*2 + K] */ \
105 V(M4I) /* [ %r2*4 + K] */ \
106 V(M8I) /* [ %r2*8 + K] */ \
109 } // namespace compiler
110 } // namespace internal
113 #endif // V8_COMPILER_IA32_INSTRUCTION_CODES_IA32_H_