[llvm-branch-commits] [llvm-branch] r104496 - in /llvm/branches/Apple/whitney: lib/Target/X86/AsmParser/X86AsmParser.cpp test/MC/AsmParser/X86/x86_64-new-encoder.s
Daniel Dunbar
daniel at zuster.org
Mon May 24 08:15:35 PDT 2010
Author: ddunbar
Date: Mon May 24 10:15:35 2010
New Revision: 104496
URL: http://llvm.org/viewvc/llvm-project?rev=104496&view=rev
Log:
MC/X86: Add alias for setz, setnz, jz, jnz.
Modified:
llvm/branches/Apple/whitney/lib/Target/X86/AsmParser/X86AsmParser.cpp
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=104496&r1=104495&r2=104496&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:35 2010
@@ -586,6 +586,10 @@
.Case("popf", Is64Bit ? "popfq" : "popfl")
.Case("retl", Is64Bit ? "retl" : "ret")
.Case("retq", Is64Bit ? "ret" : "retq")
+ .Case("setz", "sete")
+ .Case("setnz", "setne")
+ .Case("jz", "je")
+ .Case("jnz", "jne")
.Default(Name);
Operands.push_back(X86Operand::CreateToken(PatchedName, NameLoc));
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=104496&r1=104495&r2=104496&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:35 2010
@@ -106,6 +106,23 @@
movq $10, %rax
// rdar://8014869
-retq
+//
// CHECK: ret
// CHECK: encoding: [0xc3]
+ retq
+
+// CHECK: sete %al
+// CHECK: encoding: [0x0f,0x94,0xc0]
+ setz %al
+
+// CHECK: setne %al
+// CHECK: encoding: [0x0f,0x95,0xc0]
+ setnz %al
+
+// CHECK: je 0
+// CHECK: encoding: [0x74,A]
+ jz 0
+
+// CHECK: jne
+// CHECK: encoding: [0x75,A]
+ jnz 0
More information about the llvm-branch-commits
mailing list