regop.isa (5059:33478a26f73e) regop.isa (5060:28b30e3e428c)
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

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

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);
465 uint64_t result =
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

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

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);
465 uint64_t result =
466 ((psrc1_l * psrc2_h) >> halfSize) +
467 ((psrc1_h * psrc2_l) >> halfSize) +
466 ((psrc1_l * psrc2_h + psrc1_h * psrc2_l +
467 ((psrc1_l * psrc2_l) >> halfSize)) >> halfSize) +
468 psrc1_h * psrc2_h;
469 DestReg = merge(DestReg, result, dataSize);
470 '''
471
472 class Div1(FlagRegOp):
473 code = '''
474 int halfSize = (dataSize * 8) / 2;
475 IntReg quotient = (psrc1 / op2) & mask(halfSize);

--- 223 unchanged lines hidden ---
468 psrc1_h * psrc2_h;
469 DestReg = merge(DestReg, result, dataSize);
470 '''
471
472 class Div1(FlagRegOp):
473 code = '''
474 int halfSize = (dataSize * 8) / 2;
475 IntReg quotient = (psrc1 / op2) & mask(halfSize);

--- 223 unchanged lines hidden ---