Merge pull request #12277 from devnexen/arm64_build_fix_proposal

run fast mode disable for 64 bits invalid instructions.
This commit is contained in:
Autechre 2021-04-16 17:35:18 +02:00 committed by GitHub
commit 3fcd645a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,6 +324,7 @@ static uint64_t xgetbv_x86(uint32_t idx)
#if defined(__ARM_NEON__)
static void arm_enable_runfast_mode(void)
{
#if defined(__arm__)
/* RunFast mode. Enables flush-to-zero and some
* floating point optimizations. */
static const unsigned x = 0x04086060;
@ -337,6 +338,7 @@ static void arm_enable_runfast_mode(void)
: "=r"(r)
: "r"(x), "r"(y)
);
#endif
}
#endif