We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c8245 commit 4a7ffebCopy full SHA for 4a7ffeb
llvm/lib/Target/AMDGPU/SIInstructions.td
@@ -2163,7 +2163,18 @@ def : GCNPat <
2163
(S_MOV_B32 $ga)
2164
>;
2165
2166
-def : GCNPat <
+foreach pred = [NotHasTrue16BitInsts, UseFakeTrue16Insts] in {
2167
+ let True16Predicate = pred in
2168
+ def : GCNPat <
2169
+ (VGPRImm<(i16 imm)>:$imm),
2170
+ (V_MOV_B32_e32 imm:$imm)
2171
+ >;
2172
+}
2173
+let True16Predicate = UseRealTrue16Insts in
2174
+def : GCNPat <
2175
2176
+ (V_MOV_B16_t16_e64 0, imm:$imm, 0)
2177
+>;
2178
(VGPRImm<(i16 imm)>:$imm),
2179
(V_MOV_B32_e32 imm:$imm)
2180
0 commit comments