forked from OSchip/llvm-project
Some assemblers do not recognize aliases pushfd, pushfq, popfd, and popfq. Just emit them as pushf and popf.
llvm-svn: 42371
This commit is contained in:
parent
5c50fd1add
commit
b93de587cb
|
@ -430,9 +430,9 @@ def PUSH32r : I<0x50, AddRegFrm, (outs), (ins GR32:$reg), "push{l}\t$reg",[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
let Defs = [ESP, EFLAGS], Uses = [ESP] in
|
let Defs = [ESP, EFLAGS], Uses = [ESP] in
|
||||||
def POPFD : I<0x9D, RawFrm, (outs), (ins), "popfd", []>;
|
def POPFD : I<0x9D, RawFrm, (outs), (ins), "popf", []>;
|
||||||
let Defs = [ESP], Uses = [ESP, EFLAGS] in
|
let Defs = [ESP], Uses = [ESP, EFLAGS] in
|
||||||
def PUSHFD : I<0x9C, RawFrm, (outs), (ins), "pushfd", []>;
|
def PUSHFD : I<0x9C, RawFrm, (outs), (ins), "pushf", []>;
|
||||||
|
|
||||||
def MovePCtoStack : I<0, Pseudo, (outs), (ins piclabel:$label),
|
def MovePCtoStack : I<0, Pseudo, (outs), (ins piclabel:$label),
|
||||||
"call\t$label", []>;
|
"call\t$label", []>;
|
||||||
|
|
|
@ -124,9 +124,9 @@ def PUSH64r : I<0x50, AddRegFrm,
|
||||||
}
|
}
|
||||||
|
|
||||||
let Defs = [RSP, EFLAGS], Uses = [RSP] in
|
let Defs = [RSP, EFLAGS], Uses = [RSP] in
|
||||||
def POPFQ : I<0x9D, RawFrm, (outs), (ins), "popfq", []>, REX_W;
|
def POPFQ : I<0x9D, RawFrm, (outs), (ins), "popf", []>, REX_W;
|
||||||
let Defs = [RSP], Uses = [RSP, EFLAGS] in
|
let Defs = [RSP], Uses = [RSP, EFLAGS] in
|
||||||
def PUSHFQ : I<0x9C, RawFrm, (outs), (ins), "pushfq", []>;
|
def PUSHFQ : I<0x9C, RawFrm, (outs), (ins), "pushf", []>;
|
||||||
|
|
||||||
def LEA64_32r : I<0x8D, MRMSrcMem,
|
def LEA64_32r : I<0x8D, MRMSrcMem,
|
||||||
(outs GR32:$dst), (ins lea64_32mem:$src),
|
(outs GR32:$dst), (ins lea64_32mem:$src),
|
||||||
|
|
Loading…
Reference in New Issue