Skip to content

gcc: conjf suboptimal #67

Description

@olajep

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions