From 327f904e2cc8942d8a6da277b6cc9d242f4159ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 24 Sep 2025 08:43:48 +0200 Subject: [PATCH] [clang][bytecode][test] Disable a bitcast test on s390x Fixes #160374 --- clang/test/AST/ByteCode/builtin-bit-cast.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/test/AST/ByteCode/builtin-bit-cast.cpp b/clang/test/AST/ByteCode/builtin-bit-cast.cpp index a12f305caf877..c1d29b2ca4c00 100644 --- a/clang/test/AST/ByteCode/builtin-bit-cast.cpp +++ b/clang/test/AST/ByteCode/builtin-bit-cast.cpp @@ -556,6 +556,8 @@ namespace VectorCast { } static_assert(test2() == 0); + /// On s390x, S is only 8 bytes. +#if !defined(__s390x__) struct S { unsigned __int128 a : 3; }; @@ -569,6 +571,7 @@ namespace VectorCast { static_assert(s.a == 0); // ref-error {{not an integral constant expression}} \ // ref-note {{initializer of 's' is not a constant expression}} #endif +#endif } #endif