Skip to content

Commit 849b10b

Browse files
committed
AMDGPU: Fix true16 d16 entry table for DS pseudos
This should be trying to use the _gfx9 variants of DS pseudos, not the base form with m0 uses.
1 parent 5892af7 commit 849b10b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/AMDGPU/DSInstructions.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,12 @@ multiclass DS_1A1D_NORET_mc<string opName, RegisterClass rc = VGPR_32> {
126126
}
127127
}
128128

129-
multiclass DS_1A1D_NORET_t16<string opName, RegisterClass rc = VGPR_32>
129+
multiclass DS_1A1D_NORET_t16<string opName, RegisterClass rc = VGPR_32>
130130
: DS_1A1D_NORET_mc<opName, rc> {
131131
let has_m0_read = 0 in {
132132
let True16Predicate = UseRealTrue16Insts in {
133-
def "_t16" : DS_1A1D_NORET<opName#"_t16", VGPR_16>, True16D16Table<NAME#"_D16_HI", NAME>;
133+
def "_t16" : DS_1A1D_NORET<opName#"_t16", VGPR_16>,
134+
True16D16Table<NAME#"_D16_HI", NAME#"_gfx9">;
134135
}
135136
}
136137
}

0 commit comments

Comments
 (0)