forked from OSchip/llvm-project
[X86] Add support for loopz, loopnz for Intel syntax
According to x86 spec, loopz and loopnz should be supported for Intel syntax, where loopz is equivalent to loope and loopnz is equivalent to loopne. Differential Revision: http://reviews.llvm.org/D15148 llvm-svn: 254877
This commit is contained in:
parent
3a5614599a
commit
1d1aa0b0a8
|
@ -2572,8 +2572,8 @@ def : MnemonicAlias<"lret", "lretl", "att">, Requires<[Not16BitMode]>;
|
|||
def : MnemonicAlias<"leavel", "leave", "att">, Requires<[Not64BitMode]>;
|
||||
def : MnemonicAlias<"leaveq", "leave", "att">, Requires<[In64BitMode]>;
|
||||
|
||||
def : MnemonicAlias<"loopz", "loope", "att">;
|
||||
def : MnemonicAlias<"loopnz", "loopne", "att">;
|
||||
def : MnemonicAlias<"loopz", "loope">;
|
||||
def : MnemonicAlias<"loopnz", "loopne">;
|
||||
|
||||
def : MnemonicAlias<"pop", "popw", "att">, Requires<[In16BitMode]>;
|
||||
def : MnemonicAlias<"pop", "popl", "att">, Requires<[In32BitMode]>;
|
||||
|
|
|
@ -741,3 +741,8 @@ fcomip st, st(2)
|
|||
fucomip st, st(2)
|
||||
// CHECK: fcompi %st(2)
|
||||
// CHECK: fucompi %st(2)
|
||||
|
||||
loopz _foo
|
||||
loopnz _foo
|
||||
// CHECK: loope _foo
|
||||
// CHECK: loopne _foo
|
||||
|
|
Loading…
Reference in New Issue