Deleted Added
sdiff udiff text old ( 7380:baee640ca6a4 ) new ( 7389:714dea5b5298 )
full compact
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

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

477 StaticInstPtr
478 decodeVfpData(ExtMachInst machInst)
479 {
480 const uint32_t opc1 = bits(machInst, 23, 20);
481 const uint32_t opc2 = bits(machInst, 19, 16);
482 const uint32_t opc3 = bits(machInst, 7, 6);
483 //const uint32_t opc4 = bits(machInst, 3, 0);
484 const bool single = (bits(machInst, 8) == 0);
485 IntRegIndex vd;
486 IntRegIndex vm;
487 IntRegIndex vn;
488 if (single) {
489 vd = (IntRegIndex)(bits(machInst, 22) |
490 (bits(machInst, 15, 12) << 1));
491 vm = (IntRegIndex)(bits(machInst, 5) |
492 (bits(machInst, 3, 0) << 1));

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

636 }
637 }
638 case 0x2:
639 case 0x3:
640 // Between half and single precision.
641 return new WarnUnimplemented("vcvtb, vcvtt", machInst);
642 case 0x4:
643 if (single) {
644 return new VcmpS(machInst, vd, vm);
645 } else {
646 return new VcmpD(machInst, vd, vm);
647 }
648 case 0x5:
649 if (single) {
650 return new VcmpZeroS(machInst, vd, 0);
651 } else {
652 return new VcmpZeroD(machInst, vd, 0);
653 }
654 case 0x7:
655 if (opc3 == 0x3) {
656 if (single) {
657 vm = (IntRegIndex)(bits(machInst, 5) |
658 (bits(machInst, 3, 0) << 1));
659 return new VcvtFpSFpD(machInst, vd, vm);
660 } else {

--- 157 unchanged lines hidden ---