@@ -76,23 +76,23 @@ let Interpretation64Bit = 1, isCodeGenOnly = 1 in {
76
76
let isTerminator = 1, isBarrier = 1, PPC970_Unit = 7, hasSideEffects = 0 in {
77
77
let isReturn = 1, isPredicable = 1, Uses = [LR8, RM] in
78
78
def BLR8 : XLForm_2_ext<19, 16, 20, 0, 0, (outs), (ins), "blr", IIC_BrB,
79
- [(PPCretglue)]>, Requires<[In64BitMode ]>;
79
+ [(PPCretglue)]>, Requires<[IsPPC64 ]>;
80
80
let isBranch = 1, isIndirectBranch = 1, Uses = [CTR8] in {
81
81
let isPredicable = 1 in
82
82
def BCTR8 : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", IIC_BrB,
83
83
[]>,
84
- Requires<[In64BitMode ]>;
84
+ Requires<[IsPPC64 ]>;
85
85
def BCCCTR8 : XLForm_2_br<19, 528, 0, (outs), (ins (pred $BIBO, $CR):$cond),
86
86
"b${cond:cc}ctr${cond:pm} ${cond:reg}", IIC_BrB,
87
87
[]>,
88
- Requires<[In64BitMode ]>;
88
+ Requires<[IsPPC64 ]>;
89
89
90
90
def BCCTR8 : XLForm_2_br2<19, 528, 12, 0, (outs), (ins crbitrc:$BI),
91
91
"bcctr 12, $BI, 0", IIC_BrB, []>,
92
- Requires<[In64BitMode ]>;
92
+ Requires<[IsPPC64 ]>;
93
93
def BCCTR8n : XLForm_2_br2<19, 528, 4, 0, (outs), (ins crbitrc:$BI),
94
94
"bcctr 4, $BI, 0", IIC_BrB, []>,
95
- Requires<[In64BitMode ]>;
95
+ Requires<[IsPPC64 ]>;
96
96
}
97
97
}
98
98
@@ -160,20 +160,20 @@ let isCall = 1, PPC970_Unit = 7, Defs = [LR8], hasSideEffects = 0 in {
160
160
let isPredicable = 1 in
161
161
def BCTRL8 : XLForm_2_ext<19, 528, 20, 0, 1, (outs), (ins),
162
162
"bctrl", IIC_BrB, [(PPCbctrl)]>,
163
- Requires<[In64BitMode ]>;
163
+ Requires<[IsPPC64 ]>;
164
164
165
165
let isCodeGenOnly = 1 in {
166
166
def BCCCTRL8 : XLForm_2_br<19, 528, 1, (outs), (ins (pred $BIBO, $CR):$cond),
167
167
"b${cond:cc}ctrl${cond:pm} ${cond:reg}", IIC_BrB,
168
168
[]>,
169
- Requires<[In64BitMode ]>;
169
+ Requires<[IsPPC64 ]>;
170
170
171
171
def BCCTRL8 : XLForm_2_br2<19, 528, 12, 1, (outs), (ins crbitrc:$BI),
172
172
"bcctrl 12, $BI, 0", IIC_BrB, []>,
173
- Requires<[In64BitMode ]>;
173
+ Requires<[IsPPC64 ]>;
174
174
def BCCTRL8n : XLForm_2_br2<19, 528, 4, 1, (outs), (ins crbitrc:$BI),
175
175
"bcctrl 4, $BI, 0", IIC_BrB, []>,
176
- Requires<[In64BitMode ]>;
176
+ Requires<[IsPPC64 ]>;
177
177
}
178
178
}
179
179
}
@@ -207,7 +207,7 @@ let isCall = 1, PPC970_Unit = 7, Defs = [LR8, RM], hasSideEffects = 0,
207
207
let isPredicable = 1 in
208
208
def BCTRL8_RM : XLForm_2_ext<19, 528, 20, 0, 1, (outs), (ins),
209
209
"bctrl", IIC_BrB, [(PPCbctrl_rm)]>,
210
- Requires<[In64BitMode ]>;
210
+ Requires<[IsPPC64 ]>;
211
211
}
212
212
}
213
213
@@ -218,7 +218,7 @@ let isCall = 1, PPC970_Unit = 7, isCodeGenOnly = 1,
218
218
(ins (memrix $D, $RA):$src),
219
219
"bctrl\n\tld 2, $src", IIC_BrB,
220
220
[(PPCbctrl_load_toc iaddrX4:$src)]>,
221
- Requires<[In64BitMode ]>;
221
+ Requires<[IsPPC64 ]>;
222
222
}
223
223
224
224
let isCall = 1, PPC970_Unit = 7, isCodeGenOnly = 1,
@@ -228,7 +228,7 @@ let isCall = 1, PPC970_Unit = 7, isCodeGenOnly = 1,
228
228
(ins (memrix $D, $RA):$src),
229
229
"bctrl\n\tld 2, $src", IIC_BrB,
230
230
[(PPCbctrl_load_toc_rm iaddrX4:$src)]>,
231
- Requires<[In64BitMode ]>;
231
+ Requires<[IsPPC64 ]>;
232
232
}
233
233
234
234
} // Interpretation64Bit
@@ -449,7 +449,7 @@ let isTerminator = 1, isBarrier = 1, PPC970_Unit = 7, isBranch = 1,
449
449
isIndirectBranch = 1, isCall = 1, isReturn = 1, Uses = [CTR8, RM] in
450
450
def TAILBCTR8 : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", IIC_BrB,
451
451
[]>,
452
- Requires<[In64BitMode ]>;
452
+ Requires<[IsPPC64 ]>;
453
453
454
454
let isBranch = 1, isTerminator = 1, hasCtrlDep = 1, PPC970_Unit = 7,
455
455
isBarrier = 1, isCall = 1, isReturn = 1, Uses = [RM] in
@@ -516,15 +516,15 @@ let hasSideEffects = 1 in {
516
516
def EH_SjLj_SetJmp64 : PPCCustomInserterPseudo<(outs gprc:$dst), (ins memr:$buf),
517
517
"#EH_SJLJ_SETJMP64",
518
518
[(set i32:$dst, (PPCeh_sjlj_setjmp addr:$buf))]>,
519
- Requires<[In64BitMode ]>;
519
+ Requires<[IsPPC64 ]>;
520
520
}
521
521
522
522
let hasSideEffects = 1, isBarrier = 1 in {
523
523
let isTerminator = 1 in
524
524
def EH_SjLj_LongJmp64 : PPCCustomInserterPseudo<(outs), (ins memr:$buf),
525
525
"#EH_SJLJ_LONGJMP64",
526
526
[(PPCeh_sjlj_longjmp addr:$buf)]>,
527
- Requires<[In64BitMode ]>;
527
+ Requires<[IsPPC64 ]>;
528
528
}
529
529
530
530
def MFSPR8 : XFXForm_1<31, 339, (outs g8rc:$RST), (ins i32imm:$SPR),
@@ -1948,7 +1948,7 @@ def : Pat<(atomic_load_nonext_64 XForm:$src), (LDX memrr:$src)>;
1948
1948
def : Pat<(atomic_store_64 i64:$val, DSForm:$ptr), (STD g8rc:$val, memrix:$ptr)>;
1949
1949
def : Pat<(atomic_store_64 i64:$val, XForm:$ptr), (STDX g8rc:$val, memrr:$ptr)>;
1950
1950
1951
- let Predicates = [IsISA3_0, In64BitMode ] in {
1951
+ let Predicates = [IsISA3_0, IsPPC64 ] in {
1952
1952
def : Pat<(i64 (int_ppc_cmpeqb g8rc:$a, g8rc:$b)),
1953
1953
(i64 (SETB8 (CMPEQB $a, $b)))>;
1954
1954
def : Pat<(i64 (int_ppc_setb g8rc:$a, g8rc:$b)),
@@ -1961,7 +1961,7 @@ def : Pat<(i64 (int_ppc_maddld g8rc:$a, g8rc:$b, g8rc:$c)),
1961
1961
(i64 (MADDLD8 $a, $b, $c))>;
1962
1962
}
1963
1963
1964
- let Predicates = [In64BitMode ] in {
1964
+ let Predicates = [IsPPC64 ] in {
1965
1965
def : Pat<(i64 (int_ppc_mulhd g8rc:$a, g8rc:$b)),
1966
1966
(i64 (MULHD $a, $b))>;
1967
1967
def : Pat<(i64 (int_ppc_mulhdu g8rc:$a, g8rc:$b)),
0 commit comments