-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Failed to call intrinsic function of Hexagon DSP #19129
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
Comments
Unless someone wants to work on this, I would not expect the large number of target specific C builtins to be implemented in translate-c anytime soon. Especially considering that using builtin zig functions or inline asm already lets you achieve the same result. |
Thanks!, The inline assembly method solves my current problem very well. |
Do other architectures define target-specific builtins? I can contribute changes to make Hexagon support whatever the idiomatic behavior is here. |
I don't believe we currently have any support for target-specific builtins like this in |
What about Zig-native target-specific intrinsics? Do those exist? |
With the exception of a few WASM ones, no. I actually don't know if we'll even need them if we proceed with the plan of implementing a fully Zig-integrated inline assembly syntax. |
That doesn't sound like it could be as-capable as intrinsics, right? I suppose the compiler can't schedule the instructions with the same flexibility in this case? However, I look forward to learning more about the Zig-integrated inline asm. |
I suppose it depends on how well the inline assembly is actually integrated. For LLVM, it would likely never be able to be as good as builtins, but I could imagine self-hosted Zig backends being able to do better. |
Zig Version
0.11
Steps to Reproduce and Observed Behavior
Create a new hvx-fail directory, and then cd to this directory, run command "zig init-exe".
Delete the file src/main.zig, create a new main.zig with bellow source code:
Run command "zig build -Dtarget=hexagon-freestanding -Dcpu=hexagonv68", the compiler output a error message in bellow:
Expected Behavior
The zig should success to compile this main.zig file, the intrinsic function of Hexagon DSP should be inline call from zig source code.
The text was updated successfully, but these errors were encountered: