Skip to content

fatal error: error in backend: Cannot select: t3: i32 = fp_to_sint nofpexcept t2 #45636

@pkubaj

Description

@pkubaj
Bugzilla Link 46291
Resolution WONTFIX
Resolved on Jun 17, 2020 09:28
Version 10.0
OS FreeBSD
Blocks #44654
CC @adalava,@DimitryAndric,@tstellar

Extended Description

FreeBSD head, powerpc64 elfv2 or powerpc or powerpcspe, LLVM 10.0.1-rc1

Reproduction:
pkubaj@talos:$/usr/home/pkubaj/libretro-fbneo$ /usr/bin/cc -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -frounding-math ym2612-5de3af.c
ym2612-5de3af.c:1:1: warning: type specifier missing, defaults to 'int'
a;
^
ym2612-5de3af.c:3:1: warning: type specifier missing, defaults to 'int'
c() { a = b; }
^
ym2612-5de3af.c:3:14: warning: non-void function does not return a value
c() { a = b; }
^
fatal error: error in backend: Cannot select: t3: i32 = fp_to_sint nofpexcept t2
t2: f64,ch = CopyFromReg t0, Register:f64 %5
t1: f64 = Register %5
In function: c

Test case:
a;
double b;
c() { a = b; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm:codegenwontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions