[llvm-commits] [llvm] r113184 - in /llvm/trunk: lib/Target/X86/AsmParser/X86AsmParser.cpp test/MC/AsmParser/X86/x86_instructions.s
Chris Lattner
sabre at nondot.org
Mon Sep 6 16:40:57 PDT 2010
Author: lattner
Date: Mon Sep 6 18:40:56 2010
New Revision: 113184
URL: http://llvm.org/viewvc/llvm-project?rev=113184&view=rev
Log:
fix rdar://8017621 - llvm-mc can't guess encoding for "push $(1000)"
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=113184&r1=113183&r2=113184&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Mon Sep 6 18:40:56 2010
@@ -636,6 +636,7 @@
.Case("repe", "rep")
.Case("repz", "rep")
.Case("repnz", "repne")
+ .Case("push", Is64Bit ? "pushq" : "pushl")
.Case("pushf", Is64Bit ? "pushfq" : "pushfl")
.Case("popf", Is64Bit ? "popfq" : "popfl")
.Case("retl", Is64Bit ? "retl" : "ret")
Modified: llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s?rev=113184&r1=113183&r2=113184&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s (original)
+++ llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s Mon Sep 6 18:40:56 2010
@@ -173,3 +173,8 @@
outw %ax, $128
// CHECK: inb $161, %al
inb $161, %al
+
+// rdar://8017621
+// CHECK: pushq $1
+push $1
+
More information about the llvm-commits
mailing list