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

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

Open
zqb-all opened this issue Oct 27, 2023 · 0 comments

Comments

@zqb-all
Copy link

zqb-all commented Oct 27, 2023

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)
zengdage added a commit to zengdage/open64 that referenced this issue Jan 4, 2024
1. The w2ll will crash if compile the code like that:
```
double sre_random(void);

float EVDrandom(float mu)
{
  float p = 0.0;

  p = sre_random();
  return (mu - p);
}

```

2. Error Log:
```
Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:1903:
CreateExt: rhs should be floating type
```

Signed-off-by: Zhijin Zeng <[email protected]>
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