data.isa (7230:86187fa97285) data.isa (7236:7fdb1714f62e)
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

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

787 int64_t arg2Low = bits(Op2.sw, 15, 0);
788 int64_t arg2High = bits(Op2.sw, 31, 16);
789 midRes = (arg1Low + arg2High) >> 1;
790 replaceBits(resTemp, 15, 0, midRes);
791 midRes = (arg1High - arg2Low) >> 1;
792 replaceBits(resTemp, 31, 16, midRes);
793 Dest = resTemp;
794 ''', flagType="none", buildCc=False)
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

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

787 int64_t arg2Low = bits(Op2.sw, 15, 0);
788 int64_t arg2High = bits(Op2.sw, 31, 16);
789 midRes = (arg1Low + arg2High) >> 1;
790 replaceBits(resTemp, 15, 0, midRes);
791 midRes = (arg1High - arg2Low) >> 1;
792 replaceBits(resTemp, 31, 16, midRes);
793 Dest = resTemp;
794 ''', flagType="none", buildCc=False)
795
796 buildRegDataInst("pkhbt", '''
797 uint32_t resTemp = 0;
798 uint16_t arg1Low = bits(Op1, 15, 0);
799 uint16_t arg2High = bits(secondOp, 31, 16);
800 replaceBits(resTemp, 15, 0, arg1Low);
801 replaceBits(resTemp, 31, 16, arg2High);
802 Dest = resTemp;
803 ''', flagType="none", buildCc=False)
804 buildRegDataInst("pkhtb", '''
805 uint32_t resTemp = 0;
806 uint16_t arg1High = bits(Op1, 31, 16);
807 uint16_t arg2Low = bits(secondOp, 15, 0);
808 replaceBits(resTemp, 15, 0, arg2Low);
809 replaceBits(resTemp, 31, 16, arg1High);
810 Dest = resTemp;
811 ''', flagType="none", buildCc=False)
795}};
812}};