mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 04:56:51 +00:00
MC/X86: Add alias for setz, setnz, jz, jnz.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3422cf05a8
commit
4c361972fd
@ -586,6 +586,10 @@ ParseInstruction(const StringRef &Name, SMLoc NameLoc,
|
||||
.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));
|
||||
|
||||
|
@ -106,6 +106,23 @@ movl 0, %eax // CHECK: movl 0, %eax # encoding: [0x8b,0x04,0x25,A,A,A,A]
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user