diff options
-rw-r--r-- | clang/test/Driver/systemz-as.s | 14 |
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" + |