Commit Graph

11 Commits

Author SHA1 Message Date
Cameron Cawley
005c2d38c5 Set OPTIMAL_CMP for 32-bit PowerPC 2024-12-22 13:00:14 +01:00
David Korth
8976caa3f0 Handle ARM64EC as ARM64.
ARM64EC is a new ARM64 variant introduced in Windows 11 that uses an
ABI similar to AMD64, which allows for better interoperability with
emulated AMD64 applications. When enabled in MSVC, it defines _M_AMD64
and _M_ARM64EC, but not _M_ARM64, so we need to check for _M_ARM64EC.
2023-07-16 12:42:38 +02:00
Leslie Zhai
70da27b86e Initial loongarch port 2023-07-16 12:42:24 +02:00
Piotr Sikora
60ed1ab3e7 Add support for compiling to WebAssembly using Emscripten.
Co-authored-by: Nathan Moinvaziri <nathan@nathanm.com>
2022-12-05 23:24:02 +01:00
Mika Lindqvist
b18c815056 Treat arm64 as aarch64 for Apple M1. 2022-08-15 16:52:53 +02:00
Nathan Moinvaziri
f77af71e77 Fixed trailing whitespaces and missing new lines. 2021-09-22 16:00:46 +02:00
Ilya Kurdyukov
5cfb7f15e3 fix: unterminated #elif in detect-arch.c
```
$ gcc detect-arch.c 
detect-arch.c:8:6: error: #error archfound x86_64
     #error archfound x86_64
      ^~~~~
detect-arch.c:7:0: error: unterminated #elif
 #if defined(__x86_64__) || defined(_M_X64)
```
2021-06-11 13:11:20 +02:00
Vladimir Smirnov
81f1c8a41b Fix cmake detection of risc-v (32 and 64 bit)
Add a case to detect risc-v architectures.

Fixes #941
2021-05-06 14:03:30 +02:00
Matheus Castanho
a7fd60eb33 cmake: Use consistent arch names for POWER targets
The arch detection code used by cmake build exports ppc arch names in an
abbreviated way, e.g. ppc64le instead of powerpc64le. Some parts of
CMakeLists.txt are using the longer form instead, which will not
properly match the desired subarch as expected. Switch to using the
longer form everywhere for consistency with 'configure' script and with
arch names obtained when running under QEMU.
2020-06-27 17:42:55 +02:00
Matheus Castanho
b81f4ee96d Preparation for POWER optimizations
Add the scaffolding for future optimizations for POWER processors. Now
the build is capable of correctly detecting multiple processor
sub-architectures (ppc, ppc64 and ppc64le) and also if features
needed for the optimizations are available during build and runtime.

With these changes, adding a new optimized function for POWER should be
as simple as adding a new file under arch/power/, appending build
instructions to the build files and editing functable.c accordingly.

The UNALIGNED_OK flag is now also added by default for powerpc64le
targets.
2020-06-08 14:47:17 +02:00
Nathan Moinvaziri
1e280ca517 Rename archdetect files to detect-arch to match detect-sanitizer. 2020-05-24 14:49:30 +02:00