-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
backend:RISC-Vclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.
Description
This came up as part of a glibc patch review https://inbox.sourceware.org/libc-alpha/[email protected]/. Looks like this register ... __asm__ ("tp") syntax isn't working in clang.
void *
__thread_pointer (void)
{
register void *__tp __asm__ ("tp");
return __tp;
}
generates
__thread_pointer():
ret
GCC generates
__thread_pointer():
mv a0,tp
ret
which is the sort of thing I'd expect.
Metadata
Metadata
Assignees
Labels
backend:RISC-Vclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.