[llvm-commits] [llvm] r42371 - in /llvm/trunk/lib/Target/X86: X86InstrInfo.td X86InstrX86-64.td

Evan Cheng evan.cheng at apple.com
Wed Sep 26 14:28:00 PDT 2007


Author: evancheng
Date: Wed Sep 26 16:28:00 2007
New Revision: 42371

URL: http://llvm.org/viewvc/llvm-project?rev=42371&view=rev
Log:
Some assemblers do not recognize aliases pushfd, pushfq, popfd, and popfq. Just emit them as pushf and popf.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.td
    llvm/trunk/lib/Target/X86/X86InstrX86-64.td

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=42371&r1=42370&r2=42371&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Wed Sep 26 16:28:00 2007
@@ -430,9 +430,9 @@
 }
 
 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", []>;

Modified: llvm/trunk/lib/Target/X86/X86InstrX86-64.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrX86-64.td?rev=42371&r1=42370&r2=42371&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrX86-64.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrX86-64.td Wed Sep 26 16:28:00 2007
@@ -124,9 +124,9 @@
 }
 
 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),





More information about the llvm-commits mailing list