regop.isa (5046:da031ef02439) regop.isa (5047:4a3593bec248)
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

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

650 class cvtf_i2d_hi(ConvOp):
651 code = 'FpDestReg = bits(SrcReg1, 63, 32);'
652
653 class cvtf_d2i(ConvOp):
654 code = '''
655 int64_t intSrcReg1 = static_cast<int64_t>(FpSrcReg1);
656 DestReg = merge(DestReg, intSrcReg1, dataSize);
657 '''
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

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

650 class cvtf_i2d_hi(ConvOp):
651 code = 'FpDestReg = bits(SrcReg1, 63, 32);'
652
653 class cvtf_d2i(ConvOp):
654 code = '''
655 int64_t intSrcReg1 = static_cast<int64_t>(FpSrcReg1);
656 DestReg = merge(DestReg, intSrcReg1, dataSize);
657 '''
658
659 # These need to consider size at some point. They'll always use doubles
660 # for the moment.
661 class addfp(RegOp):
662 code = 'FpDestReg = FpSrcReg1 + FpSrcReg2;'
663
664 class mulfp(RegOp):
665 code = 'FpDestReg = FpSrcReg1 * FpSrcReg2;'
666
667 class divfp(RegOp):
668 code = 'FpDestReg = FpSrcReg1 / FpSrcReg2;'
669
670 class subfp(RegOp):
671 code = 'FpDestReg = FpSrcReg1 - FpSrcReg2;'
658}};
672}};