WatchOS: update default CPU for triple after t2dsp -> dsp rename
authorTim Northover <tnorthover@apple.com>
Mon, 2 Nov 2015 18:21:07 +0000 (18:21 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 2 Nov 2015 18:21:07 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251814 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
test/MC/ARM/v7k-dsp.s [new file with mode: 0644]

index d016ad8d0797399bd9881e0d32395b19643cb340..7be092ac2ca753337b846f5aa86d83f8df519c43 100644 (file)
@@ -190,9 +190,9 @@ std::string ARM_MC::ParseARMTriple(const Triple &TT, StringRef CPU) {
     break;
   case Triple::ARMSubArch_v7k:
     if (NoCPU)
-      // v7k: FeatureNEON, FeatureDB, FeatureDSPThumb2, FeatureHasRAS
+      // v7k: FeatureNEON, FeatureDB, FeatureDSP, FeatureHasRAS
       //      A7
-      ARMArchFeature = "+v7,+a7,+neon,+db,+t2dsp,+ras";
+      ARMArchFeature = "+v7,+a7,+neon,+db,+dsp,+ras";
     else
       // Use CPU to figure out the exact features.
       ARMArchFeature = "+v7";
diff --git a/test/MC/ARM/v7k-dsp.s b/test/MC/ARM/v7k-dsp.s
new file mode 100644 (file)
index 0000000..cf51017
--- /dev/null
@@ -0,0 +1,4 @@
+@ RUN: llvm-mc -triple thumbv7k-apple-watchos2.0 %s | FileCheck %s
+
+@ CHECK: usad8 r2, r1, r4
+    usad8 r2, r1, r4