summaryrefslogtreecommitdiff
path: root/test/Driver/no-integrated-as.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-02-22 23:37:58 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-02-22 23:37:58 +0000
commit9c1883ccfcece3766ea9b922c267f877008312ea (patch)
treeb6e35b8305603fc0a24253c15180e244b9c45d01 /test/Driver/no-integrated-as.c
parent0474d7c347bfada0f39b50f60f25aab3951fb265 (diff)
downloadclang-9c1883ccfcece3766ea9b922c267f877008312ea.tar.gz
clang-9c1883ccfcece3766ea9b922c267f877008312ea.tar.bz2
clang-9c1883ccfcece3766ea9b922c267f877008312ea.tar.xz
clang: forward -no-integrated-as from the driver
Forward the -no-integrated-as option to -cc1 rather than simply invoking the appropriate tool. This is useful since this option has been overloaded to permit disabling of parsing inline assembly at the MC layer. This re-applies the previous version of the patch with a renaming of the driver option to the public name rather than the internal name (-target vs -triple). The actual failure is fixed separately of an overly aggressive negative pattern match in the MIPS driver tests. It also fixes the incorrect test for targets that have the integrated assembler disabled by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/no-integrated-as.c')
-rw-r--r--test/Driver/no-integrated-as.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Driver/no-integrated-as.c b/test/Driver/no-integrated-as.c
new file mode 100644
index 0000000000..812ab1e646
--- /dev/null
+++ b/test/Driver/no-integrated-as.c
@@ -0,0 +1,19 @@
+// RUN: %clang -target i386 -### -no-integrated-as -c %s 2>&1 \
+// RUN: | FileCheck %s -check-prefix NOIAS
+
+// NOIAS: -no-integrated-as
+
+// RUN: %clang -target i386 -### -integrated-as -c %s 2>&1 \
+// RUN: | FileCheck %s -check-prefix IAS
+
+// IAS-NOT: -no-integrated-as
+
+// RUN: %clang -target i386 -### -c %s 2>&1 | FileCheck %s -check-prefix DEFAULT
+
+// DEFAULT-NOT: -no-integrated-as
+
+// RUN: %clang -target msp430 -### -c %s 2>&1 \
+// RUN: | FileCheck %s -check-prefix NO-IAS-DEFAULT
+
+// NO-IAS-DEFAULT: -no-integrated-as
+