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

[WebAssembly] ICE when using __builtin_thread_pointer #117433

Open
kleisauke opened this issue Nov 23, 2024 · 0 comments
Open

[WebAssembly] ICE when using __builtin_thread_pointer #117433

kleisauke opened this issue Nov 23, 2024 · 0 comments

Comments

@kleisauke
Copy link

test.c:

void *f0(void)
{
  return __builtin_thread_pointer();
}
$ /emsdk/upstream/bin/clang --target=wasm32 -o test.wasm test.c
fatal error: error in backend: Cannot select: intrinsic %llvm.thread.pointer
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 20.0.0git (https:/github.com/llvm/llvm-project 3a31427224d4fa49d7ef737b21f6027dc4928ecf)
Target: wasm32
Thread model: posix
InstalledDir: /emsdk/upstream/bin
Build config: +assertions
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test-9adbd1.c
clang: note: diagnostic msg: /tmp/test-9adbd1.sh
clang: note: diagnostic msg: 

********************

Context: emscripten-core/emscripten#21548.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant