Skip to content

Commit 4cbf336

Browse files
committed
toolchain/esp: Add test for 'xesppie' multilib mapping for esp32-p4
1 parent 8230af6 commit 4cbf336

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

clang/test/Driver/Inputs/basic_riscv32_esp_tree/lib/clang-runtimes/multilib.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,12 @@ Mappings:
246246
- Match: -march=rv32gc
247247
Flags:
248248
- -march=rv32imafc_zicsr_zifencei
249+
250+
# Below is a workaround to support multilib for xesppie variant
251+
# Currently it is added for ESP32-P4 arch only
252+
- Match: -march=rv32imafc_xesppie
253+
Flags:
254+
- -march=rv32imafc_zicsr_zifencei
255+
- Match: -march=rv32imafc_zicsr_zifencei_xesppie
256+
Flags:
257+
- -march=rv32imafc_zicsr_zifencei

clang/test/Driver/baremetal-esp.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@
252252
// RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf -march=rv32gc -mabi=ilp32f \
253253
// RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \
254254
// RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IMAFC %s
255+
// RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf -march=rv32imafc_zicsr_zifencei_xesppie -mabi=ilp32f \
256+
// RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \
257+
// RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IMAFC %s
258+
// RUN: %t/basic_riscv32_esp_tree/bin/clang %s -### 2>&1 --target=riscv32-esp-elf -march=rv32imafc_xesppie -mabi=ilp32f \
259+
// RUN: --sysroot=%t/basic_riscv32_esp_tree/lib/clang-runtimes \
260+
// RUN: | FileCheck --check-prefix=CHECK-ESP-RV32IMAFC %s
255261
// CHECK-ESP-RV32IMAFC: "-cc1" "-triple" "riscv32-esp-unknown-elf"
256262
// CHECK-ESP-RV32IMAFC-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
257263
// CHECK-ESP-RV32IMAFC-SAME: "-isysroot" "[[SYSROOT:[^"]*]]"

0 commit comments

Comments
 (0)