mediaop.isa (6605:e16cf917dcec) mediaop.isa (6622:aff9a522956a)
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

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

1401 uint64_t arg1Bits = bits(FpSrcReg1.uqw, hiIndex, loIndex);
1402 int64_t arg1 = arg1Bits |
1403 (0 - (arg1Bits & (1 << (sizeBits - 1))));
1404 uint64_t arg2Bits = bits(FpSrcReg2.uqw, hiIndex, loIndex);
1405 int64_t arg2 = arg2Bits |
1406 (0 - (arg2Bits & (1 << (sizeBits - 1))));
1407
1408 uint64_t resBits = 0;
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

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

1401 uint64_t arg1Bits = bits(FpSrcReg1.uqw, hiIndex, loIndex);
1402 int64_t arg1 = arg1Bits |
1403 (0 - (arg1Bits & (1 << (sizeBits - 1))));
1404 uint64_t arg2Bits = bits(FpSrcReg2.uqw, hiIndex, loIndex);
1405 int64_t arg2 = arg2Bits |
1406 (0 - (arg2Bits & (1 << (sizeBits - 1))));
1407
1408 uint64_t resBits = 0;
1409 if ((ext & 0x2) == 0 && arg1 == arg2 ||
1410 (ext & 0x2) == 0x2 && arg1 > arg2)
1409 if (((ext & 0x2) == 0 && arg1 == arg2) ||
1410 ((ext & 0x2) == 0x2 && arg1 > arg2))
1411 resBits = mask(sizeBits);
1412
1413 result = insertBits(result, hiIndex, loIndex, resBits);
1414 }
1415 FpDestReg.uqw = result;
1416 '''
1417
1418 class Mcmpf2r(MediaOp):

--- 136 unchanged lines hidden ---
1411 resBits = mask(sizeBits);
1412
1413 result = insertBits(result, hiIndex, loIndex, resBits);
1414 }
1415 FpDestReg.uqw = result;
1416 '''
1417
1418 class Mcmpf2r(MediaOp):

--- 136 unchanged lines hidden ---