@@ -97,8 +97,7 @@ let isExtendable = 1, opExtendable = 2, isExtentSigned = 1, opExtentBits = 8 in
97
97
//===----------------------------------------------------------------------===//
98
98
multiclass ALU32_Pbase<string mnemonic, bit isNot,
99
99
bit isPredNew> {
100
-
101
- let PNewValue = !if(isPredNew, "new", "") in
100
+ let isPredicatedNew = isPredNew in
102
101
def NAME : ALU32_rr<(outs IntRegs:$dst),
103
102
(ins PredRegs:$src1, IntRegs:$src2, IntRegs: $src3),
104
103
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew,".new) $dst = ",
@@ -144,7 +143,7 @@ defm SUB_rr : ALU32_base<"sub", "SUB", sub>, ImmRegRel, PredNewRel;
144
143
// ALU32/ALU (ADD with register-immediate form)
145
144
//===----------------------------------------------------------------------===//
146
145
multiclass ALU32ri_Pbase<string mnemonic, bit isNot, bit isPredNew> {
147
- let PNewValue = !if( isPredNew, "new", "") in
146
+ let isPredicatedNew = isPredNew in
148
147
def NAME : ALU32_ri<(outs IntRegs:$dst),
149
148
(ins PredRegs:$src1, IntRegs:$src2, s8Ext: $src3),
150
149
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew,".new) $dst = ",
@@ -228,7 +227,7 @@ multiclass TFR_Pred<bit PredNot> {
228
227
!if(PredNot, "if (!$src1", "if ($src1")#") $dst = $src2",
229
228
[]>;
230
229
// Predicate new
231
- let PNewValue = "new" in
230
+ let isPredicatedNew = 1 in
232
231
def _cdn#NAME : ALU32_rr<(outs IntRegs:$dst),
233
232
(ins PredRegs:$src1, IntRegs:$src2),
234
233
!if(PredNot, "if (!$src1", "if ($src1")#".new) $dst = $src2",
@@ -277,7 +276,7 @@ multiclass TFR64_Pred<bit PredNot> {
277
276
let isPredicatedFalse = PredNot in {
278
277
def _c#NAME : T_TFR64_Pred<PredNot, 0>;
279
278
280
- let PNewValue = "new" in
279
+ let isPredicatedNew = 1 in
281
280
def _cdn#NAME : T_TFR64_Pred<PredNot, 1>; // Predicate new
282
281
}
283
282
}
@@ -316,7 +315,7 @@ multiclass TFRI_Pred<bit PredNot> {
316
315
[]>;
317
316
318
317
// Predicate new
319
- let PNewValue = "new" in
318
+ let isPredicatedNew = 1 in
320
319
def _cdn#NAME : ALU32_rr<(outs IntRegs:$dst),
321
320
(ins PredRegs:$src1, s12Ext:$src2),
322
321
!if(PredNot, "if (!$src1", "if ($src1")#".new) $dst = #$src2",
@@ -892,7 +891,7 @@ let isReturn = 1, isTerminator = 1, isBarrier = 1, isPredicated = 1,
892
891
// Load -- MEMri operand
893
892
multiclass LD_MEMri_Pbase<string mnemonic, RegisterClass RC,
894
893
bit isNot, bit isPredNew> {
895
- let PNewValue = !if( isPredNew, "new", "") in
894
+ let isPredicatedNew = isPredNew in
896
895
def NAME : LDInst2<(outs RC:$dst),
897
896
(ins PredRegs:$src1, MEMri:$addr),
898
897
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ",
@@ -958,7 +957,7 @@ def : Pat < (i64 (load ADDRriS11_3:$addr)),
958
957
// Load - Base with Immediate offset addressing mode
959
958
multiclass LD_Idxd_Pbase<string mnemonic, RegisterClass RC, Operand predImmOp,
960
959
bit isNot, bit isPredNew> {
961
- let PNewValue = !if( isPredNew, "new", "") in
960
+ let isPredicatedNew = isPredNew in
962
961
def NAME : LDInst2<(outs RC:$dst),
963
962
(ins PredRegs:$src1, IntRegs:$src2, predImmOp:$src3),
964
963
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ",
@@ -1038,7 +1037,7 @@ def : Pat < (i64 (load (add IntRegs:$src1, s11_3ExtPred:$offset))),
1038
1037
1039
1038
multiclass LD_PostInc_Pbase<string mnemonic, RegisterClass RC, Operand ImmOp,
1040
1039
bit isNot, bit isPredNew> {
1041
- let PNewValue = !if( isPredNew, "new", "") in
1040
+ let isPredicatedNew = isPredNew in
1042
1041
def NAME : LDInst2PI<(outs RC:$dst, IntRegs:$dst2),
1043
1042
(ins PredRegs:$src1, IntRegs:$src2, ImmOp:$offset),
1044
1043
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ",
@@ -1366,7 +1365,7 @@ def SUBri_acc : MInst_acc<(outs IntRegs: $dst), (ins IntRegs:$src1,
1366
1365
1367
1366
multiclass ST_PostInc_Pbase<string mnemonic, RegisterClass RC, Operand ImmOp,
1368
1367
bit isNot, bit isPredNew> {
1369
- let PNewValue = !if( isPredNew, "new", "") in
1368
+ let isPredicatedNew = isPredNew in
1370
1369
def NAME : STInst2PI<(outs IntRegs:$dst),
1371
1370
(ins PredRegs:$src1, IntRegs:$src2, ImmOp:$offset, RC:$src3),
1372
1371
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ",
@@ -1431,7 +1430,7 @@ def : Pat<(post_store (i64 DoubleRegs:$src1), IntRegs:$src2,
1431
1430
//===----------------------------------------------------------------------===//
1432
1431
multiclass ST_MEMri_Pbase<string mnemonic, RegisterClass RC, bit isNot,
1433
1432
bit isPredNew> {
1434
- let PNewValue = !if( isPredNew, "new", "") in
1433
+ let isPredicatedNew = isPredNew in
1435
1434
def NAME : STInst2<(outs),
1436
1435
(ins PredRegs:$src1, MEMri:$addr, RC: $src2),
1437
1436
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ",
@@ -1497,7 +1496,7 @@ def : Pat<(store (i64 DoubleRegs:$src1), ADDRriS11_3:$addr),
1497
1496
//===----------------------------------------------------------------------===//
1498
1497
multiclass ST_Idxd_Pbase<string mnemonic, RegisterClass RC, Operand predImmOp,
1499
1498
bit isNot, bit isPredNew> {
1500
- let PNewValue = !if( isPredNew, "new", "") in
1499
+ let isPredicatedNew = isPredNew in
1501
1500
def NAME : STInst2<(outs),
1502
1501
(ins PredRegs:$src1, IntRegs:$src2, predImmOp:$src3, RC: $src4),
1503
1502
!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ",
0 commit comments