| 1 |
/// This file checks options are correctly passed to cc1as for LoongArch targets. |
| 2 |
|
| 3 |
/// Check `-target-abi`. |
| 4 |
// RUN: %clang --target=loongarch32 -### -fintegrated-as -c %s 2>&1 | \ |
| 5 |
// RUN: FileCheck -DABI=ilp32d --check-prefix=ABI %s |
| 6 |
// RUN: %clang --target=loongarch32 -mabi=ilp32d -### -fintegrated-as -c %s 2>&1 | \ |
| 7 |
// RUN: FileCheck -DABI=ilp32d --check-prefix=ABI %s |
| 8 |
// RUN: %clang --target=loongarch32 -mabi=ilp32f -### -fintegrated-as -c %s 2>&1 | \ |
| 9 |
// RUN: FileCheck -DABI=ilp32f --check-prefix=ABI %s |
| 10 |
// RUN: %clang --target=loongarch32 -mabi=ilp32s -### -fintegrated-as -c %s 2>&1 | \ |
| 11 |
// RUN: FileCheck -DABI=ilp32s --check-prefix=ABI %s |
| 12 |
// RUN: %clang --target=loongarch64 -### -fintegrated-as -c %s 2>&1 | \ |
| 13 |
// RUN: FileCheck -DABI=lp64d --check-prefix=ABI %s |
| 14 |
// RUN: %clang --target=loongarch64 -mabi=lp64d -### -fintegrated-as -c %s 2>&1 | \ |
| 15 |
// RUN: FileCheck -DABI=lp64d --check-prefix=ABI %s |
| 16 |
// RUN: %clang --target=loongarch64 -mabi=lp64f -### -fintegrated-as -c %s 2>&1 | \ |
| 17 |
// RUN: FileCheck -DABI=lp64f --check-prefix=ABI %s |
| 18 |
// RUN: %clang --target=loongarch64 -mabi=lp64s -### -fintegrated-as -c %s 2>&1 | \ |
| 19 |
// RUN: FileCheck -DABI=lp64s --check-prefix=ABI %s |
| 20 |
|
| 21 |
// ALL: -cc1as |
| 22 |
|
| 23 |
// ABI: "-target-abi" "[[ABI]]" |