forked from OSchip/llvm-project
Recognize leavel and leaveq aliases for leave.
Validate encoding of leave in 64bit mode. llvm-svn: 125795
This commit is contained in:
parent
f922a431ee
commit
889a508157
|
@ -1293,6 +1293,9 @@ def : MnemonicAlias<"cdqe", "cltq">;
|
|||
// lret maps to lretl, it is not ambiguous with lretq.
|
||||
def : MnemonicAlias<"lret", "lretl">;
|
||||
|
||||
def : MnemonicAlias<"leavel", "leave">, Requires<[In32BitMode]>;
|
||||
def : MnemonicAlias<"leaveq", "leave">, Requires<[In64BitMode]>;
|
||||
|
||||
def : MnemonicAlias<"pop", "popl">, Requires<[In32BitMode]>;
|
||||
def : MnemonicAlias<"pop", "popq">, Requires<[In64BitMode]>;
|
||||
def : MnemonicAlias<"popf", "popfl">, Requires<[In32BitMode]>;
|
||||
|
|
|
@ -267,6 +267,9 @@
|
|||
// CHECK: leave
|
||||
leave
|
||||
|
||||
// CHECK: leave
|
||||
leavel
|
||||
|
||||
// CHECK: seto %bl
|
||||
seto %bl
|
||||
|
||||
|
@ -3330,6 +3333,10 @@
|
|||
// CHECK: encoding: [0xc9]
|
||||
leave
|
||||
|
||||
// CHECK: leave
|
||||
// CHECK: encoding: [0xc9]
|
||||
leavel
|
||||
|
||||
// CHECK: seto %bl
|
||||
// CHECK: encoding: [0x0f,0x90,0xc3]
|
||||
seto %bl
|
||||
|
|
|
@ -148,3 +148,10 @@ pshufb CPI1_0(%rip), %xmm1
|
|||
// CHECK: encoding: [0x48,0x0f,0xae,0x08]
|
||||
fxrstorq (%rax)
|
||||
|
||||
// CHECK: leave
|
||||
// CHECK: encoding: [0xc9]
|
||||
leave
|
||||
|
||||
// CHECK: leave
|
||||
// CHECK: encoding: [0xc9]
|
||||
leaveq
|
||||
|
|
Loading…
Reference in New Issue