| 1 |
/// This file checks options are correctly passed to as for LoongArch targets. |
| 2 |
|
| 3 |
/// Check `-mabi`. |
| 4 |
// RUN: %clang --target=loongarch64 -### -fno-integrated-as -c %s 2>&1 | \ |
| 5 |
// RUN: FileCheck -DABI=lp64d --check-prefix=ABI %s |
| 6 |
// RUN: %clang --target=loongarch64 -mabi=lp64d -### -fno-integrated-as -c %s 2>&1 | \ |
| 7 |
// RUN: FileCheck -DABI=lp64d --check-prefix=ABI %s |
| 8 |
// RUN: %clang --target=loongarch64 -mabi=lp64f -### -fno-integrated-as -c %s 2>&1 | \ |
| 9 |
// RUN: FileCheck -DABI=lp64f --check-prefix=ABI %s |
| 10 |
// RUN: %clang --target=loongarch64 -mabi=lp64s -### -fno-integrated-as -c %s 2>&1 | \ |
| 11 |
// RUN: FileCheck -DABI=lp64s --check-prefix=ABI %s |
| 12 |
|
| 13 |
// ALL: as |
| 14 |
|
| 15 |
// ABI: "-mabi=[[ABI]]" |