fpop.isa (9765:da0e0df0ba97) fpop.isa (9893:5924b77fb8fc)
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// Copyright (c) 2012-2013 Mark D. Hill and David A. Wood
3// All rights reserved.
4//
5// The license below extends only to copyright in the software and shall
6// not be construed as granting a license to any other intellectual
7// property including but not limited to intellectual property relating
8// to a hardware implementation of the functionality of the software

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

406
407 class absfp(FpUnaryOp):
408 code = 'FpDestReg = fabs(FpSrcReg1);'
409 flag_code = 'FSW = FSW & (~CC1Bit);'
410
411 class chsfp(FpUnaryOp):
412 code = 'FpDestReg = (-1) * (FpSrcReg1);'
413 flag_code = 'FSW = FSW & (~CC1Bit);'
1// Copyright (c) 2007 The Hewlett-Packard Development Company
2// Copyright (c) 2012-2013 Mark D. Hill and David A. Wood
3// All rights reserved.
4//
5// The license below extends only to copyright in the software and shall
6// not be construed as granting a license to any other intellectual
7// property including but not limited to intellectual property relating
8// to a hardware implementation of the functionality of the software

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

406
407 class absfp(FpUnaryOp):
408 code = 'FpDestReg = fabs(FpSrcReg1);'
409 flag_code = 'FSW = FSW & (~CC1Bit);'
410
411 class chsfp(FpUnaryOp):
412 code = 'FpDestReg = (-1) * (FpSrcReg1);'
413 flag_code = 'FSW = FSW & (~CC1Bit);'
414
415 class Pop87(FpUnaryOp):
416 def __init__(self, spm=1, UpdateFTW=True):
417 super(Pop87, self).__init__( \
418 "InstRegIndex(FLOATREG_MICROFP0)", \
419 "InstRegIndex(FLOATREG_MICROFP0)", \
420 spm=spm, SetStatus=False, UpdateFTW=UpdateFTW)
421
422 code = ''
414}};
423}};