mediaop.isa (6801:353726c415f4) mediaop.isa (7081:ff2321547ca3)
1/// Copyright (c) 2009 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

1289 }
1290 uint64_t result = FpDestReg.uqw;
1291
1292 for (int i = 0; i < items; i++) {
1293 int srcHiIndex = srcStart + (i + 1) * srcSizeBits - 1;
1294 int srcLoIndex = srcStart + (i + 0) * srcSizeBits;
1295 uint64_t argBits = bits(FpSrcReg1.uqw, srcHiIndex, srcLoIndex);
1296
1/// Copyright (c) 2009 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

1289 }
1290 uint64_t result = FpDestReg.uqw;
1291
1292 for (int i = 0; i < items; i++) {
1293 int srcHiIndex = srcStart + (i + 1) * srcSizeBits - 1;
1294 int srcLoIndex = srcStart + (i + 0) * srcSizeBits;
1295 uint64_t argBits = bits(FpSrcReg1.uqw, srcHiIndex, srcLoIndex);
1296
1297 int64_t sArg = argBits | (0 - (argBits & (ULL(1) << srcHiIndex)));
1297 int64_t sArg = argBits |
1298 (0 - (argBits & (ULL(1) << (srcSizeBits - 1))));
1298 double arg = sArg;
1299
1300 if (destSize == 4) {
1301 floatInt fi;
1302 fi.f = arg;
1303 argBits = fi.i;
1304 } else {
1305 doubleInt di;

--- 254 unchanged lines hidden ---
1299 double arg = sArg;
1300
1301 if (destSize == 4) {
1302 floatInt fi;
1303 fi.f = arg;
1304 argBits = fi.i;
1305 } else {
1306 doubleInt di;

--- 254 unchanged lines hidden ---