[PATCH] D114425: [clang] Add __builtin_bswap128

Simon Pilgrim via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 19 07:11:22 PST 2021


RKSimon added inline comments.


================
Comment at: clang/test/Sema/constant-builtins-2.c:219
 int h5 = __builtin_bswap64(0x1234) == 0x3412000000000000 ? 1 : f();
+int h6 = __builtin_bswap128(0x1234) == (((__int128)0x3412) << 112) ? 1 : f();
 extern long int bi0;
----------------
```
#if defined(__SIZEOF_INT128__)
```
?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114425/new/

https://reviews.llvm.org/D114425



More information about the cfe-commits mailing list