mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
Intel syntax: Ignore mnemonic aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa2bb63d97
commit
40bced0306
@ -1,5 +1,10 @@
|
||||
// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel %s | FileCheck %s
|
||||
|
||||
_test:
|
||||
xor EAX, EAX
|
||||
ret
|
||||
|
||||
_main:
|
||||
// CHECK: movl $257, -4(%rsp)
|
||||
mov DWORD PTR [RSP - 4], 257
|
||||
// CHECK: movq $123, -16(%rsp)
|
||||
@ -16,3 +21,6 @@
|
||||
mov RCX, QWORD PTR [0]
|
||||
// CHECK: movl -24(%rsp,%rax,4), %eax
|
||||
mov EAX, DWORD PTR [RSP + 4*RAX - 24]
|
||||
// CHECK: callq _test
|
||||
call _test
|
||||
ret
|
||||
|
@ -2388,7 +2388,9 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
||||
|
||||
if (HasMnemonicAliases) {
|
||||
OS << " // Process all MnemonicAliases to remap the mnemonic.\n";
|
||||
OS << " applyMnemonicAliases(Mnemonic, AvailableFeatures);\n\n";
|
||||
OS << " // FIXME : Add an entry in AsmParserVariant to check this.\n";
|
||||
OS << " if (!VariantID)\n";
|
||||
OS << " applyMnemonicAliases(Mnemonic, AvailableFeatures);\n\n";
|
||||
}
|
||||
|
||||
// Emit code to compute the class list for this operand vector.
|
||||
|
Loading…
Reference in New Issue
Block a user