pred_inst.hh (13120:690a0db8e58b) | pred_inst.hh (13449:2f7efa89c58b) |
---|---|
1/* 2 * Copyright (c) 2010, 2012-2013, 2017-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 29 unchanged lines hidden (view full) --- 38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 39 * 40 * Authors: Stephen Hines 41 */ 42#ifndef __ARCH_ARM_INSTS_PREDINST_HH__ 43#define __ARCH_ARM_INSTS_PREDINST_HH__ 44 45#include "arch/arm/insts/static_inst.hh" | 1/* 2 * Copyright (c) 2010, 2012-2013, 2017-2018 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 29 unchanged lines hidden (view full) --- 38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 39 * 40 * Authors: Stephen Hines 41 */ 42#ifndef __ARCH_ARM_INSTS_PREDINST_HH__ 43#define __ARCH_ARM_INSTS_PREDINST_HH__ 44 45#include "arch/arm/insts/static_inst.hh" |
46#include "base/logging.hh" |
|
46#include "base/trace.hh" 47 48namespace ArmISA 49{ 50static inline uint32_t 51rotate_imm(uint32_t immValue, uint32_t rotateValue) 52{ 53 rotateValue &= 31; --- 127 unchanged lines hidden (view full) --- 181 break; 182 case FpDataType::Fp64: 183 repData = bits(data, 6) ? 0xFF : 0; 184 bigData = (bits(bigData, 5, 0) << 48) | 185 (repData << 54) | (bits(~bigData, 6) << 62) | 186 (bits(bigData, 7) << 63); 187 break; 188 default: | 47#include "base/trace.hh" 48 49namespace ArmISA 50{ 51static inline uint32_t 52rotate_imm(uint32_t immValue, uint32_t rotateValue) 53{ 54 rotateValue &= 31; --- 127 unchanged lines hidden (view full) --- 182 break; 183 case FpDataType::Fp64: 184 repData = bits(data, 6) ? 0xFF : 0; 185 bigData = (bits(bigData, 5, 0) << 48) | 186 (repData << 54) | (bits(~bigData, 6) << 62) | 187 (bits(bigData, 7) << 63); 188 break; 189 default: |
189 assert(0); | 190 panic("Unrecognized FP data type"); |
190 } 191 return bigData; 192} 193 194static inline FpDataType 195decode_fp_data_type(uint8_t encoding) 196{ 197 switch (encoding) { --- 203 unchanged lines hidden --- | 191 } 192 return bigData; 193} 194 195static inline FpDataType 196decode_fp_data_type(uint8_t encoding) 197{ 198 switch (encoding) { --- 203 unchanged lines hidden --- |