[cfe-dev] clang-cl emitting call to __udivti3 resolved from where?

Stephen Canon via cfe-dev cfe-dev at lists.llvm.org
Wed Nov 22 08:54:25 PST 2017


__udivti3 is provided by compiler-rt.

> On Nov 22, 2017, at 11:41 AM, Stephan Bergmann via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> At least on recent trunk, a simple test.c
> 
>> unsigned __int128 f(unsigned __int128 a, unsigned __int128 b) { return a / b; }
> 
> compiled as
> 
>> clang-cl /c /FA test.c
> 
> will contain a call to __udivti3 (see generated test.asm), but it is not clear to me from where that symbol is supposed to be resolved when actually linking test.obj?
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list