[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / loongarch-abi.c
blob9359f25dae322c81cb797d0cd571650e40774303
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
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
19 // ILP32S: "-target-abi" "ilp32s"
20 // ILP32F: "-target-abi" "ilp32f"
21 // ILP32D: "-target-abi" "ilp32d"
23 // LP64S: "-target-abi" "lp64s"
24 // LP64F: "-target-abi" "lp64f"
25 // LP64D: "-target-abi" "lp64d"