]> granicus.if.org Git - clang/commitdiff
[SystemZ] Add test case to verify default use of integrated assembler
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 14 Oct 2014 11:45:53 +0000 (11:45 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 14 Oct 2014 11:45:53 +0000 (11:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219679 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/systemz-as.s [new file with mode: 0644]

diff --git a/test/Driver/systemz-as.s b/test/Driver/systemz-as.s
new file mode 100644 (file)
index 0000000..154d071
--- /dev/null
@@ -0,0 +1,14 @@
+// Make sure SystemZ defaults to using the integrated assembler
+
+// RUN: %clang -target s390x-ibm-linux -### -c %s 2>&1 \
+// RUN: | FileCheck -check-prefix=DEFAULT %s
+// DEFAULT: "-cc1as"{{.*}} "-target-cpu" "z10"
+
+// RUN: %clang -target s390x-ibm-linux -integrated-as -### -c %s 2>&1 \
+// RUN: | FileCheck -check-prefix=IAS %s
+// IAS: "-cc1as"{{.*}} "-target-cpu" "z10"
+
+// RUN: %clang -target s390x-ibm-linux -no-integrated-as -### -c %s 2>&1 \
+// RUN: | FileCheck -check-prefix=NO-IAS %s
+// NO-IAS: "-march=z10"
+