regop.isa (5083:49559a8060e8) regop.isa (5115:fa8e5c5ab419)
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// Redistribution and use of this software in source and binary forms,
5// with or without modification, are permitted provided that the
6// following conditions are met:
7//
8// The software must be used only for Non-Commercial Use which means any

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

434 "dataSize" : self.dataSize,
435 "ext" : self.ext}
436 return allocator
437
438 class LogicRegOp(RegOp):
439 abstract = True
440 flag_code = '''
441 //Don't have genFlags handle the OF or CF bits
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// Redistribution and use of this software in source and binary forms,
5// with or without modification, are permitted provided that the
6// following conditions are met:
7//
8// The software must be used only for Non-Commercial Use which means any

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

434 "dataSize" : self.dataSize,
435 "ext" : self.ext}
436 return allocator
437
438 class LogicRegOp(RegOp):
439 abstract = True
440 flag_code = '''
441 //Don't have genFlags handle the OF or CF bits
442 uint64_t mask = CFBit | OFBit;
442 uint64_t mask = CFBit | ECFBit | OFBit;
443 ccFlagBits = genFlags(ccFlagBits, ext & ~mask, DestReg, psrc1, op2);
444 //If a logic microop wants to set these, it wants to set them to 0.
445 ccFlagBits &= ~(CFBit & ext);
443 ccFlagBits = genFlags(ccFlagBits, ext & ~mask, DestReg, psrc1, op2);
444 //If a logic microop wants to set these, it wants to set them to 0.
445 ccFlagBits &= ~(CFBit & ext);
446 ccFlagBits &= ~(ECFBit & ext);
446 ccFlagBits &= ~(OFBit & ext);
447 '''
448
449 class FlagRegOp(RegOp):
450 abstract = True
451 flag_code = \
452 "ccFlagBits = genFlags(ccFlagBits, ext, DestReg, psrc1, op2);"
453

--- 423 unchanged lines hidden ---
447 ccFlagBits &= ~(OFBit & ext);
448 '''
449
450 class FlagRegOp(RegOp):
451 abstract = True
452 flag_code = \
453 "ccFlagBits = genFlags(ccFlagBits, ext, DestReg, psrc1, op2);"
454

--- 423 unchanged lines hidden ---