11cb0ef41Sopenharmony_ci// Copyright 2014 the V8 project authors. All rights reserved.
21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
31cb0ef41Sopenharmony_ci// found in the LICENSE file.
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci#ifndef V8_COMPILER_BACKEND_X64_INSTRUCTION_CODES_X64_H_
61cb0ef41Sopenharmony_ci#define V8_COMPILER_BACKEND_X64_INSTRUCTION_CODES_X64_H_
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_cinamespace v8 {
91cb0ef41Sopenharmony_cinamespace internal {
101cb0ef41Sopenharmony_cinamespace compiler {
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_ci// X64-specific opcodes that specify which assembly sequence to emit.
131cb0ef41Sopenharmony_ci// Most opcodes specify a single instruction.
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ci// Opcodes that support a MemoryAccessMode.
161cb0ef41Sopenharmony_ci#define TARGET_ARCH_OPCODE_WITH_MEMORY_ACCESS_MODE_LIST(V) \
171cb0ef41Sopenharmony_ci  V(X64F64x2PromoteLowF32x4)                               \
181cb0ef41Sopenharmony_ci  V(X64Movb)                                               \
191cb0ef41Sopenharmony_ci  V(X64Movdqu)                                             \
201cb0ef41Sopenharmony_ci  V(X64Movl)                                               \
211cb0ef41Sopenharmony_ci  V(X64Movq)                                               \
221cb0ef41Sopenharmony_ci  V(X64Movsd)                                              \
231cb0ef41Sopenharmony_ci  V(X64Movss)                                              \
241cb0ef41Sopenharmony_ci  V(X64Movsxbl)                                            \
251cb0ef41Sopenharmony_ci  V(X64Movsxbq)                                            \
261cb0ef41Sopenharmony_ci  V(X64Movsxlq)                                            \
271cb0ef41Sopenharmony_ci  V(X64Movsxwl)                                            \
281cb0ef41Sopenharmony_ci  V(X64Movsxwq)                                            \
291cb0ef41Sopenharmony_ci  V(X64Movw)                                               \
301cb0ef41Sopenharmony_ci  V(X64Movzxbl)                                            \
311cb0ef41Sopenharmony_ci  V(X64Movzxbq)                                            \
321cb0ef41Sopenharmony_ci  V(X64Movzxwl)                                            \
331cb0ef41Sopenharmony_ci  V(X64Movzxwq)                                            \
341cb0ef41Sopenharmony_ci  V(X64Pextrb)                                             \
351cb0ef41Sopenharmony_ci  V(X64Pextrw)                                             \
361cb0ef41Sopenharmony_ci  V(X64Pinsrb)                                             \
371cb0ef41Sopenharmony_ci  V(X64Pinsrd)                                             \
381cb0ef41Sopenharmony_ci  V(X64Pinsrq)                                             \
391cb0ef41Sopenharmony_ci  V(X64Pinsrw)                                             \
401cb0ef41Sopenharmony_ci  V(X64S128Load16Splat)                                    \
411cb0ef41Sopenharmony_ci  V(X64S128Load16x4S)                                      \
421cb0ef41Sopenharmony_ci  V(X64S128Load16x4U)                                      \
431cb0ef41Sopenharmony_ci  V(X64S128Load32Splat)                                    \
441cb0ef41Sopenharmony_ci  V(X64S128Load32x2S)                                      \
451cb0ef41Sopenharmony_ci  V(X64S128Load32x2U)                                      \
461cb0ef41Sopenharmony_ci  V(X64S128Load64Splat)                                    \
471cb0ef41Sopenharmony_ci  V(X64S128Load8Splat)                                     \
481cb0ef41Sopenharmony_ci  V(X64S128Load8x8S)                                       \
491cb0ef41Sopenharmony_ci  V(X64S128Load8x8U)                                       \
501cb0ef41Sopenharmony_ci  V(X64S128Store32Lane)                                    \
511cb0ef41Sopenharmony_ci  V(X64S128Store64Lane)
521cb0ef41Sopenharmony_ci
531cb0ef41Sopenharmony_ci#define TARGET_ARCH_OPCODE_LIST(V)                   \
541cb0ef41Sopenharmony_ci  TARGET_ARCH_OPCODE_WITH_MEMORY_ACCESS_MODE_LIST(V) \
551cb0ef41Sopenharmony_ci  V(X64Add)                                          \
561cb0ef41Sopenharmony_ci  V(X64Add32)                                        \
571cb0ef41Sopenharmony_ci  V(X64And)                                          \
581cb0ef41Sopenharmony_ci  V(X64And32)                                        \
591cb0ef41Sopenharmony_ci  V(X64Cmp)                                          \
601cb0ef41Sopenharmony_ci  V(X64Cmp32)                                        \
611cb0ef41Sopenharmony_ci  V(X64Cmp16)                                        \
621cb0ef41Sopenharmony_ci  V(X64Cmp8)                                         \
631cb0ef41Sopenharmony_ci  V(X64Test)                                         \
641cb0ef41Sopenharmony_ci  V(X64Test32)                                       \
651cb0ef41Sopenharmony_ci  V(X64Test16)                                       \
661cb0ef41Sopenharmony_ci  V(X64Test8)                                        \
671cb0ef41Sopenharmony_ci  V(X64Or)                                           \
681cb0ef41Sopenharmony_ci  V(X64Or32)                                         \
691cb0ef41Sopenharmony_ci  V(X64Xor)                                          \
701cb0ef41Sopenharmony_ci  V(X64Xor32)                                        \
711cb0ef41Sopenharmony_ci  V(X64Sub)                                          \
721cb0ef41Sopenharmony_ci  V(X64Sub32)                                        \
731cb0ef41Sopenharmony_ci  V(X64Imul)                                         \
741cb0ef41Sopenharmony_ci  V(X64Imul32)                                       \
751cb0ef41Sopenharmony_ci  V(X64ImulHigh32)                                   \
761cb0ef41Sopenharmony_ci  V(X64UmulHigh32)                                   \
771cb0ef41Sopenharmony_ci  V(X64Idiv)                                         \
781cb0ef41Sopenharmony_ci  V(X64Idiv32)                                       \
791cb0ef41Sopenharmony_ci  V(X64Udiv)                                         \
801cb0ef41Sopenharmony_ci  V(X64Udiv32)                                       \
811cb0ef41Sopenharmony_ci  V(X64Not)                                          \
821cb0ef41Sopenharmony_ci  V(X64Not32)                                        \
831cb0ef41Sopenharmony_ci  V(X64Neg)                                          \
841cb0ef41Sopenharmony_ci  V(X64Neg32)                                        \
851cb0ef41Sopenharmony_ci  V(X64Shl)                                          \
861cb0ef41Sopenharmony_ci  V(X64Shl32)                                        \
871cb0ef41Sopenharmony_ci  V(X64Shr)                                          \
881cb0ef41Sopenharmony_ci  V(X64Shr32)                                        \
891cb0ef41Sopenharmony_ci  V(X64Sar)                                          \
901cb0ef41Sopenharmony_ci  V(X64Sar32)                                        \
911cb0ef41Sopenharmony_ci  V(X64Rol)                                          \
921cb0ef41Sopenharmony_ci  V(X64Rol32)                                        \
931cb0ef41Sopenharmony_ci  V(X64Ror)                                          \
941cb0ef41Sopenharmony_ci  V(X64Ror32)                                        \
951cb0ef41Sopenharmony_ci  V(X64Lzcnt)                                        \
961cb0ef41Sopenharmony_ci  V(X64Lzcnt32)                                      \
971cb0ef41Sopenharmony_ci  V(X64Tzcnt)                                        \
981cb0ef41Sopenharmony_ci  V(X64Tzcnt32)                                      \
991cb0ef41Sopenharmony_ci  V(X64Popcnt)                                       \
1001cb0ef41Sopenharmony_ci  V(X64Popcnt32)                                     \
1011cb0ef41Sopenharmony_ci  V(X64Bswap)                                        \
1021cb0ef41Sopenharmony_ci  V(X64Bswap32)                                      \
1031cb0ef41Sopenharmony_ci  V(X64MFence)                                       \
1041cb0ef41Sopenharmony_ci  V(X64LFence)                                       \
1051cb0ef41Sopenharmony_ci  V(SSEFloat32Cmp)                                   \
1061cb0ef41Sopenharmony_ci  V(SSEFloat32Add)                                   \
1071cb0ef41Sopenharmony_ci  V(SSEFloat32Sub)                                   \
1081cb0ef41Sopenharmony_ci  V(SSEFloat32Mul)                                   \
1091cb0ef41Sopenharmony_ci  V(SSEFloat32Div)                                   \
1101cb0ef41Sopenharmony_ci  V(SSEFloat32Sqrt)                                  \
1111cb0ef41Sopenharmony_ci  V(SSEFloat32ToFloat64)                             \
1121cb0ef41Sopenharmony_ci  V(SSEFloat32ToInt32)                               \
1131cb0ef41Sopenharmony_ci  V(SSEFloat32ToUint32)                              \
1141cb0ef41Sopenharmony_ci  V(SSEFloat32Round)                                 \
1151cb0ef41Sopenharmony_ci  V(SSEFloat64Cmp)                                   \
1161cb0ef41Sopenharmony_ci  V(SSEFloat64Add)                                   \
1171cb0ef41Sopenharmony_ci  V(SSEFloat64Sub)                                   \
1181cb0ef41Sopenharmony_ci  V(SSEFloat64Mul)                                   \
1191cb0ef41Sopenharmony_ci  V(SSEFloat64Div)                                   \
1201cb0ef41Sopenharmony_ci  V(SSEFloat64Mod)                                   \
1211cb0ef41Sopenharmony_ci  V(SSEFloat64Sqrt)                                  \
1221cb0ef41Sopenharmony_ci  V(SSEFloat64Round)                                 \
1231cb0ef41Sopenharmony_ci  V(SSEFloat32Max)                                   \
1241cb0ef41Sopenharmony_ci  V(SSEFloat64Max)                                   \
1251cb0ef41Sopenharmony_ci  V(SSEFloat32Min)                                   \
1261cb0ef41Sopenharmony_ci  V(SSEFloat64Min)                                   \
1271cb0ef41Sopenharmony_ci  V(SSEFloat64ToFloat32)                             \
1281cb0ef41Sopenharmony_ci  V(SSEFloat64ToInt32)                               \
1291cb0ef41Sopenharmony_ci  V(SSEFloat64ToUint32)                              \
1301cb0ef41Sopenharmony_ci  V(SSEFloat32ToInt64)                               \
1311cb0ef41Sopenharmony_ci  V(SSEFloat64ToInt64)                               \
1321cb0ef41Sopenharmony_ci  V(SSEFloat32ToUint64)                              \
1331cb0ef41Sopenharmony_ci  V(SSEFloat64ToUint64)                              \
1341cb0ef41Sopenharmony_ci  V(SSEInt32ToFloat64)                               \
1351cb0ef41Sopenharmony_ci  V(SSEInt32ToFloat32)                               \
1361cb0ef41Sopenharmony_ci  V(SSEInt64ToFloat32)                               \
1371cb0ef41Sopenharmony_ci  V(SSEInt64ToFloat64)                               \
1381cb0ef41Sopenharmony_ci  V(SSEUint64ToFloat32)                              \
1391cb0ef41Sopenharmony_ci  V(SSEUint64ToFloat64)                              \
1401cb0ef41Sopenharmony_ci  V(SSEUint32ToFloat64)                              \
1411cb0ef41Sopenharmony_ci  V(SSEUint32ToFloat32)                              \
1421cb0ef41Sopenharmony_ci  V(SSEFloat64ExtractLowWord32)                      \
1431cb0ef41Sopenharmony_ci  V(SSEFloat64ExtractHighWord32)                     \
1441cb0ef41Sopenharmony_ci  V(SSEFloat64InsertLowWord32)                       \
1451cb0ef41Sopenharmony_ci  V(SSEFloat64InsertHighWord32)                      \
1461cb0ef41Sopenharmony_ci  V(SSEFloat64LoadLowWord32)                         \
1471cb0ef41Sopenharmony_ci  V(SSEFloat64SilenceNaN)                            \
1481cb0ef41Sopenharmony_ci  V(AVXFloat32Cmp)                                   \
1491cb0ef41Sopenharmony_ci  V(AVXFloat32Add)                                   \
1501cb0ef41Sopenharmony_ci  V(AVXFloat32Sub)                                   \
1511cb0ef41Sopenharmony_ci  V(AVXFloat32Mul)                                   \
1521cb0ef41Sopenharmony_ci  V(AVXFloat32Div)                                   \
1531cb0ef41Sopenharmony_ci  V(AVXFloat64Cmp)                                   \
1541cb0ef41Sopenharmony_ci  V(AVXFloat64Add)                                   \
1551cb0ef41Sopenharmony_ci  V(AVXFloat64Sub)                                   \
1561cb0ef41Sopenharmony_ci  V(AVXFloat64Mul)                                   \
1571cb0ef41Sopenharmony_ci  V(AVXFloat64Div)                                   \
1581cb0ef41Sopenharmony_ci  V(X64Float64Abs)                                   \
1591cb0ef41Sopenharmony_ci  V(X64Float64Neg)                                   \
1601cb0ef41Sopenharmony_ci  V(X64Float32Abs)                                   \
1611cb0ef41Sopenharmony_ci  V(X64Float32Neg)                                   \
1621cb0ef41Sopenharmony_ci  V(X64MovqDecompressTaggedSigned)                   \
1631cb0ef41Sopenharmony_ci  V(X64MovqDecompressTaggedPointer)                  \
1641cb0ef41Sopenharmony_ci  V(X64MovqDecompressAnyTagged)                      \
1651cb0ef41Sopenharmony_ci  V(X64MovqCompressTagged)                           \
1661cb0ef41Sopenharmony_ci  V(X64MovqEncodeSandboxedPointer)                   \
1671cb0ef41Sopenharmony_ci  V(X64MovqDecodeSandboxedPointer)                   \
1681cb0ef41Sopenharmony_ci  V(X64BitcastFI)                                    \
1691cb0ef41Sopenharmony_ci  V(X64BitcastDL)                                    \
1701cb0ef41Sopenharmony_ci  V(X64BitcastIF)                                    \
1711cb0ef41Sopenharmony_ci  V(X64BitcastLD)                                    \
1721cb0ef41Sopenharmony_ci  V(X64Lea32)                                        \
1731cb0ef41Sopenharmony_ci  V(X64Lea)                                          \
1741cb0ef41Sopenharmony_ci  V(X64Dec32)                                        \
1751cb0ef41Sopenharmony_ci  V(X64Inc32)                                        \
1761cb0ef41Sopenharmony_ci  V(X64Push)                                         \
1771cb0ef41Sopenharmony_ci  V(X64Poke)                                         \
1781cb0ef41Sopenharmony_ci  V(X64Peek)                                         \
1791cb0ef41Sopenharmony_ci  V(X64Cvttps2dq)                                    \
1801cb0ef41Sopenharmony_ci  V(X64Cvttpd2dq)                                    \
1811cb0ef41Sopenharmony_ci  V(X64I32x4TruncF64x2UZero)                         \
1821cb0ef41Sopenharmony_ci  V(X64I32x4TruncF32x4U)                             \
1831cb0ef41Sopenharmony_ci  V(X64F64x2Splat)                                   \
1841cb0ef41Sopenharmony_ci  V(X64F64x2ExtractLane)                             \
1851cb0ef41Sopenharmony_ci  V(X64F64x2ReplaceLane)                             \
1861cb0ef41Sopenharmony_ci  V(X64F64x2Abs)                                     \
1871cb0ef41Sopenharmony_ci  V(X64F64x2Neg)                                     \
1881cb0ef41Sopenharmony_ci  V(X64F64x2Sqrt)                                    \
1891cb0ef41Sopenharmony_ci  V(X64F64x2Add)                                     \
1901cb0ef41Sopenharmony_ci  V(X64F64x2Sub)                                     \
1911cb0ef41Sopenharmony_ci  V(X64F64x2Mul)                                     \
1921cb0ef41Sopenharmony_ci  V(X64F64x2Div)                                     \
1931cb0ef41Sopenharmony_ci  V(X64F64x2Min)                                     \
1941cb0ef41Sopenharmony_ci  V(X64F64x2Max)                                     \
1951cb0ef41Sopenharmony_ci  V(X64F64x2Eq)                                      \
1961cb0ef41Sopenharmony_ci  V(X64F64x2Ne)                                      \
1971cb0ef41Sopenharmony_ci  V(X64F64x2Lt)                                      \
1981cb0ef41Sopenharmony_ci  V(X64F64x2Le)                                      \
1991cb0ef41Sopenharmony_ci  V(X64F64x2Qfma)                                    \
2001cb0ef41Sopenharmony_ci  V(X64F64x2Qfms)                                    \
2011cb0ef41Sopenharmony_ci  V(X64Minpd)                                        \
2021cb0ef41Sopenharmony_ci  V(X64Maxpd)                                        \
2031cb0ef41Sopenharmony_ci  V(X64F64x2Round)                                   \
2041cb0ef41Sopenharmony_ci  V(X64F64x2ConvertLowI32x4S)                        \
2051cb0ef41Sopenharmony_ci  V(X64F64x2ConvertLowI32x4U)                        \
2061cb0ef41Sopenharmony_ci  V(X64F32x4Splat)                                   \
2071cb0ef41Sopenharmony_ci  V(X64F32x4ExtractLane)                             \
2081cb0ef41Sopenharmony_ci  V(X64F32x4ReplaceLane)                             \
2091cb0ef41Sopenharmony_ci  V(X64F32x4SConvertI32x4)                           \
2101cb0ef41Sopenharmony_ci  V(X64F32x4UConvertI32x4)                           \
2111cb0ef41Sopenharmony_ci  V(X64F32x4Abs)                                     \
2121cb0ef41Sopenharmony_ci  V(X64F32x4Neg)                                     \
2131cb0ef41Sopenharmony_ci  V(X64F32x4Sqrt)                                    \
2141cb0ef41Sopenharmony_ci  V(X64F32x4RecipApprox)                             \
2151cb0ef41Sopenharmony_ci  V(X64F32x4RecipSqrtApprox)                         \
2161cb0ef41Sopenharmony_ci  V(X64F32x4Add)                                     \
2171cb0ef41Sopenharmony_ci  V(X64F32x4Sub)                                     \
2181cb0ef41Sopenharmony_ci  V(X64F32x4Mul)                                     \
2191cb0ef41Sopenharmony_ci  V(X64F32x4Div)                                     \
2201cb0ef41Sopenharmony_ci  V(X64F32x4Min)                                     \
2211cb0ef41Sopenharmony_ci  V(X64F32x4Max)                                     \
2221cb0ef41Sopenharmony_ci  V(X64F32x4Eq)                                      \
2231cb0ef41Sopenharmony_ci  V(X64F32x4Ne)                                      \
2241cb0ef41Sopenharmony_ci  V(X64F32x4Lt)                                      \
2251cb0ef41Sopenharmony_ci  V(X64F32x4Le)                                      \
2261cb0ef41Sopenharmony_ci  V(X64F32x4Qfma)                                    \
2271cb0ef41Sopenharmony_ci  V(X64F32x4Qfms)                                    \
2281cb0ef41Sopenharmony_ci  V(X64Minps)                                        \
2291cb0ef41Sopenharmony_ci  V(X64Maxps)                                        \
2301cb0ef41Sopenharmony_ci  V(X64F32x4Round)                                   \
2311cb0ef41Sopenharmony_ci  V(X64F32x4DemoteF64x2Zero)                         \
2321cb0ef41Sopenharmony_ci  V(X64I64x2Splat)                                   \
2331cb0ef41Sopenharmony_ci  V(X64I64x2ExtractLane)                             \
2341cb0ef41Sopenharmony_ci  V(X64I64x2Abs)                                     \
2351cb0ef41Sopenharmony_ci  V(X64I64x2Neg)                                     \
2361cb0ef41Sopenharmony_ci  V(X64I64x2BitMask)                                 \
2371cb0ef41Sopenharmony_ci  V(X64I64x2Shl)                                     \
2381cb0ef41Sopenharmony_ci  V(X64I64x2ShrS)                                    \
2391cb0ef41Sopenharmony_ci  V(X64I64x2Add)                                     \
2401cb0ef41Sopenharmony_ci  V(X64I64x2Sub)                                     \
2411cb0ef41Sopenharmony_ci  V(X64I64x2Mul)                                     \
2421cb0ef41Sopenharmony_ci  V(X64I64x2Eq)                                      \
2431cb0ef41Sopenharmony_ci  V(X64I64x2GtS)                                     \
2441cb0ef41Sopenharmony_ci  V(X64I64x2GeS)                                     \
2451cb0ef41Sopenharmony_ci  V(X64I64x2Ne)                                      \
2461cb0ef41Sopenharmony_ci  V(X64I64x2ShrU)                                    \
2471cb0ef41Sopenharmony_ci  V(X64I64x2ExtMulLowI32x4S)                         \
2481cb0ef41Sopenharmony_ci  V(X64I64x2ExtMulHighI32x4S)                        \
2491cb0ef41Sopenharmony_ci  V(X64I64x2ExtMulLowI32x4U)                         \
2501cb0ef41Sopenharmony_ci  V(X64I64x2ExtMulHighI32x4U)                        \
2511cb0ef41Sopenharmony_ci  V(X64I64x2SConvertI32x4Low)                        \
2521cb0ef41Sopenharmony_ci  V(X64I64x2SConvertI32x4High)                       \
2531cb0ef41Sopenharmony_ci  V(X64I64x2UConvertI32x4Low)                        \
2541cb0ef41Sopenharmony_ci  V(X64I64x2UConvertI32x4High)                       \
2551cb0ef41Sopenharmony_ci  V(X64I32x4Splat)                                   \
2561cb0ef41Sopenharmony_ci  V(X64I32x4ExtractLane)                             \
2571cb0ef41Sopenharmony_ci  V(X64I32x4SConvertF32x4)                           \
2581cb0ef41Sopenharmony_ci  V(X64I32x4SConvertI16x8Low)                        \
2591cb0ef41Sopenharmony_ci  V(X64I32x4SConvertI16x8High)                       \
2601cb0ef41Sopenharmony_ci  V(X64I32x4Neg)                                     \
2611cb0ef41Sopenharmony_ci  V(X64I32x4Shl)                                     \
2621cb0ef41Sopenharmony_ci  V(X64I32x4ShrS)                                    \
2631cb0ef41Sopenharmony_ci  V(X64I32x4Add)                                     \
2641cb0ef41Sopenharmony_ci  V(X64I32x4Sub)                                     \
2651cb0ef41Sopenharmony_ci  V(X64I32x4Mul)                                     \
2661cb0ef41Sopenharmony_ci  V(X64I32x4MinS)                                    \
2671cb0ef41Sopenharmony_ci  V(X64I32x4MaxS)                                    \
2681cb0ef41Sopenharmony_ci  V(X64I32x4Eq)                                      \
2691cb0ef41Sopenharmony_ci  V(X64I32x4Ne)                                      \
2701cb0ef41Sopenharmony_ci  V(X64I32x4GtS)                                     \
2711cb0ef41Sopenharmony_ci  V(X64I32x4GeS)                                     \
2721cb0ef41Sopenharmony_ci  V(X64I32x4UConvertF32x4)                           \
2731cb0ef41Sopenharmony_ci  V(X64I32x4UConvertI16x8Low)                        \
2741cb0ef41Sopenharmony_ci  V(X64I32x4UConvertI16x8High)                       \
2751cb0ef41Sopenharmony_ci  V(X64I32x4ShrU)                                    \
2761cb0ef41Sopenharmony_ci  V(X64I32x4MinU)                                    \
2771cb0ef41Sopenharmony_ci  V(X64I32x4MaxU)                                    \
2781cb0ef41Sopenharmony_ci  V(X64I32x4GtU)                                     \
2791cb0ef41Sopenharmony_ci  V(X64I32x4GeU)                                     \
2801cb0ef41Sopenharmony_ci  V(X64I32x4Abs)                                     \
2811cb0ef41Sopenharmony_ci  V(X64I32x4BitMask)                                 \
2821cb0ef41Sopenharmony_ci  V(X64I32x4DotI16x8S)                               \
2831cb0ef41Sopenharmony_ci  V(X64I32x4ExtMulLowI16x8S)                         \
2841cb0ef41Sopenharmony_ci  V(X64I32x4ExtMulHighI16x8S)                        \
2851cb0ef41Sopenharmony_ci  V(X64I32x4ExtMulLowI16x8U)                         \
2861cb0ef41Sopenharmony_ci  V(X64I32x4ExtMulHighI16x8U)                        \
2871cb0ef41Sopenharmony_ci  V(X64I32x4ExtAddPairwiseI16x8S)                    \
2881cb0ef41Sopenharmony_ci  V(X64I32x4ExtAddPairwiseI16x8U)                    \
2891cb0ef41Sopenharmony_ci  V(X64I32x4TruncSatF64x2SZero)                      \
2901cb0ef41Sopenharmony_ci  V(X64I32x4TruncSatF64x2UZero)                      \
2911cb0ef41Sopenharmony_ci  V(X64I16x8Splat)                                   \
2921cb0ef41Sopenharmony_ci  V(X64I16x8ExtractLaneS)                            \
2931cb0ef41Sopenharmony_ci  V(X64I16x8SConvertI8x16Low)                        \
2941cb0ef41Sopenharmony_ci  V(X64I16x8SConvertI8x16High)                       \
2951cb0ef41Sopenharmony_ci  V(X64I16x8Neg)                                     \
2961cb0ef41Sopenharmony_ci  V(X64I16x8Shl)                                     \
2971cb0ef41Sopenharmony_ci  V(X64I16x8ShrS)                                    \
2981cb0ef41Sopenharmony_ci  V(X64I16x8SConvertI32x4)                           \
2991cb0ef41Sopenharmony_ci  V(X64I16x8Add)                                     \
3001cb0ef41Sopenharmony_ci  V(X64I16x8AddSatS)                                 \
3011cb0ef41Sopenharmony_ci  V(X64I16x8Sub)                                     \
3021cb0ef41Sopenharmony_ci  V(X64I16x8SubSatS)                                 \
3031cb0ef41Sopenharmony_ci  V(X64I16x8Mul)                                     \
3041cb0ef41Sopenharmony_ci  V(X64I16x8MinS)                                    \
3051cb0ef41Sopenharmony_ci  V(X64I16x8MaxS)                                    \
3061cb0ef41Sopenharmony_ci  V(X64I16x8Eq)                                      \
3071cb0ef41Sopenharmony_ci  V(X64I16x8Ne)                                      \
3081cb0ef41Sopenharmony_ci  V(X64I16x8GtS)                                     \
3091cb0ef41Sopenharmony_ci  V(X64I16x8GeS)                                     \
3101cb0ef41Sopenharmony_ci  V(X64I16x8UConvertI8x16Low)                        \
3111cb0ef41Sopenharmony_ci  V(X64I16x8UConvertI8x16High)                       \
3121cb0ef41Sopenharmony_ci  V(X64I16x8ShrU)                                    \
3131cb0ef41Sopenharmony_ci  V(X64I16x8UConvertI32x4)                           \
3141cb0ef41Sopenharmony_ci  V(X64I16x8AddSatU)                                 \
3151cb0ef41Sopenharmony_ci  V(X64I16x8SubSatU)                                 \
3161cb0ef41Sopenharmony_ci  V(X64I16x8MinU)                                    \
3171cb0ef41Sopenharmony_ci  V(X64I16x8MaxU)                                    \
3181cb0ef41Sopenharmony_ci  V(X64I16x8GtU)                                     \
3191cb0ef41Sopenharmony_ci  V(X64I16x8GeU)                                     \
3201cb0ef41Sopenharmony_ci  V(X64I16x8RoundingAverageU)                        \
3211cb0ef41Sopenharmony_ci  V(X64I16x8Abs)                                     \
3221cb0ef41Sopenharmony_ci  V(X64I16x8BitMask)                                 \
3231cb0ef41Sopenharmony_ci  V(X64I16x8ExtMulLowI8x16S)                         \
3241cb0ef41Sopenharmony_ci  V(X64I16x8ExtMulHighI8x16S)                        \
3251cb0ef41Sopenharmony_ci  V(X64I16x8ExtMulLowI8x16U)                         \
3261cb0ef41Sopenharmony_ci  V(X64I16x8ExtMulHighI8x16U)                        \
3271cb0ef41Sopenharmony_ci  V(X64I16x8ExtAddPairwiseI8x16S)                    \
3281cb0ef41Sopenharmony_ci  V(X64I16x8ExtAddPairwiseI8x16U)                    \
3291cb0ef41Sopenharmony_ci  V(X64I16x8Q15MulRSatS)                             \
3301cb0ef41Sopenharmony_ci  V(X64I8x16Splat)                                   \
3311cb0ef41Sopenharmony_ci  V(X64I8x16ExtractLaneS)                            \
3321cb0ef41Sopenharmony_ci  V(X64I8x16SConvertI16x8)                           \
3331cb0ef41Sopenharmony_ci  V(X64I8x16Neg)                                     \
3341cb0ef41Sopenharmony_ci  V(X64I8x16Shl)                                     \
3351cb0ef41Sopenharmony_ci  V(X64I8x16ShrS)                                    \
3361cb0ef41Sopenharmony_ci  V(X64I8x16Add)                                     \
3371cb0ef41Sopenharmony_ci  V(X64I8x16AddSatS)                                 \
3381cb0ef41Sopenharmony_ci  V(X64I8x16Sub)                                     \
3391cb0ef41Sopenharmony_ci  V(X64I8x16SubSatS)                                 \
3401cb0ef41Sopenharmony_ci  V(X64I8x16MinS)                                    \
3411cb0ef41Sopenharmony_ci  V(X64I8x16MaxS)                                    \
3421cb0ef41Sopenharmony_ci  V(X64I8x16Eq)                                      \
3431cb0ef41Sopenharmony_ci  V(X64I8x16Ne)                                      \
3441cb0ef41Sopenharmony_ci  V(X64I8x16GtS)                                     \
3451cb0ef41Sopenharmony_ci  V(X64I8x16GeS)                                     \
3461cb0ef41Sopenharmony_ci  V(X64I8x16UConvertI16x8)                           \
3471cb0ef41Sopenharmony_ci  V(X64I8x16AddSatU)                                 \
3481cb0ef41Sopenharmony_ci  V(X64I8x16SubSatU)                                 \
3491cb0ef41Sopenharmony_ci  V(X64I8x16ShrU)                                    \
3501cb0ef41Sopenharmony_ci  V(X64I8x16MinU)                                    \
3511cb0ef41Sopenharmony_ci  V(X64I8x16MaxU)                                    \
3521cb0ef41Sopenharmony_ci  V(X64I8x16GtU)                                     \
3531cb0ef41Sopenharmony_ci  V(X64I8x16GeU)                                     \
3541cb0ef41Sopenharmony_ci  V(X64I8x16RoundingAverageU)                        \
3551cb0ef41Sopenharmony_ci  V(X64I8x16Abs)                                     \
3561cb0ef41Sopenharmony_ci  V(X64I8x16BitMask)                                 \
3571cb0ef41Sopenharmony_ci  V(X64S128Const)                                    \
3581cb0ef41Sopenharmony_ci  V(X64S128Zero)                                     \
3591cb0ef41Sopenharmony_ci  V(X64S128AllOnes)                                  \
3601cb0ef41Sopenharmony_ci  V(X64S128Not)                                      \
3611cb0ef41Sopenharmony_ci  V(X64S128And)                                      \
3621cb0ef41Sopenharmony_ci  V(X64S128Or)                                       \
3631cb0ef41Sopenharmony_ci  V(X64S128Xor)                                      \
3641cb0ef41Sopenharmony_ci  V(X64S128Select)                                   \
3651cb0ef41Sopenharmony_ci  V(X64S128AndNot)                                   \
3661cb0ef41Sopenharmony_ci  V(X64I8x16Swizzle)                                 \
3671cb0ef41Sopenharmony_ci  V(X64I8x16Shuffle)                                 \
3681cb0ef41Sopenharmony_ci  V(X64I8x16Popcnt)                                  \
3691cb0ef41Sopenharmony_ci  V(X64Shufps)                                       \
3701cb0ef41Sopenharmony_ci  V(X64S32x4Rotate)                                  \
3711cb0ef41Sopenharmony_ci  V(X64S32x4Swizzle)                                 \
3721cb0ef41Sopenharmony_ci  V(X64S32x4Shuffle)                                 \
3731cb0ef41Sopenharmony_ci  V(X64S16x8Blend)                                   \
3741cb0ef41Sopenharmony_ci  V(X64S16x8HalfShuffle1)                            \
3751cb0ef41Sopenharmony_ci  V(X64S16x8HalfShuffle2)                            \
3761cb0ef41Sopenharmony_ci  V(X64S8x16Alignr)                                  \
3771cb0ef41Sopenharmony_ci  V(X64S16x8Dup)                                     \
3781cb0ef41Sopenharmony_ci  V(X64S8x16Dup)                                     \
3791cb0ef41Sopenharmony_ci  V(X64S16x8UnzipHigh)                               \
3801cb0ef41Sopenharmony_ci  V(X64S16x8UnzipLow)                                \
3811cb0ef41Sopenharmony_ci  V(X64S8x16UnzipHigh)                               \
3821cb0ef41Sopenharmony_ci  V(X64S8x16UnzipLow)                                \
3831cb0ef41Sopenharmony_ci  V(X64S64x2UnpackHigh)                              \
3841cb0ef41Sopenharmony_ci  V(X64S32x4UnpackHigh)                              \
3851cb0ef41Sopenharmony_ci  V(X64S16x8UnpackHigh)                              \
3861cb0ef41Sopenharmony_ci  V(X64S8x16UnpackHigh)                              \
3871cb0ef41Sopenharmony_ci  V(X64S64x2UnpackLow)                               \
3881cb0ef41Sopenharmony_ci  V(X64S32x4UnpackLow)                               \
3891cb0ef41Sopenharmony_ci  V(X64S16x8UnpackLow)                               \
3901cb0ef41Sopenharmony_ci  V(X64S8x16UnpackLow)                               \
3911cb0ef41Sopenharmony_ci  V(X64S8x16TransposeLow)                            \
3921cb0ef41Sopenharmony_ci  V(X64S8x16TransposeHigh)                           \
3931cb0ef41Sopenharmony_ci  V(X64S8x8Reverse)                                  \
3941cb0ef41Sopenharmony_ci  V(X64S8x4Reverse)                                  \
3951cb0ef41Sopenharmony_ci  V(X64S8x2Reverse)                                  \
3961cb0ef41Sopenharmony_ci  V(X64V128AnyTrue)                                  \
3971cb0ef41Sopenharmony_ci  V(X64I64x2AllTrue)                                 \
3981cb0ef41Sopenharmony_ci  V(X64I32x4AllTrue)                                 \
3991cb0ef41Sopenharmony_ci  V(X64I16x8AllTrue)                                 \
4001cb0ef41Sopenharmony_ci  V(X64I8x16AllTrue)                                 \
4011cb0ef41Sopenharmony_ci  V(X64Pblendvb)                                     \
4021cb0ef41Sopenharmony_ci  V(X64Word64AtomicAddUint64)                        \
4031cb0ef41Sopenharmony_ci  V(X64Word64AtomicSubUint64)                        \
4041cb0ef41Sopenharmony_ci  V(X64Word64AtomicAndUint64)                        \
4051cb0ef41Sopenharmony_ci  V(X64Word64AtomicOrUint64)                         \
4061cb0ef41Sopenharmony_ci  V(X64Word64AtomicXorUint64)                        \
4071cb0ef41Sopenharmony_ci  V(X64Word64AtomicStoreWord64)                      \
4081cb0ef41Sopenharmony_ci  V(X64Word64AtomicExchangeUint64)                   \
4091cb0ef41Sopenharmony_ci  V(X64Word64AtomicCompareExchangeUint64)
4101cb0ef41Sopenharmony_ci
4111cb0ef41Sopenharmony_ci// Addressing modes represent the "shape" of inputs to an instruction.
4121cb0ef41Sopenharmony_ci// Many instructions support multiple addressing modes. Addressing modes
4131cb0ef41Sopenharmony_ci// are encoded into the InstructionCode of the instruction and tell the
4141cb0ef41Sopenharmony_ci// code generator after register allocation which assembler method to call.
4151cb0ef41Sopenharmony_ci//
4161cb0ef41Sopenharmony_ci// We use the following local notation for addressing modes:
4171cb0ef41Sopenharmony_ci//
4181cb0ef41Sopenharmony_ci// M = memory operand
4191cb0ef41Sopenharmony_ci// R = base register
4201cb0ef41Sopenharmony_ci// N = index register * N for N in {1, 2, 4, 8}
4211cb0ef41Sopenharmony_ci// I = immediate displacement (32-bit signed integer)
4221cb0ef41Sopenharmony_ci
4231cb0ef41Sopenharmony_ci#define TARGET_ADDRESSING_MODE_LIST(V) \
4241cb0ef41Sopenharmony_ci  V(MR)   /* [%r1            ] */      \
4251cb0ef41Sopenharmony_ci  V(MRI)  /* [%r1         + K] */      \
4261cb0ef41Sopenharmony_ci  V(MR1)  /* [%r1 + %r2*1    ] */      \
4271cb0ef41Sopenharmony_ci  V(MR2)  /* [%r1 + %r2*2    ] */      \
4281cb0ef41Sopenharmony_ci  V(MR4)  /* [%r1 + %r2*4    ] */      \
4291cb0ef41Sopenharmony_ci  V(MR8)  /* [%r1 + %r2*8    ] */      \
4301cb0ef41Sopenharmony_ci  V(MR1I) /* [%r1 + %r2*1 + K] */      \
4311cb0ef41Sopenharmony_ci  V(MR2I) /* [%r1 + %r2*2 + K] */      \
4321cb0ef41Sopenharmony_ci  V(MR4I) /* [%r1 + %r2*4 + K] */      \
4331cb0ef41Sopenharmony_ci  V(MR8I) /* [%r1 + %r2*8 + K] */      \
4341cb0ef41Sopenharmony_ci  V(M1)   /* [      %r2*1    ] */      \
4351cb0ef41Sopenharmony_ci  V(M2)   /* [      %r2*2    ] */      \
4361cb0ef41Sopenharmony_ci  V(M4)   /* [      %r2*4    ] */      \
4371cb0ef41Sopenharmony_ci  V(M8)   /* [      %r2*8    ] */      \
4381cb0ef41Sopenharmony_ci  V(M1I)  /* [      %r2*1 + K] */      \
4391cb0ef41Sopenharmony_ci  V(M2I)  /* [      %r2*2 + K] */      \
4401cb0ef41Sopenharmony_ci  V(M4I)  /* [      %r2*4 + K] */      \
4411cb0ef41Sopenharmony_ci  V(M8I)  /* [      %r2*8 + K] */      \
4421cb0ef41Sopenharmony_ci  V(Root) /* [%root       + K] */
4431cb0ef41Sopenharmony_ci
4441cb0ef41Sopenharmony_ci}  // namespace compiler
4451cb0ef41Sopenharmony_ci}  // namespace internal
4461cb0ef41Sopenharmony_ci}  // namespace v8
4471cb0ef41Sopenharmony_ci
4481cb0ef41Sopenharmony_ci#endif  // V8_COMPILER_BACKEND_X64_INSTRUCTION_CODES_X64_H_
449