1 | // RUN: %clang -target riscv32-unknown-elf %s -### -o %t.o 2>&1 \ |
2 | // RUN: | FileCheck -check-prefix=CHECK-ILP32 %s |
3 | // RUN: %clang -target riscv32-unknown-elf %s -### -o %t.o -mabi=ilp32 2>&1 \ |
4 | // RUN: | FileCheck -check-prefix=CHECK-ILP32 %s |
5 | // RUN: %clang -target riscv32-unknown-elf -x assembler %s -### -o %t.o 2>&1 \ |
6 | // RUN: | FileCheck -check-prefix=CHECK-ILP32 %s |
7 | // RUN: %clang -target riscv32-unknown-elf -x assembler %s -### -o %t.o \ |
8 | // RUN: -mabi=ilp32 2>&1 | FileCheck -check-prefix=CHECK-ILP32 %s |
9 | |
10 | // CHECK-ILP32: "-target-abi" "ilp32" |
11 | |
12 | // TODO: ilp32f support. |
13 | // RUN: not %clang -target riscv32-unknown-elf %s -o %t.o -mabi=ilp32f 2>&1 \ |
14 | // RUN: | FileCheck -check-prefix=CHECK-ILP32F %s |
15 | |
16 | // CHECK-ILP32F: error: unknown target ABI 'ilp32f' |
17 | |
18 | // TODO: ilp32d support. |
19 | // RUN: not %clang -target riscv32-unknown-elf %s -o %t.o -mabi=ilp32d 2>&1 \ |
20 | // RUN: | FileCheck -check-prefix=CHECK-ILP32D %s |
21 | |
22 | // CHECK-ILP32D: error: unknown target ABI 'ilp32d' |
23 | |
24 | // RUN: not %clang -target riscv32-unknown-elf %s -o %t.o -mabi=lp64 2>&1 \ |
25 | // RUN: | FileCheck -check-prefix=CHECK-RV32-LP64 %s |
26 | |
27 | // CHECK-RV32-LP64: error: unknown target ABI 'lp64' |
28 | |
29 | // RUN: %clang -target riscv64-unknown-elf %s -### -o %t.o 2>&1 \ |
30 | // RUN: | FileCheck -check-prefix=CHECK-LP64 %s |
31 | // RUN: %clang -target riscv64-unknown-elf %s -### -o %t.o -mabi=lp64 2>&1 \ |
32 | // RUN: | FileCheck -check-prefix=CHECK-LP64 %s |
33 | // RUN: %clang -target riscv64-unknown-elf -x assembler %s -### -o %t.o 2>&1 \ |
34 | // RUN: | FileCheck -check-prefix=CHECK-LP64 %s |
35 | // RUN: %clang -target riscv64-unknown-elf -x assembler %s -### -o %t.o \ |
36 | // RUN: -mabi=lp64 2>&1 | FileCheck -check-prefix=CHECK-LP64 %s |
37 | |
38 | // CHECK-LP64: "-target-abi" "lp64" |
39 | |
40 | // TODO: lp64f support. |
41 | // RUN: not %clang -target riscv64-unknown-elf %s -o %t.o -mabi=lp64f 2>&1 \ |
42 | // RUN: | FileCheck -check-prefix=CHECK-LP64F %s |
43 | |
44 | // CHECK-LP64F: error: unknown target ABI 'lp64f' |
45 | |
46 | // TODO: lp64d support. |
47 | // RUN: not %clang -target riscv64-unknown-elf %s -o %t.o -mabi=lp64d 2>&1 \ |
48 | // RUN: | FileCheck -check-prefix=CHECK-LP64D %s |
49 | |
50 | // CHECK-LP64D: error: unknown target ABI 'lp64d' |
51 | |
52 | // RUN: not %clang -target riscv64-unknown-elf %s -o %t.o -mabi=ilp32 2>&1 \ |
53 | // RUN: | FileCheck -check-prefix=CHECK-RV64-ILP32 %s |
54 | |
55 | // CHECK-RV64-ILP32: error: unknown target ABI 'ilp32' |
56 | |