1f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org// Copyright 2014 the V8 project authors. All rights reserved.
23484964a86451e86dcf04be9bd8c0d76ee04f081rossberg@chromium.org// Use of this source code is governed by a BSD-style license that can be
33484964a86451e86dcf04be9bd8c0d76ee04f081rossberg@chromium.org// found in the LICENSE file.
4f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
5fa0c3c69b9d632e5730bdd9c745c375beef5e54dmachenbach@chromium.org#ifndef V8_ARM64_DECODER_ARM64_INL_H_
6fa0c3c69b9d632e5730bdd9c745c375beef5e54dmachenbach@chromium.org#define V8_ARM64_DECODER_ARM64_INL_H_
7f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
8196eb601290dc49c3754da728dc58700dff2de1bmachenbach@chromium.org#include "src/arm64/decoder-arm64.h"
9196eb601290dc49c3754da728dc58700dff2de1bmachenbach@chromium.org#include "src/globals.h"
10196eb601290dc49c3754da728dc58700dff2de1bmachenbach@chromium.org#include "src/utils.h"
11f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
12f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
13f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgnamespace v8 {
14f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgnamespace internal {
15f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
16f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
17f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org// Top-level instruction decode function.
18f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
19f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::Decode(Instruction *instr) {
20f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  if (instr->Bits(28, 27) == 0) {
21f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    V::VisitUnallocated(instr);
22f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else {
23f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    switch (instr->Bits(27, 24)) {
24f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 0:   PC relative addressing.
25f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x0: DecodePCRelAddressing(instr); break;
26f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
27f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 1:   Add/sub immediate.
28f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x1: DecodeAddSubImmediate(instr); break;
29f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
30f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // A:   Logical shifted register.
31f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Add/sub with carry.
32f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Conditional compare register.
33f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Conditional compare immediate.
34f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Conditional select.
35f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Data processing 1 source.
36f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Data processing 2 source.
37f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // B:   Add/sub shifted register.
38f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Add/sub extended register.
39f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Data processing 3 source.
40f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0xA:
41f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0xB: DecodeDataProcessing(instr); break;
42f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
43f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 2:   Logical immediate.
44f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Move wide immediate.
45f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x2: DecodeLogical(instr); break;
46f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
47f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 3:   Bitfield.
48f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Extract.
49f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x3: DecodeBitfieldExtract(instr); break;
50f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
51f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 4:   Unconditional branch immediate.
52f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Exception generation.
53f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Compare and branch immediate.
54f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 5:   Compare and branch immediate.
55f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Conditional branch.
56f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      System.
57f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 6,7: Unconditional branch.
58f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Test and branch immediate.
59f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x4:
60f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x5:
61f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x6:
62f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x7: DecodeBranchSystemException(instr); break;
63f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
64f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // 8,9: Load/store register pair post-index.
65f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Load register literal.
66f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Load/store register unscaled immediate.
67f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Load/store register immediate post-index.
68f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Load/store register immediate pre-index.
69f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Load/store register offset.
70f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // C,D: Load/store register pair offset.
71f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Load/store register pair pre-index.
72f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Load/store register unsigned immediate.
73f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Advanced SIMD.
74f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x8:
75f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0x9:
76f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0xC:
77f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0xD: DecodeLoadStore(instr); break;
78f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
79f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // E:   FP fixed point conversion.
80f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      FP integer conversion.
81f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      FP data processing 1 source.
82f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      FP compare.
83f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      FP immediate.
84f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      FP data processing 2 source.
85f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      FP conditional compare.
86f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      FP conditional select.
87f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Advanced SIMD.
88f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      // F:   FP data processing 3 source.
89f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      //      Advanced SIMD.
90f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0xE:
91f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      case 0xF: DecodeFP(instr); break;
92f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
93f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
94f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
95f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
96f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
97f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
98f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodePCRelAddressing(Instruction* instr) {
99e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK(instr->Bits(27, 24) == 0x0);
100f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  // We know bit 28 is set, as <b28:b27> = 0 is filtered out at the top level
101f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  // decode.
102e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK(instr->Bit(28) == 0x1);
103f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  V::VisitPCRelAddressing(instr);
104f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
105f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
106f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
107f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
108f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeBranchSystemException(Instruction* instr) {
109e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK((instr->Bits(27, 24) == 0x4) ||
110f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0x5) ||
111f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0x6) ||
112f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0x7) );
113f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
114f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  switch (instr->Bits(31, 29)) {
115f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 0:
116f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 4: {
117f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitUnconditionalBranch(instr);
118f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      break;
119f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
120f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 1:
121f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 5: {
122f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bit(25) == 0) {
123f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitCompareBranch(instr);
124f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
125f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitTestBranch(instr);
126f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
127f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      break;
128f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
129f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 2: {
130f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bit(25) == 0) {
131f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Bit(24) == 0x1) ||
132f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x01000010) == 0x00000010)) {
133f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
134f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
135f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitConditionalBranch(instr);
136f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
137f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
138f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitUnallocated(instr);
139f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
140f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      break;
141f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
142f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 6: {
143f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bit(25) == 0) {
144f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if (instr->Bit(24) == 0) {
145f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if ((instr->Bits(4, 2) != 0) ||
146f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00E0001D) == 0x00200001) ||
147f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00E0001D) == 0x00400001) ||
148f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00E0001E) == 0x00200002) ||
149f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00E0001E) == 0x00400002) ||
150f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00E0001C) == 0x00600000) ||
151f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00E0001C) == 0x00800000) ||
152f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00E0001F) == 0x00A00000) ||
153f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00C0001C) == 0x00C00000)) {
154f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitUnallocated(instr);
155f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
156f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitException(instr);
157f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
158f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
159f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Bits(23, 22) == 0) {
160f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            const Instr masked_003FF0E0 = instr->Mask(0x003FF0E0);
161f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            if ((instr->Bits(21, 19) == 0x4) ||
162f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (masked_003FF0E0 == 0x00033000) ||
163f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (masked_003FF0E0 == 0x003FF020) ||
164f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (masked_003FF0E0 == 0x003FF060) ||
165f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (masked_003FF0E0 == 0x003FF0E0) ||
166f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x00388000) == 0x00008000) ||
167f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x0038E000) == 0x00000000) ||
168f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x0039E000) == 0x00002000) ||
169f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x003AE000) == 0x00002000) ||
170f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x003CE000) == 0x00042000) ||
171f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x003FFFC0) == 0x000320C0) ||
172f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x003FF100) == 0x00032100) ||
173f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x003FF200) == 0x00032200) ||
174f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x003FF400) == 0x00032400) ||
175f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x003FF800) == 0x00032800) ||
176f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x0038F000) == 0x00005000) ||
177f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x0038E000) == 0x00006000)) {
178f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitUnallocated(instr);
179f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else {
180f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitSystem(instr);
181f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
182f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
183f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitUnallocated(instr);
184f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
185f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
186f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
187f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Bit(24) == 0x1) ||
188f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Bits(20, 16) != 0x1F) ||
189f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Bits(15, 10) != 0) ||
190f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Bits(4, 0) != 0) ||
191f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Bits(24, 21) == 0x3) ||
192f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Bits(24, 22) == 0x3)) {
193f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
194f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
195f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnconditionalBranchToRegister(instr);
196f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
197f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
198f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      break;
199f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
200f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 3:
201f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    case 7: {
202f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitUnallocated(instr);
203f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      break;
204f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
205f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
206f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
207f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
208f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
209f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
210f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeLoadStore(Instruction* instr) {
211e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK((instr->Bits(27, 24) == 0x8) ||
212f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0x9) ||
213f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0xC) ||
214f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0xD) );
215f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
216f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  if (instr->Bit(24) == 0) {
217f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if (instr->Bit(28) == 0) {
218f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bit(29) == 0) {
219f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if (instr->Bit(26) == 0) {
220f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          // TODO(all): VisitLoadStoreExclusive.
221f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnimplemented(instr);
222f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
223f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          DecodeAdvSIMDLoadStore(instr);
224f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
225f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
226f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Bits(31, 30) == 0x3) ||
227f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0xC4400000) == 0x40000000)) {
228f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
229f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
230f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Bit(23) == 0) {
231f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            if (instr->Mask(0xC4400000) == 0xC0400000) {
232f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitUnallocated(instr);
233f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else {
234f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitLoadStorePairNonTemporal(instr);
235f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
236f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
237f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitLoadStorePairPostIndex(instr);
238f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
239f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
240f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
241f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
242f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bit(29) == 0) {
243f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if (instr->Mask(0xC4000000) == 0xC4000000) {
244f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
245f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
246f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitLoadLiteral(instr);
247f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
248f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
249f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Mask(0x84C00000) == 0x80C00000) ||
250f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x44800000) == 0x44800000) ||
251f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x84800000) == 0x84800000)) {
252f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
253f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
254f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Bit(21) == 0) {
255f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            switch (instr->Bits(11, 10)) {
256f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              case 0: {
257f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitLoadStoreUnscaledOffset(instr);
258f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                break;
259f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
260f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              case 1: {
261f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                if (instr->Mask(0xC4C00000) == 0xC0800000) {
262f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  V::VisitUnallocated(instr);
263f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                } else {
264f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  V::VisitLoadStorePostIndex(instr);
265f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                }
266f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                break;
267f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
268f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              case 2: {
269f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                // TODO(all): VisitLoadStoreRegisterOffsetUnpriv.
270f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnimplemented(instr);
271f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                break;
272f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
273f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              case 3: {
274f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                if (instr->Mask(0xC4C00000) == 0xC0800000) {
275f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  V::VisitUnallocated(instr);
276f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                } else {
277f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  V::VisitLoadStorePreIndex(instr);
278f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                }
279f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                break;
280f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
281f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
282f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
283f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            if (instr->Bits(11, 10) == 0x2) {
284f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if (instr->Bit(14) == 0) {
285f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
286f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
287f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitLoadStoreRegisterOffset(instr);
288f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
289f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else {
290f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitUnallocated(instr);
291f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
292f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
293f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
294f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
295f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
296f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else {
297f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if (instr->Bit(28) == 0) {
298f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bit(29) == 0) {
299f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitUnallocated(instr);
300f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
301f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Bits(31, 30) == 0x3) ||
302f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0xC4400000) == 0x40000000)) {
303f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
304f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
305f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Bit(23) == 0) {
306f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitLoadStorePairOffset(instr);
307f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
308f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitLoadStorePairPreIndex(instr);
309f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
310f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
311f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
312f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
313f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bit(29) == 0) {
314f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitUnallocated(instr);
315f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
316f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Mask(0x84C00000) == 0x80C00000) ||
317f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x44800000) == 0x44800000) ||
318f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x84800000) == 0x84800000)) {
319f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
320f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
321f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitLoadStoreUnsignedOffset(instr);
322f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
323f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
324f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
325f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
326f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
327f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
328f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
329f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
330f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeLogical(Instruction* instr) {
331e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK(instr->Bits(27, 24) == 0x2);
332f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
333f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  if (instr->Mask(0x80400000) == 0x00400000) {
334f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    V::VisitUnallocated(instr);
335f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else {
336f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if (instr->Bit(23) == 0) {
337f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitLogicalImmediate(instr);
338f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
339f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bits(30, 29) == 0x1) {
340f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitUnallocated(instr);
341f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
342f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitMoveWideImmediate(instr);
343f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
344f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
345f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
346f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
347f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
348f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
349f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
350f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeBitfieldExtract(Instruction* instr) {
351e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK(instr->Bits(27, 24) == 0x3);
352f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
353f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  if ((instr->Mask(0x80400000) == 0x80000000) ||
354f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      (instr->Mask(0x80400000) == 0x00400000) ||
355f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      (instr->Mask(0x80008000) == 0x00008000)) {
356f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    V::VisitUnallocated(instr);
357f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else if (instr->Bit(23) == 0) {
358f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if ((instr->Mask(0x80200000) == 0x00200000) ||
359f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        (instr->Mask(0x60000000) == 0x60000000)) {
360f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitUnallocated(instr);
361f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
362f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitBitfield(instr);
363f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
364f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else {
365f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if ((instr->Mask(0x60200000) == 0x00200000) ||
366f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        (instr->Mask(0x60000000) != 0x00000000)) {
367f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitUnallocated(instr);
368f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
369f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitExtract(instr);
370f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
371f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
372f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
373f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
374f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
375f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
376f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeAddSubImmediate(Instruction* instr) {
377e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK(instr->Bits(27, 24) == 0x1);
378f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  if (instr->Bit(23) == 1) {
379f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    V::VisitUnallocated(instr);
380f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else {
381f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    V::VisitAddSubImmediate(instr);
382f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
383f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
384f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
385f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
386f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
387f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeDataProcessing(Instruction* instr) {
388e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK((instr->Bits(27, 24) == 0xA) ||
389f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0xB) );
390f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
391f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  if (instr->Bit(24) == 0) {
392f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if (instr->Bit(28) == 0) {
393f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Mask(0x80008000) == 0x00008000) {
394f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitUnallocated(instr);
395f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
396f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitLogicalShifted(instr);
397f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
398f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
399f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      switch (instr->Bits(23, 21)) {
400f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 0: {
401f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Mask(0x0000FC00) != 0) {
402f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitUnallocated(instr);
403f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
404f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitAddSubWithCarry(instr);
405f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
406f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          break;
407f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
408f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 2: {
409f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if ((instr->Bit(29) == 0) ||
410f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              (instr->Mask(0x00000410) != 0)) {
411f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitUnallocated(instr);
412f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
413f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            if (instr->Bit(11) == 0) {
414f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitConditionalCompareRegister(instr);
415f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else {
416f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitConditionalCompareImmediate(instr);
417f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
418f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
419f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          break;
420f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
421f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 4: {
422f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Mask(0x20000800) != 0x00000000) {
423f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitUnallocated(instr);
424f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
425f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitConditionalSelect(instr);
426f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
427f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          break;
428f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
429f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 6: {
430f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Bit(29) == 0x1) {
431f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitUnallocated(instr);
432f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
433f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            if (instr->Bit(30) == 0) {
434f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if ((instr->Bit(15) == 0x1) ||
435f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Bits(15, 11) == 0) ||
436f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Bits(15, 12) == 0x1) ||
437f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Bits(15, 12) == 0x3) ||
438f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Bits(15, 13) == 0x3) ||
439f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x8000EC00) == 0x00004C00) ||
440f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x8000E800) == 0x80004000) ||
441f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x8000E400) == 0x80004000)) {
442f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
443f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
444f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitDataProcessing2Source(instr);
445f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
446f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else {
447f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if ((instr->Bit(13) == 1) ||
448f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Bits(20, 16) != 0) ||
449f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Bits(15, 14) != 0) ||
450f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA01FFC00) == 0x00000C00) ||
451f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x201FF800) == 0x00001800)) {
452f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
453f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
454f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitDataProcessing1Source(instr);
455f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
456f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
457f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            break;
458f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
459f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
460f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 1:
461f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 3:
462f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 5:
463f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        case 7: V::VisitUnallocated(instr); break;
464f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
465f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
466f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else {
467f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if (instr->Bit(28) == 0) {
468f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org     if (instr->Bit(21) == 0) {
469f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Bits(23, 22) == 0x3) ||
470f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x80008000) == 0x00008000)) {
471f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
472f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
473f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitAddSubShifted(instr);
474f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
475f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
476f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if ((instr->Mask(0x00C00000) != 0x00000000) ||
477f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x00001400) == 0x00001400) ||
478f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            (instr->Mask(0x00001800) == 0x00001800)) {
479f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitUnallocated(instr);
480f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
481f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          V::VisitAddSubExtended(instr);
482f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
483f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
484f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
485f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if ((instr->Bit(30) == 0x1) ||
486f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          (instr->Bits(30, 29) == 0x1) ||
487f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          (instr->Mask(0xE0600000) == 0x00200000) ||
488f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          (instr->Mask(0xE0608000) == 0x00400000) ||
489f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          (instr->Mask(0x60608000) == 0x00408000) ||
490f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          (instr->Mask(0x60E00000) == 0x00E00000) ||
491f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          (instr->Mask(0x60E00000) == 0x00800000) ||
492f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          (instr->Mask(0x60E00000) == 0x00600000)) {
493f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitUnallocated(instr);
494f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
495f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitDataProcessing3Source(instr);
496f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
497f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
498f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
499f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
500f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
501f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
502f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
503f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeFP(Instruction* instr) {
504e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK((instr->Bits(27, 24) == 0xE) ||
505f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org         (instr->Bits(27, 24) == 0xF) );
506f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
507f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  if (instr->Bit(28) == 0) {
508f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    DecodeAdvSIMDDataProcessing(instr);
509f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  } else {
510f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    if (instr->Bit(29) == 1) {
511f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      V::VisitUnallocated(instr);
512f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    } else {
513f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      if (instr->Bits(31, 30) == 0x3) {
514f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        V::VisitUnallocated(instr);
515f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else if (instr->Bits(31, 30) == 0x1) {
516f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        DecodeAdvSIMDDataProcessing(instr);
517f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      } else {
518f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        if (instr->Bit(24) == 0) {
519f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Bit(21) == 0) {
520f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            if ((instr->Bit(23) == 1) ||
521f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Bit(18) == 1) ||
522f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x80008000) == 0x00000000) ||
523f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x000E0000) == 0x00000000) ||
524f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x000E0000) == 0x000A0000) ||
525f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x00160000) == 0x00000000) ||
526f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                (instr->Mask(0x00160000) == 0x00120000)) {
527f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitUnallocated(instr);
528f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else {
529f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitFPFixedPointConvert(instr);
530f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
531f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
532f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            if (instr->Bits(15, 10) == 32) {
533f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              V::VisitUnallocated(instr);
534f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else if (instr->Bits(15, 10) == 0) {
535f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if ((instr->Bits(23, 22) == 0x3) ||
536f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x000E0000) == 0x000A0000) ||
537f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x000E0000) == 0x000C0000) ||
538f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x00160000) == 0x00120000) ||
539f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x00160000) == 0x00140000) ||
540f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x20C40000) == 0x00800000) ||
541f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x20C60000) == 0x00840000) ||
542f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0C60000) == 0x80060000) ||
543f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0C60000) == 0x00860000) ||
544f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0C60000) == 0x00460000) ||
545f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0CE0000) == 0x80860000) ||
546f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0CE0000) == 0x804E0000) ||
547f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0CE0000) == 0x000E0000) ||
548f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0D60000) == 0x00160000) ||
549f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0D60000) == 0x80560000) ||
550f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0D60000) == 0x80960000)) {
551f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
552f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
553f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitFPIntegerConvert(instr);
554f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
555f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else if (instr->Bits(14, 10) == 16) {
556f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              const Instr masked_A0DF8000 = instr->Mask(0xA0DF8000);
557f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if ((instr->Mask(0x80180000) != 0) ||
558f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (masked_A0DF8000 == 0x00020000) ||
559f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (masked_A0DF8000 == 0x00030000) ||
560f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (masked_A0DF8000 == 0x00068000) ||
561f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (masked_A0DF8000 == 0x00428000) ||
562f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (masked_A0DF8000 == 0x00430000) ||
563f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (masked_A0DF8000 == 0x00468000) ||
564f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0D80000) == 0x00800000) ||
565f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0DE0000) == 0x00C00000) ||
566f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0DF0000) == 0x00C30000) ||
567f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0xA0DC0000) == 0x00C40000)) {
568f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
569f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
570f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitFPDataProcessing1Source(instr);
571f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
572f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else if (instr->Bits(13, 10) == 8) {
573f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if ((instr->Bits(15, 14) != 0) ||
574f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Bits(2, 0) != 0) ||
575f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x80800000) != 0x00000000)) {
576f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
577f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
578f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitFPCompare(instr);
579f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
580f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else if (instr->Bits(12, 10) == 4) {
581f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if ((instr->Bits(9, 5) != 0) ||
582f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  (instr->Mask(0x80800000) != 0x00000000)) {
583f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
584f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
585f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitFPImmediate(instr);
586f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
587f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            } else {
588f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              if (instr->Mask(0x80800000) != 0x00000000) {
589f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                V::VisitUnallocated(instr);
590f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              } else {
591f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                switch (instr->Bits(11, 10)) {
592f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  case 1: {
593f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    V::VisitFPConditionalCompare(instr);
594f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    break;
595f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  }
596f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  case 2: {
597f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    if ((instr->Bits(15, 14) == 0x3) ||
598f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                        (instr->Mask(0x00009000) == 0x00009000) ||
599f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                        (instr->Mask(0x0000A000) == 0x0000A000)) {
600f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                      V::VisitUnallocated(instr);
601f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    } else {
602f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                      V::VisitFPDataProcessing2Source(instr);
603f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    }
604f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    break;
605f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  }
606f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  case 3: {
607f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    V::VisitFPConditionalSelect(instr);
608f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                    break;
609f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  }
610f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                  default: UNREACHABLE();
611f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org                }
612f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org              }
613f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            }
614f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
615f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        } else {
616f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          // Bit 30 == 1 has been handled earlier.
617e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org          DCHECK(instr->Bit(30) == 0);
618f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          if (instr->Mask(0xA0800000) != 0) {
619f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitUnallocated(instr);
620f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          } else {
621f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org            V::VisitFPDataProcessing3Source(instr);
622f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org          }
623f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org        }
624f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org      }
625f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org    }
626f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  }
627f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
628f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
629f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
630f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
631f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeAdvSIMDLoadStore(Instruction* instr) {
632f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  // TODO(all): Implement Advanced SIMD load/store instruction decode.
633e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK(instr->Bits(29, 25) == 0x6);
634f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  V::VisitUnimplemented(instr);
635f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
636f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
637f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
638f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgtemplate<typename V>
639f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.orgvoid Decoder<V>::DecodeAdvSIMDDataProcessing(Instruction* instr) {
640f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  // TODO(all): Implement Advanced SIMD data processing instruction decode.
641e3c177a423baa3c30225c4e422b6f6c76d38b951machenbach@chromium.org  DCHECK(instr->Bits(27, 25) == 0x7);
642f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org  V::VisitUnimplemented(instr);
643f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org}
644f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
645f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
646f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org} }  // namespace v8::internal
647f5a24546072ecdbbd6372c85c42157e01e913561titzer@chromium.org
648fa0c3c69b9d632e5730bdd9c745c375beef5e54dmachenbach@chromium.org#endif  // V8_ARM64_DECODER_ARM64_INL_H_
649