Skip to content

Commit

Permalink
Added e2k support (MCST Elbrus 2000) (microsoft#5222)
Browse files Browse the repository at this point in the history
- Add e2k target to config.guess
- Update config-ix.cmake to support e2k

E2K - this is VLIW/EPIC architecture, like Intel Itanium (IA-64)
architecture.

Ref:
1) https://en.wikipedia.org/wiki/Elbrus_2000
2)
https://lists.gnu.org/archive/html/config-patches/2015-03/msg00000.html
  • Loading branch information
r-a-sattarov authored Sep 11, 2023
1 parent 4f0ace9 commit 9cb80b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoconf/config.guess
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,9 @@ EOF
crisv32:Linux:*:*)
echo crisv32-axis-linux-gnu
exit ;;
e2k:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
frv:Linux:*:*)
echo frv-unknown-linux-gnu
exit ;;
Expand Down
2 changes: 2 additions & 0 deletions cmake/config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ elseif (LLVM_NATIVE_ARCH MATCHES "wasm64")
set(LLVM_NATIVE_ARCH WebAssembly)
elseif (LLVM_NATIVE_ARCH MATCHES "riscv64")
set(LLVM_NATIVE_ARCH RISCV)
elseif (LLVM_NATIVE_ARCH MATCHES "e2k")
set(LLVM_NATIVE_ARCH E2K)
else ()
message(FATAL_ERROR "Unknown architecture ${LLVM_NATIVE_ARCH}")
endif ()
Expand Down

0 comments on commit 9cb80b6

Please sign in to comment.