| 1 |
// RUN: %clang -target i386 -### -no-integrated-as -c %s 2>&1 \ |
| 2 |
// RUN: | FileCheck %s -check-prefix NOIAS |
| 3 |
|
| 4 |
// NOIAS: -no-integrated-as |
| 5 |
|
| 6 |
// RUN: %clang -target i386 -### -integrated-as -c %s 2>&1 \ |
| 7 |
// RUN: | FileCheck %s -check-prefix IAS |
| 8 |
|
| 9 |
// IAS-NOT: -no-integrated-as |
| 10 |
|
| 11 |
// RUN: %clang -target i386 -### -c %s 2>&1 | FileCheck %s -check-prefix DEFAULT |
| 12 |
// RUN: %clang -target msp430 -### -c %s 2>&1 | FileCheck %s -check-prefix DEFAULT |
| 13 |
|
| 14 |
// DEFAULT-NOT: -no-integrated-as |
| 15 |
|
| 16 |
/// -c omitted on purpose, this used to crash. |
| 17 |
// RUN: not %clang --target=x86_64-sie-ps5 -### -no-integrated-as %s 2>&1 \ |
| 18 |
// RUN: | FileCheck %s -check-prefix PS5 |
| 19 |
// RUN: not %clang --target=x86_64-sie-ps5 -### -no-integrated-as -x assembler %s 2>&1 \ |
| 20 |
// RUN: | FileCheck %s -check-prefix PS5 |
| 21 |
// PS5: there is no external assembler that can be used on this platform |