forked from OSchip/llvm-project
Set isBranch and isTerminator bits on all branch instructions.
llvm-svn: 14469
This commit is contained in:
parent
2f0cda8b2a
commit
767fa11096
|
@ -1298,6 +1298,8 @@ def AND : PPC32InstPattern5 <"and", Gpr, Gpr, Gpr, 31, 56, 0, 0>;
|
|||
def ANDo : PPC32InstPattern5 <"and.", Gpr, Gpr, Gpr, 31, 57, 0, 0>;
|
||||
def ANDC : PPC32InstPattern5 <"andc", Gpr, Gpr, Gpr, 31, 120, 0, 0>;
|
||||
def ANDCo : PPC32InstPattern5 <"andc.", Gpr, Gpr, Gpr, 31, 121, 0, 0>;
|
||||
|
||||
let isBranch = 1, isTerminator = 1 in {
|
||||
def B : PPC32InstPattern6 <"b", PCRelimm24, 18, 0, 0, 0>;
|
||||
def BA : PPC32InstPattern6 <"ba", Imm24, 18, 0, 0, 0>;
|
||||
def BL : PPC32InstPattern6 <"bl", PCRelimm24, 18, 1, 0, 0>;
|
||||
|
@ -1461,6 +1463,8 @@ def BUNCTR : PPC32InstPattern12 <"bunctr", Crf, Imm2, 620, 0, 32, 0, 0>;
|
|||
def BUNCTRL : PPC32InstPattern12 <"bunctrl", Crf, Imm2, 620, 0, 33, 0, 0>;
|
||||
def BNUCTR : PPC32InstPattern12 <"bnuctr", Crf, Imm2, 612, 0, 32, 0, 0>;
|
||||
def BNUCTRL : PPC32InstPattern12 <"bnuctrl", Crf, Imm2, 612, 0, 33, 0, 0>;
|
||||
}
|
||||
|
||||
def CMPI : PPC32InstPattern13 <"cmpi", Imm3, Imm1, Gpr, Simm16, 11, 0, 0, 0>;
|
||||
def CMPWI : PPC32InstPattern14 <"cmpwi", Imm3, Gpr, Simm16, 11, 0, 0, 0>;
|
||||
def CMPDI : PPC32InstPattern14 <"cmpdi", Imm3, Gpr, Simm16, 11, 1, 0, 0>;
|
||||
|
|
Loading…
Reference in New Issue