[PATCH] D68698: [test-suite] Add Architecture Detection for RISC-V
Sam Elliott via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 08:35:45 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rT374176: [test-suite] Add Architecture Detection for RISC-V (authored by lenary, committed by ).
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68698/new/
https://reviews.llvm.org/D68698
Files:
cmake/modules/DetectArchitecture.c
Index: cmake/modules/DetectArchitecture.c
===================================================================
--- cmake/modules/DetectArchitecture.c
+++ cmake/modules/DetectArchitecture.c
@@ -8,6 +8,12 @@
const char *str = "ARCHITECTURE IS Mips";
#elif defined(__powerpc__) || defined(__ppc__) || defined(__power__)
const char *str = "ARCHITECTURE IS PowerPC";
+#elif defined(__riscv)
+#if __riscv_xlen == 64
+const char *str = "ARCHITECTURE IS riscv64";
+#elif __riscv_xlen == 32
+const char *str = "ARCHITECTURE IS riscv32";
+#endif
#elif defined(__s390__)
const char *str = "ARCHITECTURE IS SystemZ";
#elif defined(__sparc__)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68698.224064.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191009/85f0c8b5/attachment.bin>
More information about the llvm-commits
mailing list