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