| 1 |
// RUN: %clang --target=loongarch32-unknown-elf %s -fsyntax-only -### 2>&1 \ |
| 2 |
// RUN: | FileCheck --check-prefix=ILP32D %s |
| 3 |
// RUN: %clang --target=loongarch32-unknown-elf %s -fsyntax-only -### -mabi=ilp32s 2>&1 \ |
| 4 |
// RUN: | FileCheck --check-prefix=ILP32S %s |
| 5 |
// RUN: %clang --target=loongarch32-unknown-elf %s -fsyntax-only -### -mabi=ilp32f 2>&1 \ |
| 6 |
// RUN: | FileCheck --check-prefix=ILP32F %s |
| 7 |
// RUN: %clang --target=loongarch32-unknown-elf %s -fsyntax-only -### -mabi=ilp32d 2>&1 \ |
| 8 |
// RUN: | FileCheck --check-prefix=ILP32D %s |
| 9 |
|
| 10 |
// RUN: %clang --target=loongarch64-unknown-elf %s -fsyntax-only -### 2>&1 \ |
| 11 |
// RUN: | FileCheck --check-prefix=LP64D %s |
| 12 |
// RUN: %clang --target=loongarch64-unknown-elf %s -fsyntax-only -### -mabi=lp64s 2>&1 \ |
| 13 |
// RUN: | FileCheck --check-prefix=LP64S %s |
| 14 |
// RUN: %clang --target=loongarch64-unknown-elf %s -fsyntax-only -### -mabi=lp64f 2>&1 \ |
| 15 |
// RUN: | FileCheck --check-prefix=LP64F %s |
| 16 |
// RUN: %clang --target=loongarch64-unknown-elf %s -fsyntax-only -### -mabi=lp64d 2>&1 \ |
| 17 |
// RUN: | FileCheck --check-prefix=LP64D %s |
| 18 |
|
| 19 |
// RUN: %clang --target=loongarch32-linux-gnusf %s -fsyntax-only -### 2>&1 \ |
| 20 |
// RUN: | FileCheck --check-prefix=ILP32S %s |
| 21 |
// RUN: %clang --target=loongarch32-linux-gnuf32 %s -fsyntax-only -### 2>&1 \ |
| 22 |
// RUN: | FileCheck --check-prefix=ILP32F %s |
| 23 |
// RUN: %clang --target=loongarch32-linux-gnuf64 %s -fsyntax-only -### 2>&1 \ |
| 24 |
// RUN: | FileCheck --check-prefix=ILP32D %s |
| 25 |
// RUN: %clang --target=loongarch32-linux-gnu %s -fsyntax-only -### 2>&1 \ |
| 26 |
// RUN: | FileCheck --check-prefix=ILP32D %s |
| 27 |
|
| 28 |
// RUN: %clang --target=loongarch64-linux-gnusf %s -fsyntax-only -### 2>&1 \ |
| 29 |
// RUN: | FileCheck --check-prefix=LP64S %s |
| 30 |
// RUN: %clang --target=loongarch64-linux-gnuf32 %s -fsyntax-only -### 2>&1 \ |
| 31 |
// RUN: | FileCheck --check-prefix=LP64F %s |
| 32 |
// RUN: %clang --target=loongarch64-linux-gnuf64 %s -fsyntax-only -### 2>&1 \ |
| 33 |
// RUN: | FileCheck --check-prefix=LP64D %s |
| 34 |
// RUN: %clang --target=loongarch64-linux-gnu %s -fsyntax-only -### 2>&1 \ |
| 35 |
// RUN: | FileCheck --check-prefix=LP64D %s |
| 36 |
|
| 37 |
// Check that -mabi prevails in case of conflicts with the triple-implied ABI. |
| 38 |
// RUN: %clang --target=loongarch32-linux-gnuf64 %s -fsyntax-only -### -mabi=ilp32s 2>&1 \ |
| 39 |
// RUN: | FileCheck --check-prefix=ILP32S %s |
| 40 |
// RUN: %clang --target=loongarch64-linux-gnuf64 %s -fsyntax-only -### -mabi=lp64s 2>&1 \ |
| 41 |
// RUN: | FileCheck --check-prefix=LP64S %s |
| 42 |
// RUN: %clang --target=loongarch32-linux-gnu %s -fsyntax-only -### -mabi=ilp32s 2>&1 \ |
| 43 |
// RUN: | FileCheck --check-prefix=ILP32S %s |
| 44 |
// RUN: %clang --target=loongarch64-linux-gnu %s -fsyntax-only -### -mabi=lp64s 2>&1 \ |
| 45 |
// RUN: | FileCheck --check-prefix=LP64S %s |
| 46 |
|
| 47 |
// ILP32S: "-target-abi" "ilp32s" |
| 48 |
// ILP32F: "-target-abi" "ilp32f" |
| 49 |
// ILP32D: "-target-abi" "ilp32d" |
| 50 |
|
| 51 |
// LP64S: "-target-abi" "lp64s" |
| 52 |
// LP64F: "-target-abi" "lp64f" |
| 53 |
// LP64D: "-target-abi" "lp64d" |