File: instruction-codes-s390.h

package info (click to toggle)
nodejs 4.8.2~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 62,476 kB
  • ctags: 111,183
  • sloc: cpp: 661,544; ansic: 31,406; python: 23,073; makefile: 1,418; sh: 1,384; perl: 255; lisp: 222; ruby: 76; xml: 50
file content (127 lines) | stat: -rw-r--r-- 4,625 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_COMPILER_S390_INSTRUCTION_CODES_S390_H_
#define V8_COMPILER_S390_INSTRUCTION_CODES_S390_H_

namespace v8 {
namespace internal {
namespace compiler {

// S390-specific opcodes that specify which assembly sequence to emit.
// Most opcodes specify a single instruction.
#define TARGET_ARCH_OPCODE_LIST(V) \
  V(S390_And)                       \
  V(S390_AndComplement)             \
  V(S390_Or)                        \
  V(S390_OrComplement)              \
  V(S390_Xor)                       \
  V(S390_ShiftLeft32)               \
  V(S390_ShiftLeft64)               \
  V(S390_ShiftRight32)              \
  V(S390_ShiftRight64)              \
  V(S390_ShiftRightAlg32)           \
  V(S390_ShiftRightAlg64)           \
  V(S390_RotRight32)                \
  V(S390_RotRight64)                \
  V(S390_Not)                       \
  V(S390_RotLeftAndMask32)          \
  V(S390_RotLeftAndClear64)         \
  V(S390_RotLeftAndClearLeft64)     \
  V(S390_RotLeftAndClearRight64)    \
  V(S390_Add)                       \
  V(S390_AddWithOverflow32)         \
  V(S390_AddDouble)                 \
  V(S390_Sub)                       \
  V(S390_SubWithOverflow32)         \
  V(S390_SubDouble)                 \
  V(S390_Mul32)                     \
  V(S390_Mul64)                     \
  V(S390_MulHigh32)                 \
  V(S390_MulHighU32)                \
  V(S390_MulDouble)                 \
  V(S390_Div32)                     \
  V(S390_Div64)                     \
  V(S390_DivU32)                    \
  V(S390_DivU64)                    \
  V(S390_DivDouble)                 \
  V(S390_Mod32)                     \
  V(S390_Mod64)                     \
  V(S390_ModU32)                    \
  V(S390_ModU64)                    \
  V(S390_ModDouble)                 \
  V(S390_Neg)                       \
  V(S390_NegDouble)                 \
  V(S390_SqrtDouble)                \
  V(S390_FloorDouble)               \
  V(S390_CeilDouble)                \
  V(S390_TruncateDouble)            \
  V(S390_RoundDouble)               \
  V(S390_MaxDouble)                 \
  V(S390_MinDouble)                 \
  V(S390_AbsDouble)                 \
  V(S390_Cntlz32)                   \
  V(S390_Cmp32)                     \
  V(S390_Cmp64)                     \
  V(S390_CmpDouble)                 \
  V(S390_Tst32)                     \
  V(S390_Tst64)                     \
  V(S390_Push)                      \
  V(S390_PushFrame)                 \
  V(S390_StoreToStackSlot)          \
  V(S390_ExtendSignWord8)           \
  V(S390_ExtendSignWord16)          \
  V(S390_ExtendSignWord32)          \
  V(S390_Uint32ToUint64)            \
  V(S390_Int64ToInt32)              \
  V(S390_Int32ToDouble)             \
  V(S390_Uint32ToDouble)            \
  V(S390_Float32ToDouble)           \
  V(S390_DoubleToInt32)             \
  V(S390_DoubleToUint32)            \
  V(S390_DoubleToFloat32)           \
  V(S390_DoubleExtractLowWord32)    \
  V(S390_DoubleExtractHighWord32)   \
  V(S390_DoubleInsertLowWord32)     \
  V(S390_DoubleInsertHighWord32)    \
  V(S390_DoubleConstruct)           \
  V(S390_LoadWordS8)                \
  V(S390_LoadWordU8)                \
  V(S390_LoadWordS16)               \
  V(S390_LoadWordU16)               \
  V(S390_LoadWordS32)               \
  V(S390_LoadWord64)                \
  V(S390_LoadFloat32)               \
  V(S390_LoadDouble)                \
  V(S390_StoreWord8)                \
  V(S390_StoreWord16)               \
  V(S390_StoreWord32)               \
  V(S390_StoreWord64)               \
  V(S390_StoreFloat32)              \
  V(S390_StoreDouble)               \
  V(S390_StoreWriteBarrier)


// Addressing modes represent the "shape" of inputs to an instruction.
// Many instructions support multiple addressing modes. Addressing modes
// are encoded into the InstructionCode of the instruction and tell the
// code generator after register allocation which assembler method to call.
//
// We use the following local notation for addressing modes:
//
// R = register
// O = register or stack slot
// D = double register
// I = immediate (handle, external, int32)
// MRI = [register + immediate]
// MRR = [register + register]
#define TARGET_ADDRESSING_MODE_LIST(V) \
  V(MRI) /* [%r0 + K] */               \
  V(MRR) /* [%r0 + %r1] */

}  // namespace compiler
}  // namespace internal
}  // namespace v8

#endif  // V8_COMPILER_S390_INSTRUCTION_CODES_S390_H_