summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2014-10-14 11:45:53 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2014-10-14 11:45:53 +0000
commitb454930cda60eec7733285d3b5c22ff54d06680a (patch)
treee0dfa89b3b481ffa118406f6f9fb7a001f3638be
parent4eebdf22ef11eab20fc14ab269c1c58688d2547e (diff)
downloadbcm5719-llvm-b454930cda60eec7733285d3b5c22ff54d06680a.tar.gz
bcm5719-llvm-b454930cda60eec7733285d3b5c22ff54d06680a.zip
[SystemZ] Add test case to verify default use of integrated assembler
llvm-svn: 219679
-rw-r--r--clang/test/Driver/systemz-as.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Driver/systemz-as.s b/clang/test/Driver/systemz-as.s
new file mode 100644
index 00000000000..154d0710ed7
--- /dev/null
+++ b/clang/test/Driver/systemz-as.s
@@ -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"
+
OpenPOWER on IntegriCloud