(outs), (ins), "leave", []>;
let Defs = [ESP], Uses = [ESP] in {
-def POP32r : I<0x58, AddRegFrm,
- (outs GR32:$reg), (ins), "pop{l}\t$reg", []>;
+def POP32r : I<0x58, AddRegFrm, (outs GR32:$reg), (ins), "pop{l}\t$reg", []>;
-def PUSH32r : I<0x50, AddRegFrm,
- (outs), (ins GR32:$reg), "push{l}\t$reg", []>;
+def PUSH32r : I<0x50, AddRegFrm, (outs), (ins GR32:$reg), "push{l}\t$reg",[]>;
}
+let Defs = [ESP, EFLAGS], Uses = [ESP] in
+def POPD : I<0x9D, RawFrm, (outs), (ins), "popfd", []>;
+let Defs = [ESP], Uses = [ESP, EFLAGS] in
+def PUSHFD : I<0x9C, RawFrm, (outs), (ins), "pushfd", []>;
+
def MovePCtoStack : I<0, Pseudo, (outs), (ins piclabel:$label),
"call\t$label", []>;
(outs), (ins GR64:$reg), "push{q}\t$reg", []>;
}
+let Defs = [RSP, EFLAGS], Uses = [RSP] in
+def POPQ : I<0x9D, RawFrm, (outs), (ins), "popfq", []>, REX_W;
+let Defs = [RSP], Uses = [RSP, EFLAGS] in
+def PUSHFQ : I<0x9C, RawFrm, (outs), (ins), "pushfq", []>;
+
def LEA64_32r : I<0x8D, MRMSrcMem,
(outs GR32:$dst), (ins lea64_32mem:$src),
"lea{l}\t{$src|$dst}, {$dst|$src}",