gem5 v24.0.0.0
Loading...
Searching...
No Matches
vinterp.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 *
15 * 3. Neither the name of the copyright holder nor the names of its
16 * contributors may be used to endorse or promote products derived from this
17 * software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
33
34namespace gem5
35{
36
37namespace VegaISA
38{
39 // --- Inst_VINTRP__V_INTERP_P1_F32 class methods ---
40
42 InFmt_VINTRP *iFmt)
43 : Inst_VINTRP(iFmt, "v_interp_p1_f32")
44 {
45 setFlag(ALU);
46 setFlag(F32);
47 } // Inst_VINTRP__V_INTERP_P1_F32
48
50 {
51 } // ~Inst_VINTRP__V_INTERP_P1_F32
52
53 // --- description from .arch file ---
54 // D.f = P10 * S.f + P0; parameter interpolation (SQ translates to
55 // V_MAD_F32 for SP).
56 // CAUTION: when in HALF_LDS mode, D must not be the same GPR as S;
57 // if D == S then data corruption will occur.
58 // NOTE: In textual representations the I/J VGPR is the first source and
59 // the attribute is the second source; however in the VOP3 encoding the
60 // attribute is stored in the src0 field and the VGPR is stored in the
61 // src1 field.
62 void
67 // --- Inst_VINTRP__V_INTERP_P2_F32 class methods ---
68
70 InFmt_VINTRP *iFmt)
71 : Inst_VINTRP(iFmt, "v_interp_p2_f32")
72 {
73 setFlag(ALU);
74 setFlag(F32);
75 } // Inst_VINTRP__V_INTERP_P2_F32
76
78 {
79 } // ~Inst_VINTRP__V_INTERP_P2_F32
80
81 // --- description from .arch file ---
82 // D.f = P20 * S.f + D.f; parameter interpolation (SQ translates to
83 // V_MAD_F32 for SP).
84 // NOTE: In textual representations the I/J VGPR is the first source and
85 // the attribute is the second source; however in the VOP3 encoding the
86 // attribute is stored in the src0 field and the VGPR is stored in the
87 // src1 field.
88 void
93 // --- Inst_VINTRP__V_INTERP_MOV_F32 class methods ---
94
96 InFmt_VINTRP *iFmt)
97 : Inst_VINTRP(iFmt, "v_interp_mov_f32")
98 {
99 setFlag(ALU);
100 setFlag(F32);
101 } // Inst_VINTRP__V_INTERP_MOV_F32
102
104 {
105 } // ~Inst_VINTRP__V_INTERP_MOV_F32
106
107 // --- description from .arch file ---
108 // D.f = {P10,P20,P0}[S.u]; parameter load.
109 void
114} // namespace VegaISA
115} // namespace gem5
void setFlag(Flags flag)
void execute(GPUDynInstPtr) override
Definition vinterp.cc:110
void execute(GPUDynInstPtr) override
Definition vinterp.cc:63
void execute(GPUDynInstPtr) override
Definition vinterp.cc:89
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition binary32.hh:36
std::shared_ptr< GPUDynInst > GPUDynInstPtr
Definition misc.hh:49

Generated on Tue Jun 18 2024 16:23:48 for gem5 by doxygen 1.11.0