| 1 | // Make sure SystemZ defaults to using the integrated assembler |
| 2 | |
| 3 | // RUN: %clang -target s390x-ibm-linux -### -c %s 2>&1 \ |
| 4 | // RUN: | FileCheck -check-prefix=IAS %s |
| 5 | |
| 6 | // RUN: %clang -target s390x-ibm-linux -integrated-as -### -c %s 2>&1 \ |
| 7 | // RUN: | FileCheck -check-prefix=IAS %s |
| 8 | // IAS: "-cc1as"{{.*}} "-target-cpu" "z10" |
| 9 | |
| 10 | // RUN: %clang -target s390x-ibm-linux -no-integrated-as -### -c %s 2>&1 \ |
| 11 | // RUN: | FileCheck -check-prefix=NO-IAS %s |
| 12 | // NO-IAS-NOT: -cc1as |
| 13 | // NO-IAS: "-march=z10" |
| 14 | |
| 15 | |