From 6404f58d2352dcad96cf5825b2be05605ceb7ee8 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Thu, 29 Apr 2021 00:09:34 +0100 Subject: [PATCH] rsqrt_test: Fix on GCC --- tests/rsqrt_test.cpp | 3 +++ tests/rsqrt_test_fn.s | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/rsqrt_test.cpp b/tests/rsqrt_test.cpp index 911b2030..735aefc9 100644 --- a/tests/rsqrt_test.cpp +++ b/tests/rsqrt_test.cpp @@ -27,6 +27,9 @@ extern "C" u32 rsqrt_fallback(u32 value) { FP::FPSR fpsr; return FP::FPRSqrtEstimate(value, fpcr, fpsr); } +extern "C" u32 _rsqrt_fallback(u32 value) { + return rsqrt_fallback(value); +} void Test(u32 value) { FP::FPCR fpcr; diff --git a/tests/rsqrt_test_fn.s b/tests/rsqrt_test_fn.s index 8e985917..fa8dadee 100644 --- a/tests/rsqrt_test_fn.s +++ b/tests/rsqrt_test_fn.s @@ -17,7 +17,7 @@ .global _rsqrt_fallback .text -.intel_syntax +.intel_syntax noprefix .align 16 min_pos_denorm: