summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrFormats.td
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-24 17:23:29 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-24 17:23:29 +0000
commit78d13e191e0f6bcb4bef5bc5c8c5f6e5be1f4070 (patch)
tree36185b726bd300a73591a7cff2f991f0b8a76a6f /lib/Target/ARM/ARMInstrFormats.td
parentb2b3d7d972f1a5aa5c96400ef036c520696b4e77 (diff)
downloadllvm-78d13e191e0f6bcb4bef5bc5c8c5f6e5be1f4070.tar.gz
llvm-78d13e191e0f6bcb4bef5bc5c8c5f6e5be1f4070.tar.bz2
llvm-78d13e191e0f6bcb4bef5bc5c8c5f6e5be1f4070.tar.xz
NEON add correct predicates for some asm aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrFormats.td')
-rw-r--r--lib/Target/ARM/ARMInstrFormats.td9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrFormats.td b/lib/Target/ARM/ARMInstrFormats.td
index 1bf0d011c2..0c10b01b6c 100644
--- a/lib/Target/ARM/ARMInstrFormats.td
+++ b/lib/Target/ARM/ARMInstrFormats.td
@@ -2022,6 +2022,15 @@ multiclass VFPDTAnyInstAlias<string opc, string asm, dag Result> {
def : VFPDataTypeInstAlias<opc, ".64", asm, Result>;
}
+multiclass NEONDTAnyInstAlias<string opc, string asm, dag Result> {
+ let Predicates = [HasNEON] in {
+ def : VFPDataTypeInstAlias<opc, ".8", asm, Result>;
+ def : VFPDataTypeInstAlias<opc, ".16", asm, Result>;
+ def : VFPDataTypeInstAlias<opc, ".32", asm, Result>;
+ def : VFPDataTypeInstAlias<opc, ".64", asm, Result>;
+}
+}
+
// The same alias classes using AsmPseudo instead, for the more complex
// stuff in NEON that InstAlias can't quite handle.
// Note that we can't use anonymous defm references here like we can