Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit 99662ba

Browse files
committed
AMDGPU: Fix operand name for v_interp_*
Other VOP instructions call the output vdst git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288856 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 467b7c3 commit 99662ba

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

lib/Target/AMDGPU/SIInstructions.td

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ let Uses = [M0, EXEC] in {
5050

5151
multiclass V_INTERP_P1_F32_m : VINTRP_m <
5252
0x00000000,
53-
(outs VGPR_32:$dst),
53+
(outs VGPR_32:$vdst),
5454
(ins VGPR_32:$i, i32imm:$attr_chan, i32imm:$attr),
55-
"v_interp_p1_f32 $dst, $i, $attr_chan, $attr, [m0]",
56-
[(set f32:$dst, (AMDGPUinterp_p1 f32:$i, (i32 imm:$attr_chan),
57-
(i32 imm:$attr)))]
55+
"v_interp_p1_f32 $vdst, $i, $attr_chan, $attr, [m0]",
56+
[(set f32:$vdst, (AMDGPUinterp_p1 f32:$i, (i32 imm:$attr_chan),
57+
(i32 imm:$attr)))]
5858
>;
5959

6060
let OtherPredicates = [has32BankLDS] in {
@@ -63,31 +63,31 @@ defm V_INTERP_P1_F32 : V_INTERP_P1_F32_m;
6363

6464
} // End OtherPredicates = [has32BankLDS]
6565

66-
let OtherPredicates = [has16BankLDS], Constraints = "@earlyclobber $dst", isAsmParserOnly=1 in {
66+
let OtherPredicates = [has16BankLDS], Constraints = "@earlyclobber $vdst", isAsmParserOnly=1 in {
6767

6868
defm V_INTERP_P1_F32_16bank : V_INTERP_P1_F32_m;
6969

70-
} // End OtherPredicates = [has32BankLDS], Constraints = "@earlyclobber $dst", isAsmParserOnly=1
70+
} // End OtherPredicates = [has32BankLDS], Constraints = "@earlyclobber $vdst", isAsmParserOnly=1
7171

72-
let DisableEncoding = "$src0", Constraints = "$src0 = $dst" in {
72+
let DisableEncoding = "$src0", Constraints = "$src0 = $vdst" in {
7373

7474
defm V_INTERP_P2_F32 : VINTRP_m <
7575
0x00000001,
76-
(outs VGPR_32:$dst),
76+
(outs VGPR_32:$vdst),
7777
(ins VGPR_32:$src0, VGPR_32:$j, i32imm:$attr_chan, i32imm:$attr),
78-
"v_interp_p2_f32 $dst, [$src0], $j, $attr_chan, $attr, [m0]",
79-
[(set f32:$dst, (AMDGPUinterp_p2 f32:$src0, f32:$j, (i32 imm:$attr_chan),
80-
(i32 imm:$attr)))]>;
78+
"v_interp_p2_f32 $vdst, [$src0], $j, $attr_chan, $attr, [m0]",
79+
[(set f32:$vdst, (AMDGPUinterp_p2 f32:$src0, f32:$j, (i32 imm:$attr_chan),
80+
(i32 imm:$attr)))]>;
8181

82-
} // End DisableEncoding = "$src0", Constraints = "$src0 = $dst"
82+
} // End DisableEncoding = "$src0", Constraints = "$src0 = $vdst"
8383

8484
defm V_INTERP_MOV_F32 : VINTRP_m <
8585
0x00000002,
86-
(outs VGPR_32:$dst),
86+
(outs VGPR_32:$vdst),
8787
(ins InterpSlot:$src0, i32imm:$attr_chan, i32imm:$attr),
88-
"v_interp_mov_f32 $dst, $src0, $attr_chan, $attr, [m0]",
89-
[(set f32:$dst, (AMDGPUinterp_mov (i32 imm:$src0), (i32 imm:$attr_chan),
90-
(i32 imm:$attr)))]>;
88+
"v_interp_mov_f32 $vdst, $src0, $attr_chan, $attr, [m0]",
89+
[(set f32:$vdst, (AMDGPUinterp_mov (i32 imm:$src0), (i32 imm:$attr_chan),
90+
(i32 imm:$attr)))]>;
9191

9292
} // End Uses = [M0, EXEC]
9393

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# RUN: llvm-mc -arch=amdgcn -mcpu=fiji -disassemble < %s | FileCheck %s -check-prefix=VI
22

33
#TODO: this test will fail when we fix v_interp_p2_f32 signature, remove it then
4-
#VI: v_interp_p2_f32 16, [/*Missing OP1*/], /*Missing OP2*/, /*Missing OP3*/, /*Missing OP4*/
4+
#VI: v_interp_p2_f32 v7, [v7], 16, /*Missing OP3*/, /*Missing OP4*/
55
0xd4 0x41 0x1d 0xd4

0 commit comments

Comments
 (0)