misc.isa (7249:ddf0cb9f0450) misc.isa (7251:5ca3c60f8b59)
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

--- 160 unchanged lines hidden (view full) ---

169 '''
170 rbitIop = InstObjParams("rbit", "Rbit", "RevOp",
171 { "code": rbitCode,
172 "predicate_test": predicateTest }, [])
173 header_output += RevOpDeclare.subst(rbitIop)
174 decoder_output += RevOpConstructor.subst(rbitIop)
175 exec_output += PredOpExecute.subst(rbitIop)
176
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

--- 160 unchanged lines hidden (view full) ---

169 '''
170 rbitIop = InstObjParams("rbit", "Rbit", "RevOp",
171 { "code": rbitCode,
172 "predicate_test": predicateTest }, [])
173 header_output += RevOpDeclare.subst(rbitIop)
174 decoder_output += RevOpConstructor.subst(rbitIop)
175 exec_output += PredOpExecute.subst(rbitIop)
176
177 clzCode = '''
178 Dest = (Op1 == 0) ? 32 : (31 - findMsbSet(Op1));
179 '''
180 clzIop = InstObjParams("clz", "ClzInst", "RevOp",
181 { "code": clzCode,
182 "predicate_test": predicateTest }, [])
183 header_output += RevOpDeclare.subst(clzIop)
184 decoder_output += RevOpConstructor.subst(clzIop)
185 exec_output += PredOpExecute.subst(clzIop)
186
177 ssatCode = '''
178 int32_t operand = shift_rm_imm(Op1, shiftAmt, shiftType, 0);
179 int32_t res;
180 if (satInt(res, operand, imm))
181 CondCodes = CondCodes | (1 << 27);
182 else
183 CondCodes = CondCodes;
184 Dest = res;

--- 267 unchanged lines hidden ---
187 ssatCode = '''
188 int32_t operand = shift_rm_imm(Op1, shiftAmt, shiftType, 0);
189 int32_t res;
190 if (satInt(res, operand, imm))
191 CondCodes = CondCodes | (1 << 27);
192 else
193 CondCodes = CondCodes;
194 Dest = res;

--- 267 unchanged lines hidden ---