[clang] [clang] Implement __builtin_rotate{left,right}g (PR #160259)

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 05:50:18 PDT 2025


================
@@ -0,0 +1,20 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
+
+char stdc_rotateleft1[__builtin_stdc_rotate_left((unsigned char)0xB1, 3) == 0x8D ? 1 : -1];
----------------
philnik777 wrote:

I'm pretty sure `static_assert`s are the recommended way to test this now.

https://github.com/llvm/llvm-project/pull/160259


More information about the cfe-commits mailing list