open64-compiler / open64

open64 compiler
78 stars 29 forks source link

[SPEC2006] Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:1903: CreateExt: rhs should be floating type #31

Open zqb-all opened 1 year ago

zqb-all commented 1 year ago

spec2k6 456.hmmer build fail. one of the errors can be reproduce by the following code:

extern double foo();
float bar()
{
    return foo();
}

cmd

xcalcc -c a.c

error:

2023-10-28 00:06:14,311 - xcalcc - ERROR - !!! Log: (null) :Translating bar(0)

!!! DevWarn: bar :Stmt2llvm: ingore PRAGMA stmt now

### Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:1903:
### CreateExt: rhs should be floating type
### For a.O in bar (xcalcc:583)