@@ -1282,7 +1282,7 @@ def RESTORE_CRBIT : PPCEmitTimePseudo<(outs crbitrc:$cond), (ins memri:$F),
12821282let isTerminator = 1, isBarrier = 1, PPC970_Unit = 7, hasSideEffects = 0 in {
12831283 let isPredicable = 1, isReturn = 1, Uses = [LR, RM] in
12841284 def BLR : XLForm_2_ext<19, 16, 20, 0, 0, (outs), (ins), "blr", IIC_BrB,
1285- [(PPCretglue)]>, Requires<[In32BitMode ]>;
1285+ [(PPCretglue)]>, Requires<[IsPPC32 ]>;
12861286 let isBranch = 1, isIndirectBranch = 1, Uses = [CTR] in {
12871287 let isPredicable = 1 in
12881288 def BCTR : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", IIC_BrB,
@@ -1455,7 +1455,7 @@ let isCall = 1, PPC970_Unit = 7, Defs = [LR] in {
14551455 let isPredicable = 1 in
14561456 def BCTRL : XLForm_2_ext<19, 528, 20, 0, 1, (outs), (ins),
14571457 "bctrl", IIC_BrB, [(PPCbctrl)]>,
1458- Requires<[In32BitMode ]>;
1458+ Requires<[IsPPC32 ]>;
14591459
14601460 let isCodeGenOnly = 1 in {
14611461 def BCCCTRL : XLForm_2_br<19, 528, 1, (outs), (ins (pred $BIBO, $CR):$cond),
@@ -1541,7 +1541,7 @@ let isCall = 1, PPC970_Unit = 7, Defs = [LR, RM], isCodeGenOnly = 1 in {
15411541 let isPredicable = 1 in
15421542 def BCTRL_RM : XLForm_2_ext<19, 528, 20, 0, 1, (outs), (ins),
15431543 "bctrl", IIC_BrB, [(PPCbctrl_rm)]>,
1544- Requires<[In32BitMode ]>;
1544+ Requires<[IsPPC32 ]>;
15451545 }
15461546}
15471547
@@ -1567,7 +1567,7 @@ let isCall = 1, PPC970_Unit = 7, isCodeGenOnly = 1,
15671567 def BCTRL_LWZinto_toc:
15681568 XLForm_2_ext_and_DForm_1<19, 528, 20, 0, 1, 32, (outs),
15691569 (ins (memri $D, $RA):$addr), "bctrl\n\tlwz 2, $addr", IIC_BrB,
1570- [(PPCbctrl_load_toc iaddr:$addr)]>, Requires<[In32BitMode ]>;
1570+ [(PPCbctrl_load_toc iaddr:$addr)]>, Requires<[IsPPC32 ]>;
15711571
15721572}
15731573
@@ -1576,7 +1576,7 @@ let isCall = 1, PPC970_Unit = 7, isCodeGenOnly = 1,
15761576 def BCTRL_LWZinto_toc_RM:
15771577 XLForm_2_ext_and_DForm_1<19, 528, 20, 0, 1, 32, (outs),
15781578 (ins (memri $D, $RA):$addr), "bctrl\n\tlwz 2, $addr", IIC_BrB,
1579- [(PPCbctrl_load_toc_rm iaddr:$addr)]>, Requires<[In32BitMode ]>;
1579+ [(PPCbctrl_load_toc_rm iaddr:$addr)]>, Requires<[IsPPC32 ]>;
15801580
15811581}
15821582
@@ -1585,7 +1585,7 @@ let isCodeGenOnly = 1, hasSideEffects = 0 in {
15851585let isTerminator = 1, isBarrier = 1, PPC970_Unit = 7, isBranch = 1,
15861586 isIndirectBranch = 1, isCall = 1, isReturn = 1, Uses = [CTR, RM] in
15871587def TAILBCTR : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", IIC_BrB,
1588- []>, Requires<[In32BitMode ]>;
1588+ []>, Requires<[IsPPC32 ]>;
15891589
15901590let isBranch = 1, isTerminator = 1, hasCtrlDep = 1, PPC970_Unit = 7,
15911591 isBarrier = 1, isCall = 1, isReturn = 1, Uses = [RM] in
@@ -1608,15 +1608,15 @@ let hasSideEffects = 1 in {
16081608 def EH_SjLj_SetJmp32 : PPCCustomInserterPseudo<(outs gprc:$dst), (ins memr:$buf),
16091609 "#EH_SJLJ_SETJMP32",
16101610 [(set i32:$dst, (PPCeh_sjlj_setjmp addr:$buf))]>,
1611- Requires<[In32BitMode ]>;
1611+ Requires<[IsPPC32 ]>;
16121612}
16131613
16141614let hasSideEffects = 1, isBarrier = 1 in {
16151615 let isTerminator = 1 in
16161616 def EH_SjLj_LongJmp32 : PPCCustomInserterPseudo<(outs), (ins memr:$buf),
16171617 "#EH_SJLJ_LONGJMP32",
16181618 [(PPCeh_sjlj_longjmp addr:$buf)]>,
1619- Requires<[In32BitMode ]>;
1619+ Requires<[IsPPC32 ]>;
16201620}
16211621
16221622// This pseudo is never removed from the function, as it serves as
@@ -3438,8 +3438,6 @@ def Msk2Imm : ImmLeaf<i32, [{ return isUInt<2>(Imm); }]>;
34383438def Msk4Imm : ImmLeaf<i32, [{ return isUInt<4>(Imm); }]>;
34393439def Msk8Imm : ImmLeaf<i32, [{ return isUInt<8>(Imm); }]>;
34403440
3441- def MMA : Predicate<"Subtarget->hasMMA()">;
3442-
34433441// Prefixed instructions may require access to the above defs at a later
34443442// time so we include this after the def.
34453443include "PPCInstrP10.td"
@@ -5146,7 +5144,7 @@ def RotateInsertByte1 {
51465144// Clear the upper half of the register when in 64-bit mode
51475145let Predicates = [In64BitMode] in
51485146def : Pat<(i32 (bitreverse i32:$A)), (RLDICL_32 RotateInsertByte1.Left, 0, 32)>;
5149- let Predicates = [In32BitMode ] in
5147+ let Predicates = [IsPPC32 ] in
51505148def : Pat<(i32 (bitreverse i32:$A)), RotateInsertByte1.Left>;
51515149
51525150// Fast 64-bit reverse bits algorithm:
0 commit comments