Added retl for 32-bit x86 and added retq for 64-bit x86.
llvm-svn: 104394
This commit is contained in:
parent
0624d5226c
commit
7e7482c80f
|
@ -584,6 +584,8 @@ ParseInstruction(const StringRef &Name, SMLoc NameLoc,
|
|||
.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));
|
||||
|
||||
|
|
|
@ -84,3 +84,8 @@ int $255
|
|||
popf
|
||||
// CHECK: popfl # encoding: [0x9d]
|
||||
popfl
|
||||
|
||||
// rdar://8014869
|
||||
retl
|
||||
// CHECK: ret
|
||||
// CHECK: encoding: [0xc3]
|
||||
|
|
|
@ -104,3 +104,8 @@ movl 0, %eax // CHECK: movl 0, %eax # encoding: [0x8b,0x04,0x25,A,A,A,A]
|
|||
// CHECK: movq $10, %rax
|
||||
// CHECK: encoding: [0x48,0xc7,0xc0,0x0a,0x00,0x00,0x00]
|
||||
movq $10, %rax
|
||||
|
||||
// rdar://8014869
|
||||
retq
|
||||
// CHECK: ret
|
||||
// CHECK: encoding: [0xc3]
|
||||
|
|
Loading…
Reference in New Issue