You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. call sinf_neon(PI/2) and cosf_neon(0)
What is the expected output? What do you see instead?
I am testing sin(PI/2) and cos(0) and I expect to see 1 as result for both. By
default I see 0, but if I change the code to properly load the function
parameter it works.
What version of the product are you using? On what operating system?
I am using this code on iPad/iPhone 3GS so Cortex-A8 (iOS 4.2 Beta 2 SDK,
LLVM-GCC or GCC 4.2).
(example with the sinf_neon() function) I need to add this code before the hfp
variant of the function is called or at the top of the hfp variant for the
sinf_neon() function to produce the correct result:
asm volatile ("vdup.f32 d0, %[xInput] \n\t"
:
:[xInput] "r" (x)
:
);
because the default
asm volatile ("vdup.f32 d0, r0");
is not able to load the input value correctly.
Original issue reported on code.google.com by [email protected] on 13 Oct 2010 at 9:47
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 13 Oct 2010 at 9:47The text was updated successfully, but these errors were encountered: