Skip to content

Commit 15e25dd

Browse files
committed
RISC-V: Add RV32E multilibs
This commit adds a minimum set of multilibs required to build the RV32E (embedded) targets: * rv32em, ilp32e * rv32emc, ilp32e Note that we build a separate multilib variant for the C (compressed) extension instead of mapping to the uncompressed variant because the RV32E instruction set is intended to be used in highly resource- constrained devices such as microcontrollers. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 7960bae commit 15e25dd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

gcc/config/riscv/t-zephyr

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file was generated by multilib-generator with the command:
2-
# ./multilib-generator rv32im-ilp32--c rv32imac-ilp32-- rv32imafc-ilp32f-- rv32imafd-ilp32d--c rv64imac-lp64-- rv64imafdc-lp64d-- rv64imafd-lp64d--
3-
MULTILIB_OPTIONS = march=rv32im/march=rv32imc/march=rv32imac/march=rv32imafc/march=rv32imafd/march=rv32imafdc/march=rv32g/march=rv32gc/march=rv64imac/march=rv64imafdc/march=rv64gc/march=rv64imafd/march=rv64g mabi=ilp32/mabi=ilp32f/mabi=ilp32d/mabi=lp64/mabi=lp64d
2+
# ./multilib-generator rv32im-ilp32--c rv32imac-ilp32-- rv32imafc-ilp32f-- rv32imafd-ilp32d--c rv32em-ilp32e-rv32ema- rv32emc-ilp32e-rv32emac- rv64imac-lp64-- rv64imafdc-lp64d-- rv64imafd-lp64d--
3+
MULTILIB_OPTIONS = march=rv32im/march=rv32imc/march=rv32imac/march=rv32imafc/march=rv32imafd/march=rv32imafdc/march=rv32g/march=rv32gc/march=rv32em/march=rv32ema/march=rv32emc/march=rv32emac/march=rv64imac/march=rv64imafdc/march=rv64gc/march=rv64imafd/march=rv64g mabi=ilp32/mabi=ilp32f/mabi=ilp32d/mabi=ilp32e/mabi=lp64/mabi=lp64d
44
MULTILIB_DIRNAMES = rv32im \
55
rv32imc \
66
rv32imac \
@@ -9,13 +9,18 @@ rv32imafd \
99
rv32imafdc \
1010
rv32g \
1111
rv32gc \
12+
rv32em \
13+
rv32ema \
14+
rv32emc \
15+
rv32emac \
1216
rv64imac \
1317
rv64imafdc \
1418
rv64gc \
1519
rv64imafd \
1620
rv64g ilp32 \
1721
ilp32f \
1822
ilp32d \
23+
ilp32e \
1924
lp64 \
2025
lp64d
2126
MULTILIB_OPTIONS += mcmodel=medany
@@ -24,6 +29,8 @@ MULTILIB_REQUIRED = march=rv32im/mabi=ilp32 \
2429
march=rv32imac/mabi=ilp32 \
2530
march=rv32imafc/mabi=ilp32f \
2631
march=rv32imafd/mabi=ilp32d \
32+
march=rv32em/mabi=ilp32e \
33+
march=rv32emc/mabi=ilp32e \
2734
march=rv64imac/mabi=lp64 \
2835
march=rv64imafdc/mabi=lp64d \
2936
march=rv64imafd/mabi=lp64d \
@@ -34,5 +41,7 @@ MULTILIB_REUSE = march.rv32im/mabi.ilp32=march.rv32imc/mabi.ilp32 \
3441
march.rv32imafd/mabi.ilp32d=march.rv32imafdc/mabi.ilp32d \
3542
march.rv32imafd/mabi.ilp32d=march.rv32g/mabi.ilp32d \
3643
march.rv32imafd/mabi.ilp32d=march.rv32gc/mabi.ilp32d \
44+
march.rv32em/mabi.ilp32e=march.rv32ema/mabi.ilp32e \
45+
march.rv32emc/mabi.ilp32e=march.rv32emac/mabi.ilp32e \
3746
march.rv64imafdc/mabi.lp64d=march.rv64gc/mabi.lp64d \
3847
march.rv64imafd/mabi.lp64d=march.rv64g/mabi.lp64d

0 commit comments

Comments
 (0)