blob: 8b79c8462bae135276237f1daca688c8477f53f6 [file] [log] [blame]
Alex Bradbury71f45452018-01-11 13:36:56 +00001// 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
6// CHECK-ILP32: "-target-abi" "ilp32"
7
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
11
12// CHECK-ILP32F: error: unknown target ABI 'ilp32f'
13
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
17
18// CHECK-ILP32D: error: unknown target ABI 'ilp32d'
19
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
22
23// CHECK-RV32-LP64: error: unknown target ABI 'lp64'
24
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
29
30// CHECK-LP64: "-target-abi" "lp64"
31
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
35
36// CHECK-LP64F: error: unknown target ABI 'lp64f'
37
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
41
42// CHECK-LP64D: error: unknown target ABI 'lp64d'
43
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
46
47// CHECK-RV64-ILP32: error: unknown target ABI 'ilp32'