1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating
--- 32 unchanged lines hidden (view full) ---
41// Authors: Stephen Hines
42
43////////////////////////////////////////////////////////////////////
44//
45// Predicated Instruction Execution
46//
47
48let {{
49 predicateTest = 'testPredicate(CondCodes, condCode)'
50}};
51
52def template DataImmDeclare {{
53class %(class_name)s : public %(base_class)s
54{
55 public:
56 // Constructor
57 %(class_name)s(ExtMachInst machInst, IntRegIndex _dest,
--- 80 unchanged lines hidden (view full) ---
138 {
139 %(code)s;
140 if (fault == NoFault)
141 {
142 %(op_wb)s;
143 }
144 }
145
146 return fault;
147 }
148}};
149
150def template DataDecode {{
151 if (machInst.opcode4 == 0) {
152 if (machInst.sField == 0)
153 return new %(class_name)sImm(machInst);
--- 16 unchanged lines hidden ---
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating
--- 32 unchanged lines hidden (view full) ---
41// Authors: Stephen Hines
42
43////////////////////////////////////////////////////////////////////
44//
45// Predicated Instruction Execution
46//
47
48let {{
49 predicateTest = 'testPredicate(CondCodes, condCode)'
50}};
51
52def template DataImmDeclare {{
53class %(class_name)s : public %(base_class)s
54{
55 public:
56 // Constructor
57 %(class_name)s(ExtMachInst machInst, IntRegIndex _dest,
--- 80 unchanged lines hidden (view full) ---
138 {
139 %(code)s;
140 if (fault == NoFault)
141 {
142 %(op_wb)s;
143 }
144 }
145
146 return fault;
147 }
148}};
149
150def template DataDecode {{
151 if (machInst.opcode4 == 0) {
152 if (machInst.sField == 0)
153 return new %(class_name)sImm(machInst);
--- 16 unchanged lines hidden ---