fpop.isa (8588:ef28ed90449d) fpop.isa (8946:fb6c89334b86)
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// The license below extends only to copyright in the software and shall
5// not be construed as granting a license to any other intellectual
6// property including but not limited to intellectual property relating
7// to a hardware implementation of the functionality of the software
8// licensed hereunder. You may use the software subject to the license

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

280 // ZF PF CF
281 // Unordered 1 1 1
282 // Greater than 0 0 0
283 // Less than 0 0 1
284 // Equal 1 0 0
285 // OF = SF = AF = 0
286 ccFlagBits = ccFlagBits & ~(OFBit | SFBit | AFBit |
287 ZFBit | PFBit | CFBit);
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// The license below extends only to copyright in the software and shall
5// not be construed as granting a license to any other intellectual
6// property including but not limited to intellectual property relating
7// to a hardware implementation of the functionality of the software
8// licensed hereunder. You may use the software subject to the license

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

280 // ZF PF CF
281 // Unordered 1 1 1
282 // Greater than 0 0 0
283 // Less than 0 0 1
284 // Equal 1 0 0
285 // OF = SF = AF = 0
286 ccFlagBits = ccFlagBits & ~(OFBit | SFBit | AFBit |
287 ZFBit | PFBit | CFBit);
288 if (isnan(FpSrcReg1) || isnan(FpSrcReg2))
288 if (std::isnan(FpSrcReg1) || std::isnan(FpSrcReg2))
289 ccFlagBits = ccFlagBits | (ZFBit | PFBit | CFBit);
290 else if(FpSrcReg1 < FpSrcReg2)
291 ccFlagBits = ccFlagBits | CFBit;
292 else if(FpSrcReg1 == FpSrcReg2)
293 ccFlagBits = ccFlagBits | ZFBit;
294 '''
295}};
289 ccFlagBits = ccFlagBits | (ZFBit | PFBit | CFBit);
290 else if(FpSrcReg1 < FpSrcReg2)
291 ccFlagBits = ccFlagBits | CFBit;
292 else if(FpSrcReg1 == FpSrcReg2)
293 ccFlagBits = ccFlagBits | ZFBit;
294 '''
295}};