mediaop.isa (11320:42ecb523c64a) mediaop.isa (11711:8565c34ec32e)
1// Copyright (c) 2009 The Regents of The University of Michigan
2// Copyright (c) 2015 Advanced Micro Devices, Inc.
3//
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

1215 if (ext & 0x4) {
1216 if (arg >= 0)
1217 arg += 0.5;
1218 else
1219 arg -= 0.5;
1220 }
1221
1222 if (destSize == 4) {
1// Copyright (c) 2009 The Regents of The University of Michigan
2// Copyright (c) 2015 Advanced Micro Devices, Inc.
3//
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

1215 if (ext & 0x4) {
1216 if (arg >= 0)
1217 arg += 0.5;
1218 else
1219 arg -= 0.5;
1220 }
1221
1222 if (destSize == 4) {
1223 argBits = (uint32_t)arg;
1223 int32_t i_arg = (int32_t)arg;
1224 argBits = *((uint32_t*)&i_arg);
1224 } else {
1225 } else {
1225 argBits = (uint64_t)arg;
1226 int64_t i_arg = (int64_t)arg;
1227 argBits = *((uint64_t*)&i_arg);
1226 }
1227 int destHiIndex = destStart + (i + 1) * destSizeBits - 1;
1228 int destLoIndex = destStart + (i + 0) * destSizeBits;
1229 result = insertBits(result, destHiIndex, destLoIndex, argBits);
1230 }
1231 FpDestReg_uqw = result;
1232 '''
1233

--- 315 unchanged lines hidden ---
1228 }
1229 int destHiIndex = destStart + (i + 1) * destSizeBits - 1;
1230 int destLoIndex = destStart + (i + 0) * destSizeBits;
1231 result = insertBits(result, destHiIndex, destLoIndex, argBits);
1232 }
1233 FpDestReg_uqw = result;
1234 '''
1235

--- 315 unchanged lines hidden ---