Skip to content

Commit 5437778

Browse files
authored
update predicate for true16/fake16
1 parent b80382f commit 5437778

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/Target/AMDGPU/VOPCInstructions.td

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ defm : ICMP_Pattern <COND_SGE, V_CMP_GE_I64_e64, i64>;
11301130
defm : ICMP_Pattern <COND_SLT, V_CMP_LT_I64_e64, i64>;
11311131
defm : ICMP_Pattern <COND_SLE, V_CMP_LE_I64_e64, i64>;
11321132

1133-
let OtherPredicates = [HasTrue16BitInsts] in {
1133+
let True16Predicate = UseFakeTrue16Insts in {
11341134
defm : ICMP_Pattern <COND_EQ, V_CMP_EQ_U16_fake16_e64, i16>;
11351135
defm : ICMP_Pattern <COND_NE, V_CMP_NE_U16_fake16_e64, i16>;
11361136
defm : ICMP_Pattern <COND_UGT, V_CMP_GT_U16_fake16_e64, i16>;
@@ -1141,9 +1141,9 @@ defm : ICMP_Pattern <COND_SGT, V_CMP_GT_I16_fake16_e64, i16>;
11411141
defm : ICMP_Pattern <COND_SGE, V_CMP_GE_I16_fake16_e64, i16>;
11421142
defm : ICMP_Pattern <COND_SLT, V_CMP_LT_I16_fake16_e64, i16>;
11431143
defm : ICMP_Pattern <COND_SLE, V_CMP_LE_I16_fake16_e64, i16>;
1144-
} // End OtherPredicates = [HasTrue16BitInsts]
1144+
} // End True16Predicate = UseFakeTrue16Insts
11451145

1146-
let OtherPredicates = [NotHasTrue16BitInsts] in {
1146+
let True16Predicate = NotHasTrue16BitInsts in {
11471147
defm : ICMP_Pattern <COND_EQ, V_CMP_EQ_U16_e64, i16>;
11481148
defm : ICMP_Pattern <COND_NE, V_CMP_NE_U16_e64, i16>;
11491149
defm : ICMP_Pattern <COND_UGT, V_CMP_GT_U16_e64, i16>;
@@ -1154,7 +1154,7 @@ defm : ICMP_Pattern <COND_SGT, V_CMP_GT_I16_e64, i16>;
11541154
defm : ICMP_Pattern <COND_SGE, V_CMP_GE_I16_e64, i16>;
11551155
defm : ICMP_Pattern <COND_SLT, V_CMP_LT_I16_e64, i16>;
11561156
defm : ICMP_Pattern <COND_SLE, V_CMP_LE_I16_e64, i16>;
1157-
} // End OtherPredicates = [NotHasTrue16BitInsts]
1157+
} // End True16Predicate = NotHasTrue16BitInsts
11581158

11591159
multiclass FCMP_Pattern <PatFrags cond, Instruction inst, ValueType vt> {
11601160
let WaveSizePredicate = isWave64 in
@@ -1215,7 +1215,7 @@ defm : FCMP_Pattern <COND_UGE, V_CMP_NLT_F64_e64, f64>;
12151215
defm : FCMP_Pattern <COND_ULT, V_CMP_NGE_F64_e64, f64>;
12161216
defm : FCMP_Pattern <COND_ULE, V_CMP_NGT_F64_e64, f64>;
12171217

1218-
let OtherPredicates = [HasTrue16BitInsts] in {
1218+
let True16Predicate = UseFakeTrue16Insts in {
12191219
defm : FCMP_Pattern <COND_O, V_CMP_O_F16_fake16_e64, f16>;
12201220
defm : FCMP_Pattern <COND_UO, V_CMP_U_F16_fake16_e64, f16>;
12211221
defm : FCMP_Pattern <COND_OEQ, V_CMP_EQ_F16_fake16_e64, f16>;
@@ -1231,9 +1231,9 @@ defm : FCMP_Pattern <COND_UGT, V_CMP_NLE_F16_fake16_e64, f16>;
12311231
defm : FCMP_Pattern <COND_UGE, V_CMP_NLT_F16_fake16_e64, f16>;
12321232
defm : FCMP_Pattern <COND_ULT, V_CMP_NGE_F16_fake16_e64, f16>;
12331233
defm : FCMP_Pattern <COND_ULE, V_CMP_NGT_F16_fake16_e64, f16>;
1234-
} // End OtherPredicates = [HasTrue16BitInsts]
1234+
} // End True16Predicate = UseFakeTrue16Insts
12351235

1236-
let OtherPredicates = [NotHasTrue16BitInsts] in {
1236+
let True16Predicate = NotHasTrue16BitInsts in {
12371237
defm : FCMP_Pattern <COND_O, V_CMP_O_F16_e64, f16>;
12381238
defm : FCMP_Pattern <COND_UO, V_CMP_U_F16_e64, f16>;
12391239
defm : FCMP_Pattern <COND_OEQ, V_CMP_EQ_F16_e64, f16>;
@@ -1249,7 +1249,7 @@ defm : FCMP_Pattern <COND_UGT, V_CMP_NLE_F16_e64, f16>;
12491249
defm : FCMP_Pattern <COND_UGE, V_CMP_NLT_F16_e64, f16>;
12501250
defm : FCMP_Pattern <COND_ULT, V_CMP_NGE_F16_e64, f16>;
12511251
defm : FCMP_Pattern <COND_ULE, V_CMP_NGT_F16_e64, f16>;
1252-
} // End OtherPredicates = [NotHasTrue16BitInsts]
1252+
} // End True16Predicate = NotHasTrue16BitInsts
12531253

12541254
//===----------------------------------------------------------------------===//
12551255
// DPP Encodings

0 commit comments

Comments
 (0)