Skip to content

Conversation

tbaederr
Copy link
Contributor

Fixes #160374

@llvmbot llvmbot added clang Clang issues not falling into any other category clang:bytecode Issues for the clang bytecode constexpr interpreter labels Sep 24, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 24, 2025

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

Changes

Fixes #160374


Full diff: https://github.com/llvm/llvm-project/pull/160452.diff

1 Files Affected:

  • (modified) clang/test/AST/ByteCode/builtin-bit-cast.cpp (+3)
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
 

@tbaederr tbaederr merged commit e86209c into llvm:main Sep 24, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:bytecode Issues for the clang bytecode constexpr interpreter clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: Clang :: AST/ByteCode/builtin-bit-cast.cpp started to fail on s390x
2 participants