[clang] [compiler-rt] [UBSan] Fix _BitInt value display for unsigned types in runtime handlers (PR #194405)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 28 09:05:05 PDT 2026
================
@@ -131,6 +131,27 @@ uint32_t negative_shift5(unsigned _BitInt(37) x)
// CHECK: {{.*}}bit-int.c:[[#@LINE-1]]:12: runtime error: shift exponent -2 is negative
}
+uint32_t shift_exponent_too_big1(_BitInt(27) x)
+ __attribute__((no_sanitize("memory"))) {
+ unsigned _BitInt(24) c = 27;
+ return (uint32_t)(x << c) & 0xFF;
----------------
ilovepi wrote:
nit: Are the casts required? I see other tests seem to avoid them.
https://github.com/llvm/llvm-project/pull/194405
More information about the cfe-commits
mailing list