]> granicus.if.org Git - clang/commitdiff
Add a clang test for r257376 (Ensure -mcpu=xscale works for arm targets).
authorDimitry Andric <dimitry@andric.com>
Tue, 12 Jan 2016 19:40:55 +0000 (19:40 +0000)
committerDimitry Andric <dimitry@andric.com>
Tue, 12 Jan 2016 19:40:55 +0000 (19:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257509 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/arm-xscale.c [new file with mode: 0644]

diff --git a/test/Driver/arm-xscale.c b/test/Driver/arm-xscale.c
new file mode 100644 (file)
index 0000000..9b00b83
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: %clang -target arm-freebsd -mcpu=xscale -### -c %s 2>&1 | FileCheck %s
+// CHECK-NOT: error: the clang compiler does not support '-mcpu=xscale'
+// CHECK: "-cc1"{{.*}} "-target-cpu" "xscale"{{.*}}