forked from OSchip/llvm-project
[X86] Tag VIA PadLock crypto instructions scheduler classes
llvm-svn: 320159
This commit is contained in:
parent
1ddcae665e
commit
4ba3314d55
|
@ -602,11 +602,12 @@ let Predicates = [HasXSAVES] in {
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// VIA PadLock crypto instructions
|
// VIA PadLock crypto instructions
|
||||||
let Defs = [RAX, RDI], Uses = [RDX, RDI] in
|
let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in
|
||||||
def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
|
def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
|
||||||
|
|
||||||
def : InstAlias<"xstorerng", (XSTORE)>;
|
def : InstAlias<"xstorerng", (XSTORE)>;
|
||||||
|
|
||||||
|
let SchedRW = [WriteSystem] in {
|
||||||
let Defs = [RSI, RDI], Uses = [RBX, RDX, RSI, RDI] in {
|
let Defs = [RSI, RDI], Uses = [RBX, RDX, RSI, RDI] in {
|
||||||
def XCRYPTECB : I<0xa7, MRM_C8, (outs), (ins), "xcryptecb", []>, TB;
|
def XCRYPTECB : I<0xa7, MRM_C8, (outs), (ins), "xcryptecb", []>, TB;
|
||||||
def XCRYPTCBC : I<0xa7, MRM_D0, (outs), (ins), "xcryptcbc", []>, TB;
|
def XCRYPTCBC : I<0xa7, MRM_D0, (outs), (ins), "xcryptcbc", []>, TB;
|
||||||
|
@ -621,6 +622,7 @@ let Defs = [RAX, RSI, RDI], Uses = [RAX, RSI, RDI] in {
|
||||||
}
|
}
|
||||||
let Defs = [RAX, RDX, RSI], Uses = [RAX, RSI] in
|
let Defs = [RAX, RDX, RSI], Uses = [RAX, RSI] in
|
||||||
def MONTMUL : I<0xa6, MRM_C0, (outs), (ins), "montmul", []>, TB;
|
def MONTMUL : I<0xa6, MRM_C0, (outs), (ins), "montmul", []>, TB;
|
||||||
|
} // SchedRW
|
||||||
|
|
||||||
//==-----------------------------------------------------------------------===//
|
//==-----------------------------------------------------------------------===//
|
||||||
// PKU - enable protection key
|
// PKU - enable protection key
|
||||||
|
|
Loading…
Reference in New Issue