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
6 // CHECK-ILP32: "-target-abi" "ilp32"
8 // TODO: ilp32f support.
9 // RUN: not %clang -target riscv32-unknown-elf %s -o %t.o -mabi=ilp32f 2>&1 \
10 // RUN: | FileCheck -check-prefix=CHECK-ILP32F %s
12 // CHECK-ILP32F: error: unknown target ABI 'ilp32f'
14 // TODO: ilp32d support.
15 // RUN: not %clang -target riscv32-unknown-elf %s -o %t.o -mabi=ilp32d 2>&1 \
16 // RUN: | FileCheck -check-prefix=CHECK-ILP32D %s
18 // CHECK-ILP32D: error: unknown target ABI 'ilp32d'
20 // RUN: not %clang -target riscv32-unknown-elf %s -o %t.o -mabi=lp64 2>&1 \
21 // RUN: | FileCheck -check-prefix=CHECK-RV32-LP64 %s
23 // CHECK-RV32-LP64: error: unknown target ABI 'lp64'
25 // RUN: %clang -target riscv64-unknown-elf %s -### -o %t.o 2>&1 \
26 // RUN: | FileCheck -check-prefix=CHECK-LP64 %s
27 // RUN: %clang -target riscv64-unknown-elf %s -### -o %t.o -mabi=lp64 2>&1 \
28 // RUN: | FileCheck -check-prefix=CHECK-LP64 %s
30 // CHECK-LP64: "-target-abi" "lp64"
32 // TODO: lp64f support.
33 // RUN: not %clang -target riscv64-unknown-elf %s -o %t.o -mabi=lp64f 2>&1 \
34 // RUN: | FileCheck -check-prefix=CHECK-LP64F %s
36 // CHECK-LP64F: error: unknown target ABI 'lp64f'
38 // TODO: lp64d support.
39 // RUN: not %clang -target riscv64-unknown-elf %s -o %t.o -mabi=lp64d 2>&1 \
40 // RUN: | FileCheck -check-prefix=CHECK-LP64D %s
42 // CHECK-LP64D: error: unknown target ABI 'lp64d'
44 // RUN: not %clang -target riscv64-unknown-elf %s -o %t.o -mabi=ilp32 2>&1 \
45 // RUN: | FileCheck -check-prefix=CHECK-RV64-ILP32 %s
47 // CHECK-RV64-ILP32: error: unknown target ABI 'ilp32'