2 // RUN: -target riscv64-unknown-elf \
3 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
4 // RUN: --print-multi-directory \
5 // RUN: -march=rv32imc -mabi=ilp32 \
6 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV32IMC-ILP32 %s
7 // GCC-MULTI-LIB-REUSE-RV32IMC-ILP32: rv32im/ilp32
8 // GCC-MULTI-LIB-REUSE-RV32IMC-ILP32-NOT: {{^.+$}}
10 // Check rv32imac won't reuse rv32im or rv32ic
12 // RUN: -target riscv64-unknown-elf \
13 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
14 // RUN: --print-multi-directory \
15 // RUN: -march=rv32imac -mabi=ilp32 \
16 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV32IMAC-ILP32 %s
17 // GCC-MULTI-LIB-REUSE-RV32IMAC-ILP32: rv32imac/ilp32
18 // GCC-MULTI-LIB-REUSE-RV32IMAC-ILP32--NOT: {{^.+$}}
21 // RUN: -target riscv64-unknown-elf \
22 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
23 // RUN: --print-multi-directory \
24 // RUN: -march=rv32iac -mabi=ilp32 \
25 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV32IAC-ILP32 %s
26 // GCC-MULTI-LIB-REUSE-RV32IAC-ILP32: rv32iac/ilp32
27 // GCC-MULTI-LIB-REUSE-RV32IAC-ILP32-NOT: {{^.+$}}
30 // RUN: -target riscv64-unknown-elf \
31 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
32 // RUN: --print-multi-directory \
33 // RUN: -march=rv32imafdc -mabi=ilp32f \
34 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV32IMAFDC-ILP32F %s
35 // GCC-MULTI-LIB-REUSE-RV32IMAFDC-ILP32F: rv32imafc/ilp32f
36 // GCC-MULTI-LIB-REUSE-RV32IMAFDC-ILP32F-NOT: {{^.+$}}
39 // RUN: -target riscv64-unknown-elf \
40 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
41 // RUN: --print-multi-directory \
42 // RUN: -march=rv32imafdc -mabi=ilp32d \
43 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV32IMAFDC-ILP32D %s
44 // GCC-MULTI-LIB-REUSE-RV32IMAFDC-ILP32D: .
45 // GCC-MULTI-LIB-REUSE-RV32IMAFDC-ILP32D-NOT: {{^.+$}}
48 // RUN: -target riscv64-unknown-elf \
49 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
50 // RUN: --print-multi-directory \
51 // RUN: -march=rv64imafc -mabi=lp64 \
52 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV64IMAFC-LP64 %s
53 // GCC-MULTI-LIB-REUSE-RV64IMAFC-LP64: rv64imac/lp64
54 // GCC-MULTI-LIB-REUSE-RV64IMAFC-LP64-NOT: {{^.+$}}
57 // RUN: -target riscv64-unknown-elf \
58 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
59 // RUN: --print-multi-directory \
60 // RUN: -march=rv32imafc_zfh -mabi=ilp32 \
61 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV32IMAFC_ZFH-ILP32 %s
62 // GCC-MULTI-LIB-REUSE-RV32IMAFC_ZFH-ILP32: rv32imac/ilp32
63 // GCC-MULTI-LIB-REUSE-RV32IMAFC_ZFH-ILP32-NOT: {{^.+$}}
66 // RUN: -target riscv64-unknown-elf \
67 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
68 // RUN: --print-multi-directory \
69 // RUN: -march=rv32iv_zvkb -mabi=ilp32 \
70 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV32I_ZVKB-ILP32 %s
71 // GCC-MULTI-LIB-REUSE-RV32I_ZVKB-ILP32: rv32i/ilp32
72 // GCC-MULTI-LIB-REUSE-RV32I_ZVKB-ILP32-NOT: {{^.+$}}
75 // RUN: -target riscv64-unknown-elf \
76 // RUN: --gcc-toolchain=%S/Inputs/multilib_riscv_elf_sdk \
77 // RUN: --print-multi-directory \
78 // RUN: -march=rv64imfc -mabi=lp64 \
79 // RUN: | FileCheck -check-prefix=GCC-MULTI-LIB-REUSE-RV64IMFC-LP64 %s
80 // GCC-MULTI-LIB-REUSE-RV64IMFC-LP64: .
81 // GCC-MULTI-LIB-REUSE-RV64IMFC-LP64-NOT: {{^.+$}}