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" |
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: |
190 panic("Unrecognized FP data type"); |
191 } 192 return bigData; 193} 194 195static inline FpDataType 196decode_fp_data_type(uint8_t encoding) 197{ 198 switch (encoding) { --- 203 unchanged lines hidden --- |