aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-26 21:28:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-26 21:28:00 +0000
commitf134131f0b7f247fa3d810d41ffafd9956f6b048 (patch)
tree9f8b30ba43d4cc7e6df8fbde5294ccbfad02837f
parent99f8c26835a13e778e3133a58cb4de98115802e9 (diff)
downloadexternal_llvm-f134131f0b7f247fa3d810d41ffafd9956f6b048.zip
external_llvm-f134131f0b7f247fa3d810d41ffafd9956f6b048.tar.gz
external_llvm-f134131f0b7f247fa3d810d41ffafd9956f6b048.tar.bz2
Some assemblers do not recognize aliases pushfd, pushfq, popfd, and popfq. Just emit them as pushf and popf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42371 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.td4
-rw-r--r--lib/Target/X86/X86InstrX86-64.td4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 4ddff14..126677d 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -430,9 +430,9 @@ def PUSH32r : I<0x50, AddRegFrm, (outs), (ins GR32:$reg), "push{l}\t$reg",[]>;
}
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
-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),
"call\t$label", []>;
diff --git a/lib/Target/X86/X86InstrX86-64.td b/lib/Target/X86/X86InstrX86-64.td
index 6b1d409..c0287c4 100644
--- a/lib/Target/X86/X86InstrX86-64.td
+++ b/lib/Target/X86/X86InstrX86-64.td
@@ -124,9 +124,9 @@ def PUSH64r : I<0x50, AddRegFrm,
}
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
-def PUSHFQ : I<0x9C, RawFrm, (outs), (ins), "pushfq", []>;
+def PUSHFQ : I<0x9C, RawFrm, (outs), (ins), "pushf", []>;
def LEA64_32r : I<0x8D, MRMSrcMem,
(outs GR32:$dst), (ins lea64_32mem:$src),