branch.isa (7284:cff2ad25550e) | branch.isa (7290:ea9189fbb84f) |
---|---|
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 --- 226 unchanged lines hidden (view full) --- 235 const uint32_t imm11 = bits(machInst, 10, 0); 236 const int32_t imm = sext<25>((s << 24) | 237 (i1 << 23) | (i2 << 22) | 238 (imm10 << 12) | (imm11 << 1)); 239 return new B(machInst, imm, COND_UC); 240 } 241 case 0x4: 242 { | 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 --- 226 unchanged lines hidden (view full) --- 235 const uint32_t imm11 = bits(machInst, 10, 0); 236 const int32_t imm = sext<25>((s << 24) | 237 (i1 << 23) | (i2 << 22) | 238 (imm10 << 12) | (imm11 << 1)); 239 return new B(machInst, imm, COND_UC); 240 } 241 case 0x4: 242 { |
243 if (bits(machInst, 0) == 1) { 244 return new Unknown(machInst); 245 } |
|
243 const uint32_t s = bits(machInst, 26); 244 const uint32_t i1 = !(bits(machInst, 13) ^ s); 245 const uint32_t i2 = !(bits(machInst, 11) ^ s); 246 const uint32_t imm10h = bits(machInst, 25, 16); 247 const uint32_t imm10l = bits(machInst, 10, 1); 248 const int32_t imm = sext<25>((s << 24) | 249 (i1 << 23) | (i2 << 22) | 250 (imm10h << 12) | (imm10l << 2)); --- 21 unchanged lines hidden --- | 246 const uint32_t s = bits(machInst, 26); 247 const uint32_t i1 = !(bits(machInst, 13) ^ s); 248 const uint32_t i2 = !(bits(machInst, 11) ^ s); 249 const uint32_t imm10h = bits(machInst, 25, 16); 250 const uint32_t imm10l = bits(machInst, 10, 1); 251 const int32_t imm = sext<25>((s << 24) | 252 (i1 << 23) | (i2 << 22) | 253 (imm10h << 12) | (imm10l << 2)); --- 21 unchanged lines hidden --- |