/* * Copyright © 2022 Imagination Technologies Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /** * \file rogue_alu_instrs.def * * \brief Contains macros defining ALU instructions. */ /* * ROGUE_BUILDER_DEFINE_ALUds * d: Number of destinations. * s: Number of sources. */ #ifndef ROGUE_BUILDER_DEFINE_ALU11 #define ROGUE_BUILDER_DEFINE_ALU11(...) #endif /* ROGUE_BUILDER_DEFINE_ALU11 */ #ifndef ROGUE_BUILDER_DEFINE_ALU12 #define ROGUE_BUILDER_DEFINE_ALU12(...) #endif /* ROGUE_BUILDER_DEFINE_ALU12 */ #ifndef ROGUE_BUILDER_DEFINE_ALU13 #define ROGUE_BUILDER_DEFINE_ALU13(...) #endif /* ROGUE_BUILDER_DEFINE_ALU13 */ #ifndef ROGUE_BUILDER_DEFINE_ALU22 #define ROGUE_BUILDER_DEFINE_ALU22(...) #endif /* ROGUE_BUILDER_DEFINE_ALU22 */ #ifndef ROGUE_BUILDER_DEFINE_ALU23 #define ROGUE_BUILDER_DEFINE_ALU23(...) #endif /* ROGUE_BUILDER_DEFINE_ALU23 */ #ifndef ROGUE_BUILDER_DEFINE_ALU35 #define ROGUE_BUILDER_DEFINE_ALU35(...) #endif /* ROGUE_BUILDER_DEFINE_ALU35 */ ROGUE_BUILDER_DEFINE_ALU11(MOV) ROGUE_BUILDER_DEFINE_ALU11(MBYP) ROGUE_BUILDER_DEFINE_ALU11(FABS) ROGUE_BUILDER_DEFINE_ALU11(FNEG) ROGUE_BUILDER_DEFINE_ALU11(FNABS) ROGUE_BUILDER_DEFINE_ALU11(PCK_U8888) ROGUE_BUILDER_DEFINE_ALU12(FADD) ROGUE_BUILDER_DEFINE_ALU12(FMUL) ROGUE_BUILDER_DEFINE_ALU12(FMAX) ROGUE_BUILDER_DEFINE_ALU12(FMIN) ROGUE_BUILDER_DEFINE_ALU13(FMAD) ROGUE_BUILDER_DEFINE_ALU13(CMOV) ROGUE_BUILDER_DEFINE_ALU22(TST) ROGUE_BUILDER_DEFINE_ALU23(MOVC) ROGUE_BUILDER_DEFINE_ALU35(ADD64) #undef ROGUE_BUILDER_DEFINE_ALU35 #undef ROGUE_BUILDER_DEFINE_ALU23 #undef ROGUE_BUILDER_DEFINE_ALU22 #undef ROGUE_BUILDER_DEFINE_ALU13 #undef ROGUE_BUILDER_DEFINE_ALU12 #undef ROGUE_BUILDER_DEFINE_ALU11