mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Introduce native support for MacOS ARM64
There's a new program named ape/ape-m1.c which will be used to build an embeddable binary that can load ape and elf executables. The support is mostly working so far, but still chasing down ABI issues.
This commit is contained in:
parent
b852650c08
commit
1422e96b4e
757 changed files with 2988 additions and 1321 deletions
|
@ -38,13 +38,13 @@ void testlib_benchwarmup(void) {
|
|||
"vmovdqa\t%%ymm0,%0\n\t"
|
||||
"vzeroall"
|
||||
: "=m"(g_avx2_juiceup_quadwords_)
|
||||
: "m"(g_avx2_juiceup_quadwords_), "r"(&_base[0]));
|
||||
: "m"(g_avx2_juiceup_quadwords_), "r"(&__executable_start[0]));
|
||||
asm("vmovapd\t%1,%%ymm1\n\t"
|
||||
"vfmadd132pd\t(%2),%%ymm1,%%ymm1\n\t"
|
||||
"vmovapd\t%%ymm1,%0\n\t"
|
||||
"vzeroall"
|
||||
: "=m"(g_avx2_juiceup_doubles_)
|
||||
: "m"(g_avx2_juiceup_doubles_), "r"(&_base[32]));
|
||||
: "m"(g_avx2_juiceup_doubles_), "r"(&__executable_start[32]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue