fp.isa (8588:ef28ed90449d) fp.isa (8607:5fb918115c07)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

442
443let {{
444
445 header_output = ""
446 decoder_output = ""
447 exec_output = ""
448
449 singleSimpleCode = vfpEnabledCheckCode + '''
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

442
443let {{
444
445 header_output = ""
446 decoder_output = ""
447 exec_output = ""
448
449 singleSimpleCode = vfpEnabledCheckCode + '''
450 FPSCR fpscr = (FPSCR) FpscrExc;
450 FPSCR fpscr M5_VAR_USED = (FPSCR) FpscrExc;
451 FpDest = %(op)s;
452 '''
453 singleCode = singleSimpleCode + '''
454 FpscrExc = fpscr;
455 '''
456 singleBinOp = "binaryOp(fpscr, FpOp1, FpOp2," + \
457 "%(func)s, fpscr.fz, fpscr.dn, fpscr.rMode)"
458 singleUnaryOp = "unaryOp(fpscr, FpOp1, %(func)s, fpscr.fz, fpscr.rMode)"
459 doubleCode = vfpEnabledCheckCode + '''
451 FpDest = %(op)s;
452 '''
453 singleCode = singleSimpleCode + '''
454 FpscrExc = fpscr;
455 '''
456 singleBinOp = "binaryOp(fpscr, FpOp1, FpOp2," + \
457 "%(func)s, fpscr.fz, fpscr.dn, fpscr.rMode)"
458 singleUnaryOp = "unaryOp(fpscr, FpOp1, %(func)s, fpscr.fz, fpscr.rMode)"
459 doubleCode = vfpEnabledCheckCode + '''
460 FPSCR fpscr = (FPSCR) FpscrExc;
460 FPSCR fpscr M5_VAR_USED = (FPSCR) FpscrExc;
461 double dest = %(op)s;
462 FpDestP0_uw = dblLow(dest);
463 FpDestP1_uw = dblHi(dest);
464 FpscrExc = fpscr;
465 '''
466 doubleBinOp = '''
467 binaryOp(fpscr, dbl(FpOp1P0_uw, FpOp1P1_uw),
468 dbl(FpOp2P0_uw, FpOp2P1_uw),

--- 1174 unchanged lines hidden ---
461 double dest = %(op)s;
462 FpDestP0_uw = dblLow(dest);
463 FpDestP1_uw = dblHi(dest);
464 FpscrExc = fpscr;
465 '''
466 doubleBinOp = '''
467 binaryOp(fpscr, dbl(FpOp1P0_uw, FpOp1P1_uw),
468 dbl(FpOp2P0_uw, FpOp2P1_uw),

--- 1174 unchanged lines hidden ---