Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc: conjf suboptimal #67

Open
olajep opened this issue Oct 7, 2016 · 0 comments
Open

gcc: conjf suboptimal #67

olajep opened this issue Oct 7, 2016 · 0 comments

Comments

@olajep
Copy link
Contributor

olajep commented Oct 7, 2016

Don't know what's going on here:

// myconjf.c
// epiphany-elf-gcc -O3 -ffast-math -c
#include <complex.h>
float complex myconjf(float complex n)
{
        return conjf(n);
}

What I get

myconjf:
mov r2,0x0
movt r2,0x8000
eor r2,r2,r1
mov r3,r0
mov r0,r3
mov r1,r2
rts

What I want

myconjf:
mov r2,0x0
movt r2,0x8000
eor r1,r2,r1
rts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant