1/* 2 * Copyright (c) 2012-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 731 unchanged lines hidden (view full) --- 740 const char *_opcode) 741 : CommonInstBase<typename DestDataType::OperandType, 742 typename SrcDataType::OperandType, 743 1>(ib, obj, _opcode) 744 { 745 } 746 }; 747 |
748 class Stub : public HsailGPUStaticInst 749 { 750 public: 751 Stub(const Brig::BrigInstBase *ib, const BrigObject *obj, 752 const char *_opcode) 753 : HsailGPUStaticInst(obj, _opcode) 754 { 755 } 756 757 void generateDisassembly() override 758 { 759 disassembly = csprintf("%s", opcode); 760 } 761 762 bool isVectorRegister(int operandIndex) override { return false; } 763 bool isCondRegister(int operandIndex) override { return false; } 764 bool isScalarRegister(int operandIndex) override { return false; } 765 bool isSrcOperand(int operandIndex) override { return false; } 766 bool isDstOperand(int operandIndex) override { return false; } 767 int getOperandSize(int operandIndex) override { return 0; } 768 769 int 770 getRegisterIndex(int operandIndex, GPUDynInstPtr gpuDynInst) override 771 { 772 return -1; 773 } 774 775 int numSrcRegOperands() override { return 0; } 776 int numDstRegOperands() override { return 0; } 777 int getNumOperands() override { return 0; } 778 }; 779 |
780 class SpecialInstNoSrcNoDest : public HsailGPUStaticInst 781 { 782 public: 783 SpecialInstNoSrcNoDest(const Brig::BrigInstBase *ib, 784 const BrigObject *obj, const char *_opcode) 785 : HsailGPUStaticInst(obj, _opcode) 786 { 787 } 788 |
789 bool isVectorRegister(int operandIndex) override { return false; } 790 bool isCondRegister(int operandIndex) override { return false; } 791 bool isScalarRegister(int operandIndex) override { return false; } 792 bool isSrcOperand(int operandIndex) override { return false; } 793 bool isDstOperand(int operandIndex) override { return false; } 794 int getOperandSize(int operandIndex) override { return 0; } |
795 796 int |
797 getRegisterIndex(int operandIndex, GPUDynInstPtr gpuDynInst) override |
798 { 799 return -1; 800 } 801 |
802 int numSrcRegOperands() override { return 0; } 803 int numDstRegOperands() override { return 0; } 804 int getNumOperands() override { return 0; } |
805 }; 806 807 template<typename DestOperandType> 808 class SpecialInstNoSrcBase : public HsailGPUStaticInst 809 { 810 protected: 811 typename DestOperandType::DestOperand dest; 812 --- 465 unchanged lines hidden --- |