[clang] 0e461d1 - [clang][bytecode] Only use int128 if it is available
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 23 20:53:53 PDT 2025
Author: Timm Bäder
Date: 2025-06-24T05:53:04+02:00
New Revision: 0e461d1781f1c67cc2724150c6da848f6ea75f3a
URL: https://github.com/llvm/llvm-project/commit/0e461d1781f1c67cc2724150c6da848f6ea75f3a
DIFF: https://github.com/llvm/llvm-project/commit/0e461d1781f1c67cc2724150c6da848f6ea75f3a.diff
LOG: [clang][bytecode] Only use int128 if it is available
This broke a number of buildbots, e.g.
https://lab.llvm.org/buildbot/#/builders/64/builds/4410
Added:
Modified:
clang/test/AST/ByteCode/intap.cpp
Removed:
################################################################################
diff --git a/clang/test/AST/ByteCode/intap.cpp b/clang/test/AST/ByteCode/intap.cpp
index a7e43b34a7d2b..68883871ffd26 100644
--- a/clang/test/AST/ByteCode/intap.cpp
+++ b/clang/test/AST/ByteCode/intap.cpp
@@ -48,11 +48,12 @@ static_assert(DivA / DivB == 2, "");
constexpr _BitInt(4) DivC = DivA / 0; // both-error {{must be initialized by a constant expression}} \
// both-note {{division by zero}}
+#ifdef __SIZEOF_INT128__
constexpr __int128 isMinDiv() {
return __int128{0} / __int128{-1};
}
static_assert(isMinDiv() == 0, "");
-
+#endif
constexpr _BitInt(7) RemA = 47;
More information about the cfe-commits
mailing list