[cfe-dev] BUG: complete misunterstanding of the MS-ABI

Anton Korobeynikov via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 3 13:16:18 PDT 2020


>
> --- llvm-bug.c ---
> #ifndef __clang__
> typedef struct {
>     unsigned __int64 low;
>     unsigned __int64 high;
> } __uint128_t;
> #else
> __attribute__((ms_abi))
> #endif
>
These are different types. __uint128_t is not a struct of two 64-bit
integers. If you'd modify the source so it would pass / return struct of
two 64 bit integers, then you will see that clang will generate the same
code as MSVC.

NOT A BUG. USER ERROR.

-- 
With best regards, Anton Korobeynikov
Department of Statistical Modelling, Saint Petersburg State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200903/a89e3bcc/attachment.html>


More information about the cfe-dev mailing list