regop.isa (5040:126e4510b5bb) regop.isa (5042:bc2c08abe249)
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

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

448 code = '''
449 int halfSize = (dataSize * 8) / 2;
450 IntReg srcVal1 = psrc1 & mask(halfSize);
451 IntReg srcVal2 = op2 & mask(halfSize);
452 DestReg = merge(DestReg, srcVal1 * srcVal2, dataSize)
453 '''
454
455 class Mulel(FlagRegOp):
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

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

448 code = '''
449 int halfSize = (dataSize * 8) / 2;
450 IntReg srcVal1 = psrc1 & mask(halfSize);
451 IntReg srcVal2 = op2 & mask(halfSize);
452 DestReg = merge(DestReg, srcVal1 * srcVal2, dataSize)
453 '''
454
455 class Mulel(FlagRegOp):
456 code = 'DestReg = merge(DestReg, psrc1 * op2, dataSize)'
456 code = 'DestReg = merge(DestReg, psrc1 * op2, dataSize);'
457
458 class Muleh(FlagRegOp):
459 code = '''
460 int halfSize = (dataSize * 8) / 2;
461 uint64_t psrc1_h = psrc1 >> halfSize;
462 uint64_t psrc1_l = psrc1 & mask(halfSize);
463 uint64_t psrc2_h = op2 >> halfSize;
464 uint64_t psrc2_l = op2 & mask(halfSize);

--- 175 unchanged lines hidden ---
457
458 class Muleh(FlagRegOp):
459 code = '''
460 int halfSize = (dataSize * 8) / 2;
461 uint64_t psrc1_h = psrc1 >> halfSize;
462 uint64_t psrc1_l = psrc1 & mask(halfSize);
463 uint64_t psrc2_h = op2 >> halfSize;
464 uint64_t psrc2_l = op2 & mask(halfSize);

--- 175 unchanged lines hidden ---