[llvm-branch-commits] [llvm-branch] r104495 - in /llvm/branches/Apple/whitney: lib/Target/X86/AsmParser/X86AsmParser.cpp test/MC/AsmParser/X86/x86_32-new-encoder.s test/MC/AsmParser/X86/x86_64-new-encoder.s
Daniel Dunbar
daniel at zuster.org
Mon May 24 08:15:16 PDT 2010
Author: ddunbar
Date: Mon May 24 10:15:16 2010
New Revision: 104495
URL: http://llvm.org/viewvc/llvm-project?rev=104495&view=rev
Log:
Added retl for 32-bit x86 and added retq for 64-bit x86.
Modified:
llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_32-new-encoder.s
llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s
Modified: llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=104495&r1=104494&r2=104495&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp Mon May 24 10:15:16 2010
@@ -584,6 +584,8 @@
.Case("repnz", "repne")
.Case("pushf", Is64Bit ? "pushfq" : "pushfl")
.Case("popf", Is64Bit ? "popfq" : "popfl")
+ .Case("retl", Is64Bit ? "retl" : "ret")
+ .Case("retq", Is64Bit ? "ret" : "retq")
.Default(Name);
Operands.push_back(X86Operand::CreateToken(PatchedName, NameLoc));
Modified: llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_32-new-encoder.s
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_32-new-encoder.s?rev=104495&r1=104494&r2=104495&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_32-new-encoder.s (original)
+++ llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_32-new-encoder.s Mon May 24 10:15:16 2010
@@ -84,3 +84,8 @@
popf
// CHECK: popfl # encoding: [0x9d]
popfl
+
+// rdar://8014869
+retl
+// CHECK: ret
+// CHECK: encoding: [0xc3]
Modified: llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s?rev=104495&r1=104494&r2=104495&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s (original)
+++ llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-new-encoder.s Mon May 24 10:15:16 2010
@@ -104,3 +104,8 @@
// CHECK: movq $10, %rax
// CHECK: encoding: [0x48,0xc7,0xc0,0x0a,0x00,0x00,0x00]
movq $10, %rax
+
+// rdar://8014869
+retq
+// CHECK: ret
+// CHECK: encoding: [0xc3]
More information about the llvm-branch-commits
mailing list