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:2021: ### CastToTargetType: can't handle 16 type now #39

Open
zqb-all opened this issue Oct 28, 2023 · 0 comments
Labels
bug w2ll WHIRL to LLVM

Comments

@zqb-all
Copy link

zqb-all commented Oct 28, 2023

spec2k6 462.libquantum build fail.
one of the errors can be reproduce by the following code:

float _Complex  foo(float _Complex a)
{
  return a;
}

cmd

xcalcc -c a.c

error:

2023-10-28 15:37:20,705 - xcalcc - ERROR - !!! Log: (null) :Translating foo(0)


### Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:2021:
### CastToTargetType: can't handle 16 type now
### For a.O in foo (xcalcc:583)
@Yvan-xy Yvan-xy added bug w2ll WHIRL to LLVM labels Nov 1, 2023
zengdage added a commit to zengdage/open64 that referenced this issue Jan 4, 2024
The complex should use floating type.

1. The w2ll will crash if compile the code like that:
```
define COMPLEX_FLOAT float _Complex

COMPLEX_FLOAT quantum_conj(COMPLEX_FLOAT a)
{
  return a;
}
```

2. Error Log:
```
Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:2020:
CastToTargetType: can't handle 16 type now
```

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
bug w2ll WHIRL to LLVM
Projects
None yet
Development

No branches or pull requests

2 participants