[PATCH] [ARM] Add tests for armv6s[-]m being an alias to armv6[-]m

Bradley Smith bradley.smith at arm.com
Mon Feb 9 08:26:07 PST 2015


This patch adds the testcases for D7504

LLVM currently does not model the M-class OS extension, but instead enables its features by default for armv6-m targets. Technically the correct name for this architecture would be armv6s-m, although in order to avoid breaking current use cases this patch adds armv6s-m as an alias to armv6-m instead of properly modelling the OS extension (which is probably not necessary).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7505

Files:
  test/Driver/arm-cortex-cpus.c

Index: test/Driver/arm-cortex-cpus.c
===================================================================
--- test/Driver/arm-cortex-cpus.c
+++ test/Driver/arm-cortex-cpus.c
@@ -69,6 +69,8 @@
 
 // RUN: %clang -target armv6m -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V6M %s
 // RUN: %clang -target arm -march=armv6m -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V6M %s
+// RUN: %clang -target armv6sm -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V6M %s
+// RUN: %clang -target arm -march=armv6sm -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V6M %s
 // CHECK-V6M: "-cc1"{{.*}} "-triple" "thumbv6m-{{.*}} "-target-cpu" "cortex-m0"
 
 // RUN: %clang -target armv6m -mbig-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V6M-BIG %s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7505.19584.patch
Type: text/x-patch
Size: 747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150209/81abcfc9/attachment.bin>


More information about the cfe-commits mailing list